Hi, I am using PB 2019 R3. Can UI Themes directory and its files be added to the resource file for deployment? Thank You.
- You are here:
- Home
- Q&A
- Q&A
- PowerBuilder
- UI Themes in Resource File
- Jose Reyes
- PowerBuilder
- Wednesday, 19 May 2021 18:42 PM UTC
- Thursday, 20 May 2021 05:28 AM UTC
- PowerBuilder
- # 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.
- Wednesday, 19 May 2021 18:50 PM UTC
- PowerBuilder
- # 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
- Roland Smith
- 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.
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.
-
Helpful Loading... Helpful 0
- Chris Pollach @Appeon
- 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 ).
-
Helpful Loading... Helpful 0
- Jose Reyes
- 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.
-
Helpful Loading... Helpful 0
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.
However, you are not allowed to reply to this question.
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here. Register Here »