1. Nithya Chandrasekar
  2. PowerBuilder
  3. Tuesday, 24 May 2022 15:00 PM UTC

We have a report which is built with nested data windows and want to change the color of the graph in the graph data window (which is nested in another data window).
1. When using SetSeriesStyle - dw_main.Object.dw_graph.Object.dw_graph1.SetSeriesStyle("gr_1", "Test", NoSymbol!)

But got the error - External object reference
Main window - dw_main  , In the main window included dw_graph and 2 graph data windows dw_graph1 and dw_graph2 added on dw_graph

2. Tried adding child data window for the nested window but did not help.

I am able to do few changes like below 

dw_main.object.dw_graph.object.dw_graph1.object.gr_1.backcolor = rgb(255,0,255)
dw_main.object.dw_graph.object.dw_graph1.object.gr_1.title = "test"

Any help would be appreciated, Thank you

 

 

Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 24 May 2022 16:12 PM UTC
  2. PowerBuilder
  3. # 1

Hi Nithya;

  Unless you have a parent DWO that allows you to use a GetChild() command to get the address of the Child DWO (in your case the graph), there is no way to affect those changes.

  You have to either change the parent DWO type to allow the GetChild() operation or maybe breakout the graph (child DWO) into it's own DW Control & float it over / next to, the parent (primary) DWO. Then you would have "full control" over it's "Look & Feel".

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.