1. alessandro feltrin
  2. PowerBuilder
  3. Wednesday, 31 August 2022 16:58 PM UTC

Hello everyone
I converted an ERP procedure based on pb 2017 to PB 2019R3. Let's say that almost everything works. However, I have noticed that part of the procedure is not working as it should. We have created, still with the old PB version, a Calendar (Google Style) with a Datawindow and a lot of create and modify. Everything is working fine except that now in 2019R3 with Themes management applied, my Calendar has gone to hell. Everything before was based on colors, background and foreground, now it's all white and you don't understand anything anymore.
I ask you for advice, support or an idea! the path of a custom theme seems to me not feasible because they are all custom objects (create Text, Create Rectangle etc.)

I have tried them all but at this point I am taken by despair.

Thanks in advance

Attachments (2)
Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 31 August 2022 20:28 PM UTC
  2. PowerBuilder
  3. # 1

Make an exception in the UI Themes for this object and {“drawing”:false} in case the Themes is conflicting.  But as Arnd said, you should use dw.modify(), which will take precedence over UI Themes.  Here is information about making exceptions: https://community.appeon.com/index.php/articles-blogs/tutorials-articles/2-powerbuilder/301-applying-a-new-ui-theme-to-your-application-2

Comment
There are no comments made yet.
Arnd Schmidt Accepted Answer Pending Moderation
  1. Wednesday, 31 August 2022 18:31 PM UTC
  2. PowerBuilder
  3. # 2

Hi Allessandro,

can you try to change your code and set the Datawindow object control properties via expressions like explained here?

https://community.appeon.com/index.php/qna/q-a/ps-2021-individual-dw-column-background-colors-w-themes

dw_1.modify("col_1.background.color ='65535~t65535'")

Notice the ~t  to separate the default value from the "computed" value.

You can also try to directly change your create strings using such expressions.

hth

Arnd

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.