Hello,
PB 2019 R3 with theme
Got 60 entry screens and around 100 report datawindow(s) in one project. Need to show white background in all report datawindows. The report is shown on a tab page of a window.
Need to set white background for tab_1.tabpage_2.dw_report datawindow in w_rep_veh_sales_monthwise window. Tried with customer theme
Created one theme-reports.json file with the following contents
{
"meta-info":
{
"version":"190"
},
"w_rep_veh_sales_monthwise.tab_1.tabpage_1.dw_report":
{
"drawing":true,
"background-color-enabled":true,
"background-color":"#FFFFFF",
}
}
No effect of any change in the datawindow.
Also tried with "drawing":false settings by setting the colour in the background property of the datawindow.
Any suggestion on how to set white background colour for all report datawindows?
Happiness Always
BKR Sivaprakash
Note: Theme is applied with applytheme(GetCurrentDirectory( ) + '\' + ls_dir + "\" + ls_theme) command in the application open event.
1. Create a new json file ( I created theme-reports.json)
2. For cross tab datawindow, json like below [ dw_1 is cross tab report ]
"w_window.dw_1":
{
"drawing":true,
"background-color-enabled":true,
"background-color":"#FFFFFF",
"cross-style":
{
"drawing":true,
"head-band":
{
"background-color":"#FFFFFF",
"dwo-text-font":{"color":"#000000"}
}
}
}
2. For tabular datawindow, json be like this [ dw_2 is tabular datawindow ]
"w_window.dw_2":
{
"drawing":true,
"background-color-enabled":true,
"background-color":"#FFFFFF"
}
Full contents of the theme-reports.json file
{
"meta-info":
{
"version":"190"
},
"w_window.dw_1":
{
"drawing":true,
"background-color-enabled":true,
"background-color":"#FFFFFF",
"cross-style":
{
"drawing":true,
"head-band":
{
"background-color":"#FFFFFF",
"dwo-text-font":{"color":"#000000"}
}
}
},
"w_window.dw_2":
{
"drawing":true,
"background-color-enabled":true,
"background-color":"#FFFFFF"
}
}