1. Chen Mey Lee
  2. PowerServer 2020 or older (Obsolete)
  3. Thursday, 18 March 2021 03:10 AM UTC

Hi,

I using PowerBuilder 2021 (beta version).

 

Datawindow button image displayed when running the could app in Web server.

 

But it not display when running in user deskotp :

Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Thursday, 18 March 2021 19:06 PM UTC
  2. PowerServer 2020 or older (Obsolete)
  3. # 1

Hi Chen May;

  I think that I see your image display problem. I would recommend getting rid of all the "Path" references to any image. Either use relative path'ing or my favourite ... no path with the images all loaded into a PBD/DLL via a PBR file. I'm using both techniques I described above now in my PowerClient and PowerServer 2021 testing and have no DWO image display issues. Food for thought.

Regards ... Chris

Comment
  1. Chen Mey Lee
  2. Friday, 19 March 2021 05:29 AM UTC
Hi Chris,

image displayed after applied your solution

Thanks.
  1. Helpful
  1. Miguel Leeuwe
  2. Friday, 19 March 2021 10:52 AM UTC
As I suggested by me previously when I said:

"Another option would be to have the images in the same folder as the PBL where your application is in and then not specify any path in the datawindow:

Instead of: "L:\EXE\BMP\pb_icon_edit.png"

use: "pb_icon_edit.png"

You could also use a PBR file, but I understand that you want the images to be 'dynamic' so you can change the image without having to build a new executable. (since you specified them as dynamically loaded images in the ps project).

regards "

Glad you solved your problem though, please mark as "answered / resolved".

Regards.
  1. Helpful
  1. Chris Pollach @Appeon
  2. Friday, 19 March 2021 18:23 PM UTC
Hi Chen May .. that is "Awesome" news! :-)
  1. Helpful
There are no comments made yet.
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Thursday, 18 March 2021 15:38 PM UTC
  2. PowerServer 2020 or older (Obsolete)
  3. # 2

Hi Chen Mai Lee,

When the pictures don't show, are you running Powerserver on the client or simply powerbuilder executable in the 'traditional' way?

regards

Comment
  1. Miguel Leeuwe
  2. Friday, 19 March 2021 10:55 AM UTC
Glad you solved it
  1. Helpful
There are no comments made yet.
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Thursday, 18 March 2021 03:24 AM UTC
  2. PowerServer 2020 or older (Obsolete)
  3. # 3

Does the "user" have the same path on L: drive ?

Also, if L: drive is a network drive, maybe you'd have to set some registry values to enable UNC paths.
Save this following text as a .REG file and double click on it on the user's computer to enter the value into the windows registry:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]
"EnableLinkedConnections"=dword:00000001

regards.

Comment
  1. Miguel Leeuwe
  2. Thursday, 18 March 2021 03:40 AM UTC
added to my previous comment:

if the images are in the same folder as where the pbl of your application object is, then when you distribute the executable, the images would have to be in the same folder as the EXE file.
  1. Helpful
  1. Miguel Leeuwe
  2. Thursday, 18 March 2021 03:42 AM UTC
If the images do NOT have to be 'dynamic', you can use a PBR file and then the images won't have to be anywhere when you distribute the EXE, they'll be present within the EXE (or any PBD to which you could assign the pbr when building the executable).
  1. Helpful
  1. Miguel Leeuwe
  2. Thursday, 18 March 2021 03:44 AM UTC
So ... if the user cannot map the L drive, you should not use that in the datawindow, UNLESS you put them in a PBR file with the same path of the L: drive.
  1. Helpful
There are no comments made yet.
Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Thursday, 18 March 2021 03:19 AM UTC
  2. PowerServer 2020 or older (Obsolete)
  3. # 4

Looks like a config issue.  Since you are experiencing this on the beta version, I suggest you open a support ticket.

Comment
  1. Armeen Mazda @Appeon
  2. Thursday, 18 March 2021 14:35 PM UTC
He’s saying if he runs the PowerServer app locally on the Web server the images display but when accessing the same app remotely from user machine the images do not display.
  1. Helpful
  1. Miguel Leeuwe
  2. Thursday, 18 March 2021 15:16 PM UTC
Aha I see, how would you explain the difference in alignment of the 2 titles? On server centered and local left aligned?

regards.
  1. Helpful
  1. Miguel Leeuwe
  2. Thursday, 18 March 2021 15:37 PM UTC
Let me just ask for explanation to the OP ...

:)
  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.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.