1. Jacob Osborne
  2. PowerBuilder
  3. Thursday, 22 April 2021 12:32 PM UTC

I want to change the background color of a specific text object inside a DataWindow. I'm having a hard time doing so, however, since the documentation on Themes is very limited, lacking detail, lacking examples and often poorly written.

This is how I am currently trying to target the text control:

 

 

How do I change the background color for one specific text control in the DataWindow? Thanks

Miguel Leeuwe Accepted Answer Pending Moderation
  1. Thursday, 22 April 2021 12:49 PM UTC
  2. PowerBuilder
  3. # 1

I might be completely wrong, but I think the "." should be "$". At least that's the separator I have to use for an exclusions json.

"w_work_order_quote_entry$dw_2$t_12"

Don't shoot me if it doesn't work!

regards

 

Comment
There are no comments made yet.
Jacob Osborne Accepted Answer Pending Moderation
  1. Thursday, 22 April 2021 12:55 PM UTC
  2. PowerBuilder
  3. # 2

@Miguel
I'll try your suggestion, thanks!
My use of periods came from the documentation. I'll attach a shot of it here.

 

Comment
  1. Miguel Leeuwe
  2. Thursday, 22 April 2021 12:56 PM UTC
hmm, you'd expect the documentation to be better informed than I am, but it never hurts to try.

regards
  1. Helpful
  1. Miguel Leeuwe
  2. Thursday, 22 April 2021 12:57 PM UTC
If not open a support ticket.
  1. Helpful
  1. Jacob Osborne
  2. Thursday, 22 April 2021 12:58 PM UTC
  1. Helpful
There are no comments made yet.
Jacob Osborne Accepted Answer Pending Moderation
  1. Thursday, 22 April 2021 16:05 PM UTC
  2. PowerBuilder
  3. # 3

Unfortunately using $ instead of periods did not work. I'm still unable to target a specific control on the datawindow.

Comment
  1. Miguel Leeuwe
  2. Friday, 23 April 2021 13:01 PM UTC
It's crazy anyway that for exclusions the $ works and that for other things you have to use a ".".

Sorry
  1. Helpful
There are no comments made yet.
Ronnie Po Accepted Answer Pending Moderation
  1. Thursday, 22 April 2021 18:28 PM UTC
  2. PowerBuilder
  3. # 4

I believe your customizations can get only as granular as the control within the window. You could create a custom theme setting for dw_2

"w_work_order_quote_entry"."dw_2":

{ ... }

but these settings would affect ALL text objects in dw_2.

One workaround would be to set "drawing": false in the "dwo-text" section and then set the attributes for each text object in the datawindow object painter or dynamically by powerscript.

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.