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.

Which event is fired by SelectRow?

6 posts in DataWindow Last posting was on 2008-08-08 16:14:17.0Z
Christof Zottmann Posted on 2008-08-07 15:50:59.0Z
From: Christof Zottmann <zottmann.n-o-s_p-a_m@ernst-gun.de>
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Which event is fired by SelectRow?
Message-ID: <686m94d9nmeql8gdh71eaf6e77nou7rh5d@4ax.com>
X-Newsreader: Forte Agent 4.2/32.1118
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Date: 7 Aug 2008 08:50:59 -0700
X-Trace: forums-1-dub 1218124259 10.22.241.152 (7 Aug 2008 08:50:59 -0700)
X-Original-Trace: 7 Aug 2008 08:50:59 -0700, vip152.sybase.com
Lines: 13
X-Authenticated-User: pb110beta
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:87515
Article PK: 416771

Hello!

In the clicked event of the dw I select a row and then I enable a
button that should only be enabled when at least one row is selected.
That works without problem. But when I select a row with the method
datawindow.SelectRow(1,TRUE)
then I have to enable or disable the button manually, but I want to do
that in the ancestor. So I need a event (if possible, not the
other-event) that is fired after I do a SelectRow.

Does anyone know what event is fired?

Thank you!


"Jason 'Bug' Fenter [TeamSybase]" <NO_SPAMMING_jason.fenter_ Posted on 2008-08-07 18:14:45.0Z
From: "Jason 'Bug' Fenter [TeamSybase]" <NO_SPAMMING_jason.fenter_@_teamsybase.com>
User-Agent: Thunderbird 2.0.0.16 (Windows/20080708)
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: Which event is fired by SelectRow?
References: <686m94d9nmeql8gdh71eaf6e77nou7rh5d@4ax.com>
In-Reply-To: <686m94d9nmeql8gdh71eaf6e77nou7rh5d@4ax.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <489b3b95$1@forums-1-dub>
Date: 7 Aug 2008 11:14:45 -0700
X-Trace: forums-1-dub 1218132885 10.22.241.152 (7 Aug 2008 11:14:45 -0700)
X-Original-Trace: 7 Aug 2008 11:14:45 -0700, vip152.sybase.com
Lines: 17
X-Authenticated-User: teamsybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:87519
Article PK: 416778

No event is triggered. You'll have to make the call "manually".

Christof Zottmann wrote:
> Hello!
>
> In the clicked event of the dw I select a row and then I enable a
> button that should only be enabled when at least one row is selected.
> That works without problem. But when I select a row with the method
> datawindow.SelectRow(1,TRUE)
> then I have to enable or disable the button manually, but I want to do
> that in the ancestor. So I need a event (if possible, not the
> other-event) that is fired after I do a SelectRow.
>
> Does anyone know what event is fired?
>
> Thank you!


