1. Nithya Chandrasekar
  2. PowerBuilder
  3. Wednesday, 7 August 2024 16:51 PM UTC

Hi

We use PB2022 R2 and have nested data windows , where the main window (say dw1) holds some data and data window (dw_graph) is called inside dw1. The Dw_graph holds 2 graph data windows as dw_graph1 and dw_graph2 both of which are set to line graph. I want to change the graph markers using SetSeriesStyle and set to SymbolSolidCircle. 

dw1 - main data window, dw_graph - called inside dw1, dw_graph1 - called inside dw_graph and gr_1 - name of the graph in dw_graph1

Here is what I tried

dw1.Object.dw_graph.Object.dw_graph1.SetSeriesStyle("gr_1", "Ca", SymbolSolidCircle!)
dw1.Object.dw_graph.Object.dw_graph1.object.gr_1.SetSeriesStyle("gr_1", "Ca", SymbolSolidCircle!)

I ended up getting the same error when I tried both the options.

Number:39 Text: Error accessing external object property setseriesstyle at line 245 in open event of obhectw_xx_xxxx

Does that mean it is not possible to use SetSeriesStyle on a nested data window? Any help is welcome, Thank you so much. 

Thanks

Nithya

 

 

René Ullrich Accepted Answer Pending Moderation
  1. Thursday, 8 August 2024 04:59 AM UTC
  2. PowerBuilder
  3. # 1

Hi Nithya,

the SetSeriesStyle function is not listed in the list of functions for DataWindowChild object. So I think you can't use it.

You wrote that your main datawindow contains data. So I think it is not a composite datawindow? For composite datawindows you have full (datawindowchild) access to nested datawindows (reports). But for other datawindow types you will only have limited access!

HTH,

René

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.