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.

Need syntax for datawindow sub-report

3 posts in DataWindow Last posting was on 2009-04-24 08:38:40.0Z
Sharon Posted on 2009-04-22 19:34:28.0Z
Sender: 56ae.49ef705d.1804289383@sybase.com
From: Sharon
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Need syntax for datawindow sub-report
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <49ef7144.56c3.1681692777@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 22 Apr 2009 12:34:28 -0700
X-Trace: forums-1-dub 1240428868 10.22.241.41 (22 Apr 2009 12:34:28 -0700)
X-Original-Trace: 22 Apr 2009 12:34:28 -0700, 10.22.241.41
Lines: 16
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:89188
Article PK: 418439

I want to set values on the subreport of a datawindow.

Here's the code I used

DataWindowChild dwc_list
lds_ddr.GetChild("dw_1", dwc_list)
j = dwc_list.insertrow(0)
for k = 1 to 17
dwc_list.object.data[j,k] = 'd' //does not like this
line
next

It tells me incompatible property object for type datawindow
child.

Any way to do this ?


John Strano[Sybase] Posted on 2009-04-23 20:59:02.0Z
From: "John Strano[Sybase]" <nichtspamjstrano@csi.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <49ef7144.56c3.1681692777@sybase.com>
Subject: Re: Need syntax for datawindow sub-report
Lines: 28
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <49f0d696@forums-1-dub>
Date: 23 Apr 2009 13:59:02 -0700
X-Trace: forums-1-dub 1240520342 10.22.241.152 (23 Apr 2009 13:59:02 -0700)
X-Original-Trace: 23 Apr 2009 13:59:02 -0700, vip152.sybase.com
X-Authenticated-User: TeamSybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:89192
Article PK: 418444

Is the child DW a drop down DataWindow or a child DW in a Composite parent
DW?

--
John Strano - Sybase Technology Evangelist

blog: http://powerbuilder.johnstrano.com/

<Sharon> wrote in message news:49ef7144.56c3.1681692777@sybase.com...
>I want to set values on the subreport of a datawindow.
>
> Here's the code I used
>
> DataWindowChild dwc_list
> lds_ddr.GetChild("dw_1", dwc_list)
> j = dwc_list.insertrow(0)
> for k = 1 to 17
> dwc_list.object.data[j,k] = 'd' //does not like this
> line
> next
>
> It tells me incompatible property object for type datawindow
> child.
>
> Any way to do this ?


Chris Werner Posted on 2009-04-24 08:38:40.0Z
From: "Chris Werner" <cwAT{PleaseNoSpam}f-s.de>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <49ef7144.56c3.1681692777@sybase.com>
Subject: Re: Need syntax for datawindow sub-report
Lines: 40
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: <49f17a90@forums-1-dub>
Date: 24 Apr 2009 01:38:40 -0700
X-Trace: forums-1-dub 1240562320 10.22.241.152 (24 Apr 2009 01:38:40 -0700)
X-Original-Trace: 24 Apr 2009 01:38:40 -0700, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:89194
Article PK: 418445

Sharon,

you can't use dot notation in a DataWindowChild.

Change the line

dwc_list.object.data[j,k] = 'd' //does not like this

into

dwc_list.setItem(j, k, 'd')

Of course this will work only if either "dw_1" is a dropDown
dataWindow (unlikely because of the name) or the dataobject
of lds_ddr is a Composite report.

HTH

Chris Werner
f+s software gmbh

<Sharon> schrieb im Newsbeitrag news:49ef7144.56c3.1681692777@sybase.com...

>I want to set values on the subreport of a datawindow.
>
> Here's the code I used
>
> DataWindowChild dwc_list
> lds_ddr.GetChild("dw_1", dwc_list)
> j = dwc_list.insertrow(0)
> for k = 1 to 17
> dwc_list.object.data[j,k] = 'd' //does not like this
> line
> next
>
> It tells me incompatible property object for type datawindow
> child.
>
> Any way to do this ?