1. Gastón Clara
  2. PowerBuilder
  3. Tuesday, 13 February 2024 17:09 PM UTC

Hi,

I'm working on a quite old application with multiple targets and multiple PBLs on each one. Along the entire code images are set up (in code and the IDE) by jsut the name of the image (xxx.bmp). No path are used. It means that all images should be placed in PowerBuilder directory if we want to be able to see them when runnin/debbuging from the IDE. Not the bes solution but that is what we have.

Now, I want to use PBAutoBuild in order to deploy our applications. We have one PBR file for each PBL and one for the executable with the icon. 

What I would like to know is, when runing PBAutoBuild what is the refernece directory for each image in each PBR file. All images should be placed in the same folder as the PBR, as the PBT, where PBAutobuild.exe file resides? It's not clear at all and, of course, it's not woring as images are not displayed.

The structure that I have is the following:

Workspace

   Target I

      PLB1 

      PBL2

      PBL2

      ....

   Target II

      PBL1

      PBL2

      ....

 

Thanks for the help !

 

 

Gastón Clara Accepted Answer Pending Moderation
  1. Friday, 16 February 2024 15:59 PM UTC
  2. PowerBuilder
  3. # 1

I think that I was not clear enough :P

All along the code, in all places where we set an resource images we specify the name of the resource with no path. While working with the IDE PB is able to display them because we copied all resource images to PB directory. If we build deploy the application from the IDE, icon and images included in the PBS as PB is able to locate them on PB directory.

My problem appears when I try to run PBAutoBuild from a complete different directory, it is not able to find the resources thus they are not inlcuded in the PBDs. 

My question is if there is any way to let PBAutobuild the location for the resources or something that can manage to find them.

 

Thanks.

Comment
  1. Chris Pollach @Appeon
  2. Friday, 16 February 2024 18:39 PM UTC
Ahhh .. The PBAutoBuild utility uses the Target reference as it's compilation starting point. This, the App folder structure on the PBAutoiBuild machine *must* be identical to the one used on the development machine.
  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 14 February 2024 15:51 PM UTC
  2. PowerBuilder
  3. # 2

Hi Gastón ;

  For the App icon in the EXE, I see your problem - you have the PATH hard coded in your Application Painter. To resolve this ...

  • Move the .ICO file to the root folder where your WorkSpace object is located.
  • Remove all path information to the .ICO in your App painter.

  For the PBR => PBD issue - it sounds like your PBR's might have the same issue (hard coded paths). To resolve this ...

  • Make sure that your PBR file(s) do not have hard coded Path pointers to your external objects.

HTH

Regards ... Chris

Comment
There are no comments made yet.
Gastón Clara Accepted Answer Pending Moderation
  1. Wednesday, 14 February 2024 09:16 AM UTC
  2. PowerBuilder
  3. # 3

What we want to implement is Option 3 Crhis, resource files included in PBDs.

But this is what I don't really understand. Imagine this situation. If for an app I set the icon with a absolute route I can see the icon on the screen. We have all our resources copied to PB directory.

If I then deploy the app the executable file is created with its corresponding icon.

But, if I specify only the image name, without any route, on the screen I am able to see the image on the UI but then, when I deploy the it, the executable is createed without the icon.

Along the entire code we specify resources without path only the resource name. That causes, as with the icon, that reources are not find nor included in PBRs.

So, the question is, having this configuration where do I have to have the resources in order the deploy to find them?  Is the same for PBAutoBuild?

Hope it's a little bit clear now. Thank you for your help.

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 13 February 2024 17:25 PM UTC
  2. PowerBuilder
  3. # 4

Hi Gastón ;

  I am a bit confused by your description as ...

  1. PBR's should not be used for the App's icon. It should be embedded in the App's EXE
  2. If images are to be used externally, then they should be copied to the same App EXE's deployment folder.
  3. If PBR's are including all the images, then the deployment would only be PBD's

Can you give us any further details?

Thanks ... Chris

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.