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.

copy rows within a datawindow

3 posts in DataWindow Last posting was on 2009-07-01 03:07:25.0Z
res Posted on 2009-06-29 10:53:23.0Z
Sender: 4ca4.4a39de45.1804289383@sybase.com
From: res
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: copy rows within a datawindow
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <4a489d23.7b2b.1681692777@sybase.com>
NNTP-Posting-Host: forums-3-dub.sybase.com
X-Original-NNTP-Posting-Host: forums-3-dub.sybase.com
Date: 29 Jun 2009 03:53:23 -0700
X-Trace: forums-3-dub.sybase.com 1246272803 10.22.241.188 (29 Jun 2009 03:53:23 -0700)
X-Original-Trace: 29 Jun 2009 03:53:23 -0700, forums-3-dub.sybase.com
Lines: 12
Path: forums-1-dub!forums-master!forums-3-dub.sybase.com!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:89554
Article PK: 418743

Hi

How can we copy rows within a datawindow so that typing time
can be saved? My aim to achieve this: There is a row addded
to the dw. This dw has 20 fields. on next insert the same
details needs to be populated except for 1 or 2 field's data
changes which can be done manually later. without using
setitem for all these 20 fields, how can i use a rowscopy or
anyother mthd for achieveing this task? rowscopy returns -1
and shows required value err. Please help.

res


Annelize Posted on 2009-06-29 13:32:03.0Z
Sender: 1766.4a48c1e7.1804289383@sybase.com
From: Annelize
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: copy rows within a datawindow
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <4a48c253.17b8.1681692777@sybase.com>
References: <4a489d23.7b2b.1681692777@sybase.com>
NNTP-Posting-Host: forums-3-dub.sybase.com
X-Original-NNTP-Posting-Host: forums-3-dub.sybase.com
Date: 29 Jun 2009 06:32:03 -0700
X-Trace: forums-3-dub.sybase.com 1246282323 10.22.241.188 (29 Jun 2009 06:32:03 -0700)
X-Original-Trace: 29 Jun 2009 06:32:03 -0700, forums-3-dub.sybase.com
Lines: 19
Path: forums-1-dub!forums-master!forums-3-dub.sybase.com!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:89556
Article PK: 418745

RowsCopy method is the one you need.
It's hard to tell what you're doing wrong without more
information. Perhaps paste you code in here...

A

> Hi
>
> How can we copy rows within a datawindow so that typing
> time can be saved? My aim to achieve this: There is a row
> addded to the dw. This dw has 20 fields. on next insert
> the same details needs to be populated except for 1 or 2
> field's data changes which can be done manually later.
> without using setitem for all these 20 fields, how can i
> use a rowscopy or anyother mthd for achieveing this task?
> rowscopy returns -1 and shows required value err. Please
> help.
>
> res


res Posted on 2009-07-01 03:07:25.0Z
Sender: 378a.4a4ad295.1804289383@sybase.com
From: res
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: copy rows within a datawindow
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <4a4ad2ed.37db.1681692777@sybase.com>
References: <4a48c253.17b8.1681692777@sybase.com>
NNTP-Posting-Host: forums-3-dub.sybase.com
X-Original-NNTP-Posting-Host: forums-3-dub.sybase.com
Date: 30 Jun 2009 20:07:25 -0700
X-Trace: forums-3-dub.sybase.com 1246417645 10.22.241.188 (30 Jun 2009 20:07:25 -0700)
X-Original-Trace: 30 Jun 2009 20:07:25 -0700, forums-3-dub.sybase.com
Lines: 24
Path: forums-1-dub!forums-master!forums-3-dub.sybase.com!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:89567
Article PK: 418756

Hi

Thanks. I'd made it thr. Rowscopy() itself, it works now.

Res

> RowsCopy method is the one you need.
> It's hard to tell what you're doing wrong without more
> information. Perhaps paste you code in here...
>
> A
>
> > Hi
> >
> > How can we copy rows within a datawindow so that typing
> > time can be saved? My aim to achieve this: There is a
> > row addded to the dw. This dw has 20 fields. on next
> > insert the same details needs to be populated except for
> > 1 or 2 field's data changes which can be done manually
> > later. without using setitem for all these 20 fields,
> > how can i use a rowscopy or anyother mthd for achieveing
> > this task? rowscopy returns -1 and shows required value
> > err. Please help.
> >
> > res