1. Aliaksei Hlinski
  2. PowerServer
  3. Thursday, 26 January 2023 20:21 PM UTC

Hello, so I have a project with 2 applications, let's call tem "sales" located in "sales" folder and "sales_config" located in "sales_config" folder and there is "sales_shared" folder with shared pbls. I used to have resources with absolute path in these applications, but when deploying application "sales_config" to PowerServer I had to change resources to relative path. So I've put all resources in subfolder called "Q" in project's root folder. sales_config.pbr is located in root folder as well. In resource file and in the code references to resources are like this, for example, ".\Q\<...>\logo.ico". This works fine when I deploy PowerServer project and this works fine when I build/deploy both windows project right after PowerServer deployment and will work fine until I close PowerBuilder IDE. But if I open PowerBuilder IDE and try to deploy windows project first, I will get "could not find resource file" error window. So I have to deploy PowerServer project first and only after that my windows projects are deployed without resource errors. What can I do to be able to deploy windows projects independent from PowerServer project?

PowerBuilder/PowerServer are 2022 build 1892.

Thanks,
Aliaksei.

Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Thursday, 26 January 2023 20:31 PM UTC
  2. PowerServer
  3. # 1

Hi Aliaksei;

  FWIW: I deploy all my image resources (like your PNG files example attachment above) in a PBD. The PBD is loaded with external resources via a PBR file that assigns (compiles) the external resources into the PBD. Food for thought.

  Yes, all PowerClient and PowerServer based Apps must use relative paths to their external resources. That means that they are in the main or a sub-folder of the App's EXE deployed folder (aka Workspace in the PB IDE).  HTH

Regards .. Chris

Comment
  1. Aliaksei Hlinski
  2. Thursday, 26 January 2023 20:43 PM UTC
thank you for reply, my main concern is that I can deploy windows project only after I deploy PowerServer project, I can't deploy windows project after PowerBuilder IDE restart, looks like PowerBuilder is stored "root" folder somewhere (in memory perhaps) during its session. So once you have restarted PB IDE - that "root" folder is gone and it can be re-initialized only by deploying PowerServer project.
  1. Helpful
  1. Chris Pollach @Appeon
  2. Thursday, 26 January 2023 20:50 PM UTC
I am not having that issue. I can deploy Native, PC or PS projects in any order that I randomly choose. Sounds like something else is going on project settings wise.
  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.