1. Jose Reyes
  2. PowerBuilder
  3. Wednesday, 19 May 2021 18:42 PM UTC

Hi,  I am using PB 2019 R3.  Can UI Themes directory and its files be added to the resource file for deployment?  Thank You.

René Ullrich Accepted Answer Pending Moderation
  1. Thursday, 20 May 2021 05:28 AM UTC
  2. PowerBuilder
  3. # 1

Hi Jose,

If you ask to add it to PBR file to build it into the EXE or PBD the answer is NO.

Regards,

René

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 19 May 2021 18:50 PM UTC
  2. PowerBuilder
  3. # 2

Hi Jose;

  They sure can ... here is what I do in my PowerClient project as one example ...

Note: The THEME folder must be a sub-folder within your App's WorkSpace folder!

Regards ... Chris

 

Comment
  1. Roland Smith
  2. Thursday, 20 May 2021 12:27 PM UTC
He didn't mention PowerClient. The question is can the Themes feature source files from a PBD. I'm pretty sure the answer is no.

The image files could be built into a PBD using a .pbr but as far as I know Themes isn't designed to grab them from there. Plus the json file that describes the theme can't be processed in a .pbr file.
  1. Helpful
  1. Chris Pollach @Appeon
  2. Thursday, 20 May 2021 17:12 PM UTC
Correct ... you need to deploy the *entire* THEME "folder" as per my PowerClient example. The same for a native PB App deployment and / or the new PowerServer deployment. The same technique is required (although, it can be mechanically different delivery ).
  1. Helpful
  1. Jose Reyes
  2. Thursday, 3 June 2021 15:01 PM UTC
Hi... In one of my development research tests I tried moving the images to a different directory outside of the theme directory and modified corresponding theme json file to point to directory where theme image files now reside and I received a runtime error during application startup. In this scenario the only file residing inside the corresponding theme was just the json file. I tried using both relative and absolute path declaration in json file to location of theme image files and neither worked. Therefore, I am assuming that PB expects the corresponding theme image files to reside within the same json directory of the corresponding theme. Is this correct? Or, is it possible to move the images outside to a different directory outside of theme directory? Additionally, I created a build that included the theme images in pbr as part of the exe and did not receive any runtime errors because json file was not modified but json file did not recognize presence of theme image files. In this last scenario also the only file residing within them was just the json file. Any feedback is much appreciated. Thank You.
  1. Helpful
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.