1. Si CHEN
  2. PowerBuilder
  3. Sunday, 11 August 2019 20:34 PM UTC

Hello Everyone

Before opening a support ticket, I would like to check if you have some advices for my deployment issue:

When I use conditional expressions with user define functions to highlight information in a DataWindow object, for example, to change the text color of a column:

IF ((db_server <> f_gv_string("gv_mydbserver")), RGB(0, 0, 255), RGB(0, 0, 0))

it works in PowerBuilder develop environment, but not in real deployment environment with PowerBuilder 2019 runtime files. The runtime files are collected by the standard PowerBuilder 2019 Runtime Packager.

Thanks

Si CHEN

Si CHEN Accepted Answer Pending Moderation
  1. Monday, 12 August 2019 22:23 PM UTC
  2. PowerBuilder
  3. # 1

Philippe and Brad,

Thank you for your advice.

I have moved the user defined functions (used only in conditional expressions) into one of our PBD libraries, the problem is solved. I have also tested a function call in the application Open event, it works.

Chris: You are right. The new "Theme" features of PB 2019 impact the existing color settings, for example, a column graph in a PB 2019 application with "Blue Theme", the color of each column is changed. However, these new features are appreciated by our end-users.

Thank you again,

Si CHEN

 

Comment
There are no comments made yet.
Philippe PILAT Accepted Answer Pending Moderation
  1. Monday, 12 August 2019 06:43 AM UTC
  2. PowerBuilder
  3. # 2

Hi, 

are you building a single exe or do you build pbd's ?

If you build pbd, is your function called only in DW expressions ?

If Yes, it could be that this function is not present in any pbd.

Call this function in an event or use a pbr file to force the compiler to include the fiunction in a pbd.

 

HTH.

Regards, Philippe.

Comment
  1. Brad Mettee
  2. Monday, 12 August 2019 13:47 PM UTC
What Philippe is saying is that if you are not using PBDs, then you need to force a call to the function in normal powerscript to tell PB compiler to include it.

In app open, we have a block of functions being called to force them to be included in the compile. Basically it looks like this:

if false then

f_gv_string("")

end if

The code never gets executed, but the compiler is still forced to include the function in the build.

Hope this helps.

  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Sunday, 11 August 2019 21:01 PM UTC
  2. PowerBuilder
  3. # 3

Hi Si;

  The colour expressions may not work properly if you have activated the the new "Theme" feature of PB 2019. As an active  theme can override your colour settings.

Regards ... 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.