1. Priyanka Yerramsetti
  2. PowerBuilder
  3. Wednesday, 12 June 2024 09:46 AM UTC

 

Hello, Team.
I am using Power Builder 2022 R2 to work on the theme.
I applied a theme in PowerBuilder, and running the application through PowerBuilder themes is reflecting,

However, if I build the PBD and replace it in the installation folder, it failed to work.

Priyanka Yerramsetti Accepted Answer Pending Moderation
  1. Monday, 17 June 2024 12:27 PM UTC
  2. PowerBuilder
  3. # 1

I Have included the themes folder and relevant Json.(tried with both static path and relative path for theme folder)

I tried disabling the "windows classic style" option in the project painter and "enable windows classic style in IDE" option in system options.

Comment
  1. Chris Pollach @Appeon
  2. Monday, 17 June 2024 17:08 PM UTC
Hi Priyanka;

FYI: if you like, please download my STD Framework's OrderEntry Demo App. This app works with all the PB IDE themes. There are projects for C/S deployment both 32 & 64 bit P-Code & M-Code variations with Theme support. Also included are projects for 32 / 64 bit PowerClient & PowerServer deployments with theme support as well.

There is also a "Deploy" folder showing you how the P-Code / M-Code EXE's & Themes are to be arranged for actual production deployment.

https://chrispollach.blogspot.com/2024/05/2024r2.html

HTH

Regards ... Chris
  1. Helpful
  1. Priyanka Yerramsetti
  2. Tuesday, 18 June 2024 05:39 AM UTC
Hi Chris,

We've already explored the P-Code and M-Code variations, still no luck.
  1. Helpful
  1. Chris Pollach @Appeon
  2. Tuesday, 18 June 2024 11:10 AM UTC
That's why I gave you the link to download the OrderEntry Demo App to study the way I set it up ide & deployment theme wise. HTH
  1. Helpful
There are no comments made yet.
Roland Smith Accepted Answer Pending Moderation
  1. Thursday, 13 June 2024 13:05 PM UTC
  2. PowerBuilder
  3. # 2

You'll need pbtheme.dll and pbjson.dll in the deployed PB runtime folder. You also need the theme folder which is located in C:\Program Files (x86)\Appeon\PowerBuilder 22.0\IDE\theme. According to the help file, place the theme folder in the same folder as the application EXE.

Comment
  1. David Peace (Powersoft)
  2. Thursday, 13 June 2024 13:35 PM UTC
If you apply the theme dynamically then the path you specify in the code is where it needs to be.

We have used a folder structure like this:

AppFolder

Bin (Contains the EXE & PBDs)

Theme (Contains the Theme folders)



Then use a relative path when applying the theme..



Useful info on the DLLs. I must admit that we use the Appeon supplied runtime installer these days to avoid any issues. We have moved away from the old copying out the DLLs you need.
  1. Helpful 1
  1. Priyanka Yerramsetti
  2. Monday, 17 June 2024 11:55 AM UTC
@David Peace (Powersoft), we tried to use the Appeon runtime and still having the same issue.
  1. Helpful
There are no comments made yet.
David Peace (Powersoft) Accepted Answer Pending Moderation
  1. Thursday, 13 June 2024 10:55 AM UTC
  2. PowerBuilder
  3. # 3

Hi

Have you deployed the Theme files in the same path as you have them in your development. Are you applying the theme dynamically at runtime or is it applied to the Application? If the theme is not working in deployment and the theme is not in the same location then it will not work.

When we apply themes to an app we copy the Theme to a known folder structure relative to the App exe . Basically, the run time needs to know where the theme is.

I hope this helps

David

 

 

 

 

Comment
  1. David Peace (Powersoft)
  2. Thursday, 13 June 2024 12:27 PM UTC
OK, so that's not the problem. If you deploy the Themes folders in the same location as the path then it should work.

Is eveything else working, just the theme that is not being applied?
  1. Helpful
  1. Priyanka Yerramsetti
  2. Friday, 14 June 2024 06:51 AM UTC
Yes ,only themes is not applied.
  1. Helpful
  1. Priyanka Yerramsetti
  2. Friday, 14 June 2024 06:54 AM UTC
Also deployed the appropriate appeon runtime
  1. Helpful
There are no comments made yet.
Andreas Mykonios Accepted Answer Pending Moderation
  1. Thursday, 13 June 2024 06:27 AM UTC
  2. PowerBuilder
  3. # 4

Hi.

Why are you looking for pbtheme190.dll and pbjson190.dll? Since PB 2019 R3, dll's do not contain anymore the version (190). Also you stated that you are using PB 2022 R2... Based on that, you should deploy those files from PB's 2022 R2 runtime you are using to build your application.

The easiest way to deploy the appropriate runtime is to create an installer using PB Runtime Packager (you can choose runtime version and runtime options you need to deploy).

After installing the runtime check your application xml that it points to the appropriate location (Runtime path should point to the location where you installed the runtime).

<?xml version="1.0" encoding="utf-8" ?>
<Application>
	<RuntimePath>C:\Program Files (x86)\Appeon\Common\PowerBuilder\Runtime 22.2.0.3356</RuntimePath>
</Application>

Andreas.

Comment
  1. Priyanka Yerramsetti
  2. Thursday, 13 June 2024 10:39 AM UTC
@Andreas Mykonios, Tried the same and still no luck.
  1. Helpful
There are no comments made yet.
Priyanka Yerramsetti Accepted Answer Pending Moderation
  1. Thursday, 13 June 2024 06:01 AM UTC
  2. PowerBuilder
  3. # 5

Copied the theme files and the build run time library's pbd, can you help what kind of Dlls , need to copy.
Also we don't see "pbtheme190.dll, pbjson190.dll "theme190" folder" in appeon instalation folder. 

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.