1. Yossi Dallal
  2. PowerBuilder
  3. Tuesday, 17 October 2023 14:40 PM UTC

Not clear why the function   SetSeriesStyle() always return -1 in PB2022 R2.

I use SetSeriesStyle() in PB2017 R3 and it works perfect.

The graph in PB2017 R3 looks like that:

 

While The same graph in PB2022 R2 looks like that:

The graph shows only circles and not the shapes as defined in the legend.

This issue blocks us from migrating our system to PB2022 R2.

The working environment is Windows 11.

Please help!

 

Yossi Dallal Accepted Answer Pending Moderation
  1. Thursday, 19 October 2023 13:45 PM UTC
  2. PowerBuilder
  3. # 1

Hi Chris, it works good in development environment but not at runtime.

I created a new exe+pbd but it shows the graph as ModernGraph=1.

What I missed?

Thanks, Yossi

Comment
  1. Chris Pollach @Appeon
  2. Thursday, 19 October 2023 14:57 PM UTC
Hi Yossi;

Did you create a custom PB.ini with only that section / value entry and then deploy that PB.ini file into the same folder as your App’s EXE on the deployment machine(s)?

Regards … Chris

  1. Helpful 2
  1. Yossi Dallal
  2. Thursday, 19 October 2023 15:02 PM UTC
Thank you Chris, after I added my pb.ini it works.
  1. Helpful
  1. Chris Pollach @Appeon
  2. Thursday, 19 October 2023 15:14 PM UTC
Awesome .. thanks for the +ve feedback! :-)
  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 17 October 2023 18:22 PM UTC
  2. PowerBuilder
  3. # 2

Hi Yossi;

 The default setting in PB 2022 R2 is to use the new "Modern Graph" Styles by default (ON).

You can disable this feature by creating a custom PB.INI file with the following entry and deploying that with your App's EXE, as follows:

[Application]
ModernGraph=0   //OFF

I am guessing that this new style feature might be affecting your code settings.  HTH

Regards ... Chris

Comment
  1. Andreas Mykonios
  2. Wednesday, 18 October 2023 08:41 AM UTC
Hi Miguel. It's already updated. You have to look documentation for R2 (https://docs.appeon.com/pb2022r2/pbug/PBINI_settings.html). This is a new feature in R2, not R1.

Andreas.
  1. Helpful 1
  1. Chris Pollach @Appeon
  2. Wednesday, 18 October 2023 12:02 PM UTC
Great news Yossi! :-)

Correct Andreas!
  1. Helpful
  1. Miguel Leeuwe
  2. Wednesday, 18 October 2023 19:20 PM UTC
Thanks Andreas!
  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.