Jeremy Lakeman Posted on 2008-08-07 23:39:44.0Z
From: Jeremy Lakeman <jeremy.lakeman@gmail.com>
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: Which event is fired by SelectRow?
Date: Thu, 7 Aug 2008 16:39:44 -0700 (PDT)
Organization: http://groups.google.com
Lines: 33
Message-ID: <91d8077a-eb1a-4c13-99ca-283e06d232b0@a1g2000hsb.googlegroups.com>
References: <686m94d9nmeql8gdh71eaf6e77nou7rh5d@4ax.com> <489b3b95$1@forums-1-dub>
NNTP-Posting-Host: 203.122.242.105
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1218152385 25872 127.0.0.1 (7 Aug 2008 23:39:45 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Thu, 7 Aug 2008 23:39:45 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: a1g2000hsb.googlegroups.com; posting-host=203.122.242.105; posting-account=euaBtgoAAAC_vDxfsxmpMKlBxHaHpmRS
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1,gzip(gfe),gzip(gfe)
X-HTTP-Via: 1.1 fly.essential.com.au:3128 (squid/2.5.STABLE8), 1.0 asp.essential.intranet:3128 (squid/2.5.STABLE8)
Path: forums-1-dub!forums-master!newssvr.sybase.com!news-sj-1.sprintlink.net!news-peer1.sprintlink.net!nntp1.phx1.gblx.net!nntp.gblx.net!nntp.gblx.net!border2.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!a1g2000hsb.googlegroups.com!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:87522
Article PK: 416776

On Aug 8, 3:14 am, "Jason 'Bug' Fenter [TeamSybase]"

<NO_SPAMMING_jason.fenter_@_teamsybase.com> wrote:
> No event is triggered. You'll have to make the call "manually".
>
> Christof Zottmann wrote:
> > Hello!
>
> > In the clicked event of the dw I select a row and then I enable a
> > button that should only be enabled when at least one row is selected.
> > That works without problem. But when I select a row with the method
> > datawindow.SelectRow(1,TRUE)
> > then I have to enable or disable the button manually, but I want to do
> > that in the ancestor. So I need a event (if possible, not the
> > other-event) that is fired after I do a SelectRow.
>
> > Does anyone know what event is fired?
>
> > Thank you!

Two options;
Firstly you can use "isselected()" in a datawindow expression. Though
it sounds like you have a window control button so that probably
doesn't help...
Secondly you could add an event yourself.
Simply override the selectrow function in an ancestor datawindow
control like this;

function integer SelectRow ( long row, boolean select );
integer li_ret
li_ret = super::selectrow(row,select)
this.event ue_afterselect(row,select)
return li_ret
end function


Christof Zottmann Posted on 2008-08-08 07:34:44.0Z
From: Christof Zottmann <zottmann.n-o-s_p-a_m@ernst-gun.de>
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: Which event is fired by SelectRow?
Message-ID: <6itn94dbdafsub3odrlf52qpg65gr5kr0g@4ax.com>
References: <686m94d9nmeql8gdh71eaf6e77nou7rh5d@4ax.com> <489b3b95$1@forums-1-dub> <91d8077a-eb1a-4c13-99ca-283e06d232b0@a1g2000hsb.googlegroups.com>
X-Newsreader: Forte Agent 4.2/32.1118
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Date: 8 Aug 2008 00:34:44 -0700
X-Trace: forums-1-dub 1218180884 10.22.241.152 (8 Aug 2008 00:34:44 -0700)
X-Original-Trace: 8 Aug 2008 00:34:44 -0700, vip152.sybase.com
Lines: 21
X-Authenticated-User: pb110beta
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:87525
Article PK: 416781

On Thu, 7 Aug 2008 16:39:44 -0700 (PDT), Jeremy Lakeman
<jeremy.lakeman@gmail.com> wrote:

Good idea, but it doesn't work. If I create a function with that name,
PB tells me the error "Function already exist in object", because it
is inherited from datawindow and there this function already exists.

>Two options;
>Firstly you can use "isselected()" in a datawindow expression. Though
>it sounds like you have a window control button so that probably
>doesn't help...
>Secondly you could add an event yourself.
>Simply override the selectrow function in an ancestor datawindow
>control like this;
>
>function integer SelectRow ( long row, boolean select );
>integer li_ret
>li_ret = super::selectrow(row,select)
>this.event ue_afterselect(row,select)
>return li_ret
>end function


Chris Werner Posted on 2008-08-08 15:39:56.0Z
From: "Chris Werner" <cwAT{PleaseNoSpam}f-s.de>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <686m94d9nmeql8gdh71eaf6e77nou7rh5d@4ax.com> <489b3b95$1@forums-1-dub> <91d8077a-eb1a-4c13-99ca-283e06d232b0@a1g2000hsb.googlegroups.com> <6itn94dbdafsub3odrlf52qpg65gr5kr0g@4ax.com>
Subject: Re: Which event is fired by SelectRow?
Lines: 35
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.3198
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <489c68cc@forums-1-dub>
Date: 8 Aug 2008 08:39:56 -0700
X-Trace: forums-1-dub 1218209996 10.22.241.152 (8 Aug 2008 08:39:56 -0700)
X-Original-Trace: 8 Aug 2008 08:39:56 -0700, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:87527
Article PK: 416784

Hi Christof,

you must not create the function SelectRow ( long row, boolean select )
but double click it in the function list of the datawindow and then enter
the
code. That's how a function is overridden in PB.

Chris Werner
f+s software gmbh

"Christof Zottmann" <zottmann.n-o-s_p-a_m@ernst-gun.de> schrieb im
Newsbeitrag news:6itn94dbdafsub3odrlf52qpg65gr5kr0g@4ax.com...
On Thu, 7 Aug 2008 16:39:44 -0700 (PDT), Jeremy Lakeman
<jeremy.lakeman@gmail.com> wrote:

Good idea, but it doesn't work. If I create a function with that name,
PB tells me the error "Function already exist in object", because it
is inherited from datawindow and there this function already exists.

>Two options;
>Firstly you can use "isselected()" in a datawindow expression. Though
>it sounds like you have a window control button so that probably
>doesn't help...
>Secondly you could add an event yourself.
>Simply override the selectrow function in an ancestor datawindow
>control like this;
>
>function integer SelectRow ( long row, boolean select );
>integer li_ret
>li_ret = super::selectrow(row,select)
>this.event ue_afterselect(row,select)
>return li_ret
>end function


"Jason 'Bug' Fenter [TeamSybase]" <NO_SPAMMING_jason.fenter_ Posted on 2008-08-08 16:14:17.0Z
From: "Jason 'Bug' Fenter [TeamSybase]" <NO_SPAMMING_jason.fenter_@_teamsybase.com>
User-Agent: Thunderbird 2.0.0.16 (Windows/20080708)
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: Which event is fired by SelectRow?
References: <686m94d9nmeql8gdh71eaf6e77nou7rh5d@4ax.com> <489b3b95$1@forums-1-dub> <91d8077a-eb1a-4c13-99ca-283e06d232b0@a1g2000hsb.googlegroups.com> <6itn94dbdafsub3odrlf52qpg65gr5kr0g@4ax.com>
In-Reply-To: <6itn94dbdafsub3odrlf52qpg65gr5kr0g@4ax.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <489c70d9$1@forums-1-dub>
Date: 8 Aug 2008 09:14:17 -0700
X-Trace: forums-1-dub 1218212057 10.22.241.152 (8 Aug 2008 09:14:17 -0700)
X-Original-Trace: 8 Aug 2008 09:14:17 -0700, vip152.sybase.com
Lines: 28
X-Authenticated-User: teamsybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:87528
Article PK: 416785

In the script painter, you can select the predefined functions from the
middle drop-down. Select the existing SelectRow method and enter
Jeremy's code there.

Christof Zottmann wrote:
> On Thu, 7 Aug 2008 16:39:44 -0700 (PDT), Jeremy Lakeman
> <jeremy.lakeman@gmail.com> wrote:
>
> Good idea, but it doesn't work. If I create a function with that name,
> PB tells me the error "Function already exist in object", because it
> is inherited from datawindow and there this function already exists.
>
>> Two options;
>> Firstly you can use "isselected()" in a datawindow expression. Though
>> it sounds like you have a window control button so that probably
>> doesn't help...
>> Secondly you could add an event yourself.
>> Simply override the selectrow function in an ancestor datawindow
>> control like this;
>>
>> function integer SelectRow ( long row, boolean select );
>> integer li_ret
>> li_ret = super::selectrow(row,select)
>> this.event ue_afterselect(row,select)
>> return li_ret
>> end function