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.

Datawindow sort method

4 posts in DataWindow Last posting was on 2009-07-09 22:32:52.0Z
Mfanning Posted on 2009-07-09 18:59:12.0Z
Sender: 6284.4a563d40.1804289383@sybase.com
From: MFanning
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Datawindow sort method
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <4a563e00.6303.1681692777@sybase.com>
NNTP-Posting-Host: forums-3-dub.sybase.com
X-Original-NNTP-Posting-Host: forums-3-dub.sybase.com
Date: 9 Jul 2009 11:59:12 -0700
X-Trace: forums-3-dub.sybase.com 1247165952 10.22.241.188 (9 Jul 2009 11:59:12 -0700)
X-Original-Trace: 9 Jul 2009 11:59:12 -0700, forums-3-dub.sybase.com
Lines: 6
Path: forums-1-dub!forums-master!forums-3-dub.sybase.com!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:89615
Article PK: 418804

I cant seem to get the pb sort method to work, doesnt error
out, but doesnt sort the data

Im using the following, where is my datawindowchild:
pdwcInjuryAreas.SetSort("injarea_descr A")
pdwcInjuryAreas.Sort()


"Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel Posted on 2009-07-09 19:22:04.0Z
From: "Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel@yahoo!.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <4a563e00.6303.1681692777@sybase.com>
Subject: Re: Datawindow sort method
Lines: 19
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: <4a56435c$2@forums-3-dub.sybase.com>
Date: 9 Jul 2009 12:22:04 -0700
X-Trace: forums-3-dub.sybase.com 1247167324 10.22.241.152 (9 Jul 2009 12:22:04 -0700)
X-Original-Trace: 9 Jul 2009 12:22:04 -0700, vip152.sybase.com
X-Authenticated-User: TeamSybase
Path: forums-1-dub!forums-master!forums-3-dub.sybase.com!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:89616
Article PK: 418803

Did you do a successful GetChild to make pdwcInjuryAreas valid? And is it a
DDDW?
Did the SetSort and Sort return 1 or -1?

--
Report Bugs: http://case-express.sybase.com/cx/welcome.do
Product Enhancement Requests:
http://my.isug.com/cgi-bin/1/c/submit_enhancement

<MFanning> wrote in message news:4a563e00.6303.1681692777@sybase.com...
>I cant seem to get the pb sort method to work, doesnt error
> out, but doesnt sort the data
>
> Im using the following, where is my datawindowchild:
> pdwcInjuryAreas.SetSort("injarea_descr A")
> pdwcInjuryAreas.Sort()


Mfanning Posted on 2009-07-09 20:09:35.0Z
Sender: 6284.4a563d40.1804289383@sybase.com
From: MFanning
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: Datawindow sort method
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <4a564e7f.6f13.1681692777@sybase.com>
References: <4a56435c$2@forums-3-dub.sybase.com>
NNTP-Posting-Host: forums-3-dub.sybase.com
X-Original-NNTP-Posting-Host: forums-3-dub.sybase.com
Date: 9 Jul 2009 13:09:35 -0700
X-Trace: forums-3-dub.sybase.com 1247170175 10.22.241.188 (9 Jul 2009 13:09:35 -0700)
X-Original-Trace: 9 Jul 2009 13:09:35 -0700, forums-3-dub.sybase.com
Lines: 30
Path: forums-1-dub!forums-master!forums-3-dub.sybase.com!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:89617
Article PK: 418805

Yes, getchild is working and pdwcInjuryAreas is valid.
I know this because my filter is working, code below working
perfect

pdwcInjuryAreas.SetFilter("injurytypeid="+ String(
plinjuryTypeID))
pdwcInjuryAreas.Filter()

It is a dddw.
setsort and sort both return a 1

> Did you do a successful GetChild to make pdwcInjuryAreas
> valid? And is it a DDDW?
> Did the SetSort and Sort return 1 or -1?
>
> --
> Report Bugs: http://case-express.sybase.com/cx/welcome.do
> Product Enhancement Requests:
> http://my.isug.com/cgi-bin/1/c/submit_enhancement
>
>
> <MFanning> wrote in message
> news:4a563e00.6303.1681692777@sybase.com... >I cant seem
> > to get the pb sort method to work, doesnt error out, but
> doesnt sort the data >
> > Im using the following, where is my datawindowchild:
> > pdwcInjuryAreas.SetSort("injarea_descr A")
> > pdwcInjuryAreas.Sort()
>
>


"Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel Posted on 2009-07-09 22:32:52.0Z
From: "Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel@yahoo!.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <4a56435c$2@forums-3-dub.sybase.com> <4a564e7f.6f13.1681692777@sybase.com>
Subject: Re: Datawindow sort method
Lines: 45
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: <4a567014$1@forums-3-dub.sybase.com>
Date: 9 Jul 2009 15:32:52 -0700
X-Trace: forums-3-dub.sybase.com 1247178772 10.22.241.152 (9 Jul 2009 15:32:52 -0700)
X-Original-Trace: 9 Jul 2009 15:32:52 -0700, vip152.sybase.com
X-Authenticated-User: TeamSybase
Path: forums-1-dub!forums-master!forums-3-dub.sybase.com!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:89618
Article PK: 418806

Pardon the obvous, have you checked that injarea_descr is the correct
spelling of a column or computed field in the DDDW?
Other than that the code looks good, and if those long established methods
had a bug there would have been loud screaming long ago. Anything else that
might help me figure this out?

--
Report Bugs: http://case-express.sybase.com/cx/welcome.do
Product Enhancement Requests:
http://my.isug.com/cgi-bin/1/c/submit_enhancement

<MFanning> wrote in message news:4a564e7f.6f13.1681692777@sybase.com...
> Yes, getchild is working and pdwcInjuryAreas is valid.
> I know this because my filter is working, code below working
> perfect
>
> pdwcInjuryAreas.SetFilter("injurytypeid="+ String(
> plinjuryTypeID))
> pdwcInjuryAreas.Filter()
>
> It is a dddw.
> setsort and sort both return a 1
>
>> Did you do a successful GetChild to make pdwcInjuryAreas
>> valid? And is it a DDDW?
>> Did the SetSort and Sort return 1 or -1?
>>
>> --
>> Report Bugs: http://case-express.sybase.com/cx/welcome.do
>> Product Enhancement Requests:
>> http://my.isug.com/cgi-bin/1/c/submit_enhancement
>>
>>
>> <MFanning> wrote in message
>> news:4a563e00.6303.1681692777@sybase.com... >I cant seem
>> > to get the pb sort method to work, doesnt error out, but
>> doesnt sort the data >
>> > Im using the following, where is my datawindowchild:
>> > pdwcInjuryAreas.SetSort("injarea_descr A")
>> > pdwcInjuryAreas.Sort()
>>
>>