Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

Graph report in a composite report

4 posts in DataWindow Last posting was on 2009-01-09 14:49:45.0Z
Torgeir Sjur Lund Posted on 2009-01-08 09:59:20.0Z
Sender: 7f2d.4965ca72.1804289383@sybase.com
From: Torgeir Sjur Lund
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Graph report in a composite report
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <4965ce78.7ffc.1681692777@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 8 Jan 2009 01:59:20 -0800
X-Trace: forums-1-dub 1231408760 10.22.241.41 (8 Jan 2009 01:59:20 -0800)
X-Original-Trace: 8 Jan 2009 01:59:20 -0800, 10.22.241.41
Lines: 20
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:88510
Article PK: 417763

Hi List,

I've created a composite report with two freefrom
datawindows and two graphs. The two graphs shall represent
each of the freeform datawindow grafhically and therefore I
want to change the colors in the graphs. In my code i uses
the getchild() function to get the Datawindow control, but I
don't get the graph control "gr_pie"

Is it possible to get the pointer/handle/control of a graph
datawindow in a composite window so I can use the
SetDataStyle() function to set the colors?

Does anybody have any ideas to get the graphs
handle/pointer?

I hope for some quick answers.

Thanks in advanced
Regard Torgeir Lund


"Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel Posted on 2009-01-08 22:55:36.0Z
From: "Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel@yahoo!.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <4965ce78.7ffc.1681692777@sybase.com>
Subject: Re: Graph report in a composite report
Lines: 34
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <49668468$1@forums-1-dub>
Date: 8 Jan 2009 14:55:36 -0800
X-Trace: forums-1-dub 1231455336 10.22.241.152 (8 Jan 2009 14:55:36 -0800)
X-Original-Trace: 8 Jan 2009 14:55:36 -0800, vip152.sybase.com
X-Authenticated-User: TeamSybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:88521
Article PK: 417776

If you have put a control in the DW it is no longer composite, it is nested.
You may need to create a DWO for each graph, and add them as reports in the
composite rather than graph controls.
You need to do GetChild on the report name, not a control within the report.
Then you do a Modify on the DWC.

And it's not much use to repeat the same question. If someone has an answer
or suggestion, they will see it. It's handier when all the discussion is in
a single thread.

<Torgeir Sjur Lund> wrote in message
news:4965ce78.7ffc.1681692777@sybase.com...
> Hi List,
>
> I've created a composite report with two freefrom
> datawindows and two graphs. The two graphs shall represent
> each of the freeform datawindow grafhically and therefore I
> want to change the colors in the graphs. In my code i uses
> the getchild() function to get the Datawindow control, but I
> don't get the graph control "gr_pie"
>
> Is it possible to get the pointer/handle/control of a graph
> datawindow in a composite window so I can use the
> SetDataStyle() function to set the colors?
>
> Does anybody have any ideas to get the graphs
> handle/pointer?
>
> I hope for some quick answers.
>
> Thanks in advanced
> Regard Torgeir Lund


Torgeir Sjur Lund Posted on 2009-01-09 08:47:46.0Z
Sender: 2b53.4966fa23.1804289383@sybase.com
From: Torgeir Sjur Lund
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: Graph report in a composite report
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <49670f32.2f9d.1681692777@sybase.com>
References: <49668468$1@forums-1-dub>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 9 Jan 2009 00:47:46 -0800
X-Trace: forums-1-dub 1231490866 10.22.241.41 (9 Jan 2009 00:47:46 -0800)
X-Original-Trace: 9 Jan 2009 00:47:46 -0800, 10.22.241.41
Lines: 64
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:88523
Article PK: 417780

My other question was posted via google groups, I've did'nt
know that it was the same group that I posted via sybase's
pages. I'm sorry about that.

To clear out what I have done:

I have created three datawindows. Two as freeform datawindow
and one as graph datawindow (pie chart) with external data
source.

Then I have created a composite datawindow and inserted the
3 datawindows as reports in this composite datawindow. The
graph datawindow was inserted twice since I populate the
graphs with data in my script with data from the two
freeform datawindows. ( I know I could inserted the graph in
the two freeform datawindows, but for reuse of the pie chart
graph in several reports I've created the graph as one
object. )

Then in my script I want to change the color of the
datapoints/series in the graph using the SetDataStyle
function as described in the original question.

If I use the getchild function to get the graph report, I
cant use the SetDataStyle function since getchild gets a
datawindowchild object. That's my problem.

Regards Torgeir Lund

