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.

Share data & Sort

4 posts in DataWindow Last posting was on 2009-01-13 17:32:34.0Z
Francisco Posted on 2009-01-13 12:19:49.0Z
Sender: 177a.496c85cb.1804289383@sybase.com
From: Francisco
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Share data & Sort
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <496c86e5.17ba.1681692777@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 13 Jan 2009 04:19:49 -0800
X-Trace: forums-1-dub 1231849189 10.22.241.41 (13 Jan 2009 04:19:49 -0800)
X-Original-Trace: 13 Jan 2009 04:19:49 -0800, 10.22.241.41
Lines: 12
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:88572
Article PK: 417826

Hello all.

I have:

dw_1.sharedata(dw_2)
dw_1.sharedata(dw_3)

Can you please tell me if it is possible to have diferent
sort criteria for the 3 datawindows?

Thanks in advance,
Francisco


Chris Pollach Posted on 2009-01-13 12:37:25.0Z
From: "Chris Pollach" <cpollach@travel-net.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <496c86e5.17ba.1681692777@sybase.com>
Subject: Re: Share data & Sort
Lines: 28
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <496c8b05$1@forums-1-dub>
Date: 13 Jan 2009 04:37:25 -0800
X-Trace: forums-1-dub 1231850245 10.22.241.152 (13 Jan 2009 04:37:25 -0800)
X-Original-Trace: 13 Jan 2009 04:37:25 -0800, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:88573
Article PK: 417827

Hi Franciso;

Yes .. but you would have to "COPY" the buffer from the original DWO not
share it.

HTH

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

<Francisco> wrote in message news:496c86e5.17ba.1681692777@sybase.com...
> Hello all.
>
> I have:
>
> dw_1.sharedata(dw_2)
> dw_1.sharedata(dw_3)
>
> Can you please tell me if it is possible to have diferent
> sort criteria for the 3 datawindows?
>
> Thanks in advance,
> Francisco


"Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel Posted on 2009-01-13 14:07:11.0Z
From: "Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel@yahoo!.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <496c86e5.17ba.1681692777@sybase.com>
Subject: Re: Share data & Sort
Lines: 26
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: <496ca00f$1@forums-1-dub>
Date: 13 Jan 2009 06:07:11 -0800
X-Trace: forums-1-dub 1231855631 10.22.241.152 (13 Jan 2009 06:07:11 -0800)
X-Original-Trace: 13 Jan 2009 06:07:11 -0800, vip152.sybase.com
X-Authenticated-User: TeamSybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:88577
Article PK: 417830

Help for ShareData: "When you call methods in either the primary or
secondary DataWindow that change the data, PowerBuilder applies them to the
primary DataWindow control and all secondary DataWindow controls are
affected. "
And Sort is one of those methods.
So as Chris said, you would have to copy the data in order to sort it
differently rather than share it
dw_2.Object.Data = dw_1.Object.Data
dw_2.SetSort(whatever)
dw_2.Sort()

<Francisco> wrote in message news:496c86e5.17ba.1681692777@sybase.com...
> Hello all.
>
> I have:
>
> dw_1.sharedata(dw_2)
> dw_1.sharedata(dw_3)
>
> Can you please tell me if it is possible to have diferent
> sort criteria for the 3 datawindows?
>
> Thanks in advance,
> Francisco


Francisco Posted on 2009-01-13 17:32:34.0Z
Sender: 18ca.496c8d60.1804289383@sybase.com
From: Francisco
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: Share data & Sort
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <496cd032.21ca.1681692777@sybase.com>
References: <496c86e5.17ba.1681692777@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 13 Jan 2009 09:32:34 -0800
X-Trace: forums-1-dub 1231867954 10.22.241.41 (13 Jan 2009 09:32:34 -0800)
X-Original-Trace: 13 Jan 2009 09:32:34 -0800, 10.22.241.41
Lines: 17
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:88590
Article PK: 417844

Thank you very much, Chris and Jerry, for your answers.

Regards,
Francisco

> Hello all.
>
> I have:
>
> dw_1.sharedata(dw_2)
> dw_1.sharedata(dw_3)
>
> Can you please tell me if it is possible to have diferent
> sort criteria for the 3 datawindows?
>
> Thanks in advance,
> Francisco