1. Gururaja Udupa
  2. PowerServer
  3. Thursday, 16 November 2023 14:34 PM UTC

We have multiple applications that use SSO to log in. In the PowerBuilder application, we used to copy all resource files (icons, images) into a single folder and refer across all applications as needed.

Now in the PowerServer Client application, how can we achieve this by copying these files into one folder and referring to them in all applications?

Please share your ideas.



Gururaja Udupa

Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 28 November 2023 20:44 PM UTC
  2. PowerServer
  3. # 1

Hi Gururaja;

  Basically, it just involves creating a PBR ({PB Resources) file and then associating that to a empty (my favourite way) PBL. During the App or PBL compilation, the external iamge resources are copied into the resulting PBD. Then just make sure that rhe PBD is in the PB App's library list.

As an example ...

   The above example is built from my STD Framework and it's the OrderEntry Demo App for it. The framework and Demo Apps are free to download use as they are Open Source. So feel free to grab any of these and study how I assemble compiled Apps for C/S, PowerClient or PowerServer deployments.

Framework: http://chrispollach.blogspot.com/2023/10/2023r2.html

Demo App: https://sourceforge.net/projects/stdfndclass/files/Applications/PowerBuilder/OrderEntry/


Regards ... Chris

There are no comments made yet.
Thomas Rolseth Accepted Answer Pending Moderation
  1. Tuesday, 28 November 2023 18:15 PM UTC
  2. PowerServer
  3. # 2


Can you share an example of how you would to this?

There are no comments made yet.
Logan Liu @Appeon Accepted Answer Pending Moderation
  1. Friday, 17 November 2023 03:33 AM UTC
  2. PowerServer
  3. # 3

Hi Gururaja,

In PowerServer 2022 R2, you need to make sure all these files are placed in the same folder or sub-folder of the application target (.pbt) file.
If don't want to move the files, you can use a Windows symbolic link. E.g.:
1) Run CMD using administrator.
2) mklink /D "E:\AppA\upload_files" "H:\upload_files"
(In this example, "E:\AppA" is the PBT located folder to create the link, and "H:\upload_files" is the target folder.)
Refer to https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/mklink
3) Add the folder E:\AppA\upload_files in the PowerServer project External Files.

BTW: since 2022 R3 Beta, you have another option to publish "images" to one place one your Web Server, so you can refer to them from all apps.
If interested, please refer to Loading images via URL - - What's New (appeon.com)

Regards, Logan

  1. Miguel Leeuwe
  2. Friday, 17 November 2023 05:40 AM UTC
Hi Logan,

Great tip, but I think that the example you gave is wrong. You mention the same path twice in the mklink command: "H:\ERMS\PPT\pb2022\upload_files"

  1. Helpful
  1. Logan Liu @Appeon
  2. Friday, 17 November 2023 06:03 AM UTC
Thanks, Miguel!
  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Thursday, 16 November 2023 15:44 PM UTC
  2. PowerServer
  3. # 4

Hi Gururaja;

  Q: What not place all icons & images into a PBD using as PBR file and then share that PBD across the various Apps?

Regards ... Chris

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.