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.

Composite DataWindow GetChild

6 posts in DataWindow Last posting was on 2009-01-23 14:30:49.0Z
RRM Posted on 2009-01-23 11:07:06.0Z
Sender: 3d94.4979a438.1804289383@sybase.com
From: RRM
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Composite DataWindow GetChild
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <4979a4da.3da8.1681692777@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 23 Jan 2009 03:07:06 -0800
X-Trace: forums-1-dub 1232708826 10.22.241.41 (23 Jan 2009 03:07:06 -0800)
X-Original-Trace: 23 Jan 2009 03:07:06 -0800, 10.22.241.41
Lines: 10
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:88665
Article PK: 417920

Hi,

I have a composite datawindow where I am trying to get
reference to a nested datawindow. But it is returning -1.
The composite datawindow is not external. I have checked the
names and all are correct. Any ideas what might be the
problem?

Many Thanks,
RRM


Chris Pollach Posted on 2009-01-23 13:13:03.0Z
From: "Chris Pollach" <cpollach@travel-net.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <4979a4da.3da8.1681692777@sybase.com>
Subject: Re: Composite DataWindow GetChild
Lines: 30
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4979c25f$1@forums-1-dub>
Date: 23 Jan 2009 05:13:03 -0800
X-Trace: forums-1-dub 1232716383 10.22.241.152 (23 Jan 2009 05:13:03 -0800)
X-Original-Trace: 23 Jan 2009 05:13:03 -0800, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:88668
Article PK: 417922

Hi R;

From the PB Help file ...

You cannot use GetChild to get a reference to a report in a composite
DataWindow

Thus - you must use the DOT notation approach.

HTH

--
Regards ... Chris
ISUG - NA RUG Director
http://chrispollach.pbdjmagazine.com

<RRM> wrote in message news:4979a4da.3da8.1681692777@sybase.com...
> Hi,
>
> I have a composite datawindow where I am trying to get
> reference to a nested datawindow. But it is returning -1.
> The composite datawindow is not external. I have checked the
> names and all are correct. Any ideas what might be the
> problem?
>
> Many Thanks,
> RRM


RRM Posted on 2009-01-23 14:13:14.0Z
Sender: 3d94.4979a438.1804289383@sybase.com
From: RRM
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: Composite DataWindow GetChild
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <4979d07a.4238.1681692777@sybase.com>
References: <4979c25f$1@forums-1-dub>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 23 Jan 2009 06:13:14 -0800
X-Trace: forums-1-dub 1232719994 10.22.241.41 (23 Jan 2009 06:13:14 -0800)
X-Original-Trace: 23 Jan 2009 06:13:14 -0800, 10.22.241.41
Lines: 43
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:88671
Article PK: 417925

Hi Chris,

Thanks. The help says "Nested reports: You cannot use
GetChild to get a reference to a report in a composite
DataWindow when the report itself is a composite or nested
DataWindow." In my case the reports in composite/nested
datawindow are not composite/nested. I will try using dot
notation but I still wonder what is the problem here.


Regards,
RRM

> Hi R;
>
> From the PB Help file ...
>
> You cannot use GetChild to get a reference to a report in
> a composite DataWindow
>
> Thus - you must use the DOT notation approach.
>
> HTH
>
> --
> Regards ... Chris
> ISUG - NA RUG Director
> http://chrispollach.pbdjmagazine.com
>
>
> <RRM> wrote in message
> > news:4979a4da.3da8.1681692777@sybase.com... Hi,
> >
> > I have a composite datawindow where I am trying to get
> > reference to a nested datawindow. But it is returning
> > -1. The composite datawindow is not external. I have
> > checked the names and all are correct. Any ideas what
> > might be the problem?
> >
> > Many Thanks,
> > RRM
>
>


Scott Morris Posted on 2009-01-23 13:42:38.0Z
From: "Scott Morris" <bogus@bogus.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <4979a4da.3da8.1681692777@sybase.com>
Subject: Re: Composite DataWindow GetChild
Lines: 21
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4979c94e@forums-1-dub>
Date: 23 Jan 2009 05:42:38 -0800
X-Trace: forums-1-dub 1232718158 10.22.241.152 (23 Jan 2009 05:42:38 -0800)
X-Original-Trace: 23 Jan 2009 05:42:38 -0800, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:88669
Article PK: 417924


<RRM> wrote in message news:4979a4da.3da8.1681692777@sybase.com...
> Hi,
>
> I have a composite datawindow where I am trying to get
> reference to a nested datawindow. But it is returning -1.
> The composite datawindow is not external. I have checked the
> names and all are correct. Any ideas what might be the
> problem?

If the composite datawindow is not "external", then it is likely not a
composite datawindow. By definition, a composite datawindow has no source -
due to the mechanics of the datawindow / IDE this means that it must
effectively be external. You can see this by looking at the souce where you
will notice that it automatically generates a fake single column external
table. E.g.,

table(column=(type=char(10) updatewhereclause=yes name=a dbname="a" )
unbound = "yes")


Scott Morris Posted on 2009-01-23 14:30:49.0Z
From: "Scott Morris" <bogus@bogus.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <4979c94e@forums-1-dub> <4979cf9c.422a.1681692777@sybase.com>
Subject: Re: Composite DataWindow GetChild
Lines: 18
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4979d499$1@forums-1-dub>
Date: 23 Jan 2009 06:30:49 -0800
X-Trace: forums-1-dub 1232721049 10.22.241.152 (23 Jan 2009 06:30:49 -0800)
X-Original-Trace: 23 Jan 2009 06:30:49 -0800, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:88672
Article PK: 417926


<RRM> wrote in message news:4979cf9c.422a.1681692777@sybase.com...
> Hi,
>
> Thanks for the response. I said it is not external
> datawindow as I can see a query when I select "datasource"
> option. Might be all the objects of the composite datawindow
> are deleted and then the child datawindows are inserted
> using "Insert -> report" option. This object is created in
> PB 5/6 and now in PB 11.2.

Then it is definitely not composite. Since it is not a composite
datawindow, you cannot use getchild to get a reference to the nested
datawindow. That answers your initial question. As for the followup
question, gaining access to the nested datawindow has been discussed many
times in the newsgroup; have a look. If you don't understand, then describe
what you are trying to accomplish.