> If you have put a control in the DW it is no longer
> composite, it is nested. You may need to create a DWO for
> each graph, and add them as reports in the composite
> rather than graph controls. You need to do GetChild on the
> report name, not a control within the report. Then you do
> a Modify on the DWC.
>
> And it's not much use to repeat the same question. If
> someone has an answer or suggestion, they will see it.
> It's handier when all the discussion is in a single
> thread.
>
> <Torgeir Sjur Lund> wrote in message
> news:4965ce78.7ffc.1681692777@sybase.com...
> > Hi List,
> >
> > I've created a composite report with two freefrom
> > datawindows and two graphs. The two graphs shall
> > represent each of the freeform datawindow grafhically
> > and therefore I want to change the colors in the graphs.
> > In my code i uses the getchild() function to get the
> > Datawindow control, but I don't get the graph control
> "gr_pie" >
> > Is it possible to get the pointer/handle/control of a
> > graph datawindow in a composite window so I can use the
> > SetDataStyle() function to set the colors?
> >
> > Does anybody have any ideas to get the graphs
> > handle/pointer?
> >
> > I hope for some quick answers.
> >
> > Thanks in advanced
> > Regard Torgeir Lund
>
>


"Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel Posted on 2009-01-09 14:49:45.0Z
From: "Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel@yahoo!.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <49668468$1@forums-1-dub> <49670f32.2f9d.1681692777@sybase.com>
Subject: Re: Graph report in a composite report
Lines: 74
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <49676409@forums-1-dub>
Date: 9 Jan 2009 06:49:45 -0800
X-Trace: forums-1-dub 1231512585 10.22.241.152 (9 Jan 2009 06:49:45 -0800)
X-Original-Trace: 9 Jan 2009 06:49:45 -0800, vip152.sybase.com
X-Authenticated-User: TeamSybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:88539
Article PK: 417795

You are correct - SetDataStyle is not a method of DataWindowChild. It seems
to me it should be, as a graph in a composite is a very reasonable usage.
You should enter this as an enhancement request at Sybase and ISUG.
Meanwhile, you might have to make a set of reusable DWO, with different
colors.

<Torgeir Sjur Lund> wrote in message
news:49670f32.2f9d.1681692777@sybase.com...
> My other question was posted via google groups, I've did'nt
> know that it was the same group that I posted via sybase's
> pages. I'm sorry about that.
>
> To clear out what I have done:
>
> I have created three datawindows. Two as freeform datawindow
> and one as graph datawindow (pie chart) with external data
> source.
>
> Then I have created a composite datawindow and inserted the
> 3 datawindows as reports in this composite datawindow. The
> graph datawindow was inserted twice since I populate the
> graphs with data in my script with data from the two
> freeform datawindows. ( I know I could inserted the graph in
> the two freeform datawindows, but for reuse of the pie chart
> graph in several reports I've created the graph as one
> object. )
>
> Then in my script I want to change the color of the
> datapoints/series in the graph using the SetDataStyle
> function as described in the original question.
>
> If I use the getchild function to get the graph report, I
> cant use the SetDataStyle function since getchild gets a
> datawindowchild object. That's my problem.
>
> Regards Torgeir Lund
>> If you have put a control in the DW it is no longer
>> composite, it is nested. You may need to create a DWO for
>> each graph, and add them as reports in the composite
>> rather than graph controls. You need to do GetChild on the
>> report name, not a control within the report. Then you do
>> a Modify on the DWC.
>>
>> And it's not much use to repeat the same question. If
>> someone has an answer or suggestion, they will see it.
>> It's handier when all the discussion is in a single
>> thread.
>>
>> <Torgeir Sjur Lund> wrote in message
>> news:4965ce78.7ffc.1681692777@sybase.com...
>> > Hi List,
>> >
>> > I've created a composite report with two freefrom
>> > datawindows and two graphs. The two graphs shall
>> > represent each of the freeform datawindow grafhically
>> > and therefore I want to change the colors in the graphs.
>> > In my code i uses the getchild() function to get the
>> > Datawindow control, but I don't get the graph control
>> "gr_pie" >
>> > Is it possible to get the pointer/handle/control of a
>> > graph datawindow in a composite window so I can use the
>> > SetDataStyle() function to set the colors?
>> >
>> > Does anybody have any ideas to get the graphs
>> > handle/pointer?
>> >
>> > I hope for some quick answers.
>> >
>> > Thanks in advanced
>> > Regard Torgeir Lund
>>
>>