1. Simone Olianti
  2. PowerBuilder
  3. Tuesday, 28 April 2020 11:19 AM UTC

Hello, i'm playing around with the theme feature and i would like to apply a border around the freeform dw fields

        "dwo-column":
        {
            "drawing":true,
            "border":1,
            "border-color":"#7f7f7f",
            "background-color":"#FFFFFF",
            "text-font":{"color":"#000000"},

everything working fine but i would like, if possible, to disable this border for the tabular datawindows type that i'm usually using for printing reports and those borders are not always very cool.

Is there a way to disable the drawing parameter for the tabular datawindow type? I've noticed i can disable it for grid style, but not for tabular.
For now the only workaround i've found is to enable the print preview of the datawindow which seems to disable the fields border even on the screen. Too bad it applies the margins too.
Is there any other way to accomplish this?

tia,

simone

 

Attachments (2)
Accepted Answer
Mark Lee @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 29 April 2020 09:39 AM UTC
  2. PowerBuilder
  3. # Permalink

Hi Simone,

Is there a way to disable the drawing parameter for the tabular datawindow type?

No, you can't disable the drawing parameter for the tabular datawindow type because currently it is not supported in the Theme feature.

The controls in the DataWindow are configured respectively in the theme.json file, except for the Column, Text and Computed Field controls in the Grid and Crosstab DataWindow which are configured under the "grid-style" and "cross-style" in the theme.json file.

You can refer to the following link for the details.

https://docs.appeon.com/appeon_online_help/pb2019r2/pbug/ch04s04.html#d0e8162

 

For your issue, you can configure the theme settings to specify datawindow and set the field border color to be the same as the background color to work it around.

You can refer to the following link for the details.

https://docs.appeon.com/appeon_online_help/pb2019r2/pbug/ch04s04.html#d0e7811

 

Regards,

Comment
  1. Simone Olianti
  2. Wednesday, 29 April 2020 09:57 AM UTC
thank you mark
  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 28 April 2020 16:45 PM UTC
  2. PowerBuilder
  3. # 1

Hi Simone;

  Suggestion: Have you thought about using a DataStore? I would perform a ShareData() from the DC over to the DS.Then print the DWO from the DS where the Theme should not be active.

HTH

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.