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.

Triggering button clicking on datawindow header

11 posts in DataWindow Last posting was on 2008-05-13 12:28:16.0Z
Gwydion Posted on 2008-05-06 14:42:53.0Z
From: Gwydion <gwydion@oletros.info>
User-Agent: Thunderbird 2.0.0.12 (Windows/20080213)
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Triggering button clicking on datawindow header
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: <48206e6d@forums-1-dub>
Date: 6 May 2008 07:42:53 -0700
X-Trace: forums-1-dub 1210084973 10.22.241.152 (6 May 2008 07:42:53 -0700)
X-Original-Trace: 6 May 2008 07:42:53 -0700, vip152.sybase.com
Lines: 2
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:86784
Article PK: 416042

Can I trigger clicked event on a button in datawindow header from the
outside of the datawindow?


Dean Jones Posted on 2008-05-06 14:48:57.0Z
From: "Dean Jones" <dean_dot_jones_at_powerobjects_dot_com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <48206e6d@forums-1-dub>
Subject: Re: Triggering button clicking on datawindow header
Lines: 20
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-RFC2646: Format=Flowed; Response
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <48206fd9$1@forums-1-dub>
Date: 6 May 2008 07:48:57 -0700
X-Trace: forums-1-dub 1210085337 10.22.241.152 (6 May 2008 07:48:57 -0700)
X-Original-Trace: 6 May 2008 07:48:57 -0700, vip152.sybase.com
X-Authenticated-User: teamsybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:86785
Article PK: 416044

the event is actually in the control, why not just trigger the event in the
control?

--
Dean Jones
CEO
PowerObjects
http://www.powerobjects.com
(612) 339-3355 Ext. 112

TeamSybase
* * Think Sybase * *

"Gwydion" <gwydion@oletros.info> wrote in message
news:48206e6d@forums-1-dub...
> Can I trigger clicked event on a button in datawindow header from the
> outside of the datawindow?


Gwydion Posted on 2008-05-06 15:03:58.0Z
From: Gwydion <gwydion@oletros.info>
User-Agent: Thunderbird 2.0.0.12 (Windows/20080213)
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: Triggering button clicking on datawindow header
References: <48206e6d@forums-1-dub> <48206fd9$1@forums-1-dub>
In-Reply-To: <48206fd9$1@forums-1-dub>
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: <4820735e@forums-1-dub>
Date: 6 May 2008 08:03:58 -0700
X-Trace: forums-1-dub 1210086238 10.22.241.152 (6 May 2008 08:03:58 -0700)
X-Original-Trace: 6 May 2008 08:03:58 -0700, vip152.sybase.com
Lines: 11
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:86786
Article PK: 416045


Dean Jones wrote:
> the event is actually in the control, why not just trigger the event in the
> control?
>

Is a strange case, the button has code embedded in the tag property
which call some functions in a number o classes but I must use a command
button in the window (users want this), so when I press the button I
have to simulate a click on the datawindow button (which will be invisible)

Yes, I know that is bizarre, messy and so on but I have no other possibility


Dean Jones Posted on 2008-05-06 15:17:19.0Z
From: "Dean Jones" <dean_dot_jones_at_powerobjects_dot_com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <48206e6d@forums-1-dub> <48206fd9$1@forums-1-dub> <4820735e@forums-1-dub>
Subject: Re: Triggering button clicking on datawindow header
Lines: 37
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-RFC2646: Format=Flowed; Response
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4820767f$1@forums-1-dub>
Date: 6 May 2008 08:17:19 -0700
X-Trace: forums-1-dub 1210087039 10.22.241.152 (6 May 2008 08:17:19 -0700)
X-Original-Trace: 6 May 2008 08:17:19 -0700, vip152.sybase.com
X-Authenticated-User: teamsybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:86787
Article PK: 416046

I guess I have know idea how you can add code to a dw control button. It
does not have an event. If you click the button, where would the code
execute, or how does the code execute? If you have stuff in the tag, you can
grab that information using dot notation or describe. I thin you can even
evaluate the information to get it to execute. What I don't understand is
how the click of a dw button could execute anything other then the event on
the datawindow control. Now if you have a case statement in this event and
need to know which button was click you need to load some variables before
triggering the event.

--
Dean Jones
CEO
PowerObjects
http://www.powerobjects.com
(612) 339-3355 Ext. 112

TeamSybase
* * Think Sybase * *

"Gwydion" <gwydion@oletros.info> wrote in message
news:4820735e@forums-1-dub...
> Dean Jones wrote:
>> the event is actually in the control, why not just trigger the event in
>> the control?
>>
>
> Is a strange case, the button has code embedded in the tag property which
> call some functions in a number o classes but I must use a command button
> in the window (users want this), so when I press the button I have to
> simulate a click on the datawindow button (which will be invisible)
>
> Yes, I know that is bizarre, messy and so on but I have no other
> possibility


Chris Pollach Posted on 2008-05-12 15:28:21.0Z
From: "Chris Pollach" <cpollach@travel-net.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <48206e6d@forums-1-dub>
Subject: Re: Triggering button clicking on datawindow header
Lines: 40
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; Response
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <48286215$1@forums-1-dub>
Date: 12 May 2008 08:28:21 -0700
X-Trace: forums-1-dub 1210606101 10.22.241.152 (12 May 2008 08:28:21 -0700)
X-Original-Trace: 12 May 2008 08:28:21 -0700, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:86806
Article PK: 416066

Hi G;

The trick for sending and receiving the button events is that the
pointer "dwo" will not be valid from outside the DW Control. Sooo - Here is
what I do ...

Might I suggest the following:

1) Send DW Control a "ButtonClicked" event ...

DWObject lo_dwo
Long ll_row = 1
Long ll_rc = 0
Message.StringParm = "cb_chris"
dc.event buttonclicked (ll_row, ll_rc, lo_dwo)

2) Process the BC Event ...

String ls_name
IF IsValid (dwo) = TRUE THEN
ls_name = String (dwo.Name)
else
ls_name = Message.StringParm
END IF
MessageBox ("DWO", "You pressed CB - " + ls_name)


HTH

Regards ... Chris

"Gwydion" <gwydion@oletros.info> wrote in message
news:48206e6d@forums-1-dub...
> Can I trigger clicked event on a button in datawindow header from the
> outside of the datawindow?


Yeyi Posted on 2008-05-12 16:25:15.0Z
From: Yeyi <yeyi.abulencia@gmail.com>
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: Triggering button clicking on datawindow header
Date: Mon, 12 May 2008 09:25:15 -0700 (PDT)
Organization: http://groups.google.com
Lines: 45
Message-ID: <df9081a8-7a3d-41e8-aa77-7f774112d814@f36g2000hsa.googlegroups.com>
References: <48206e6d@forums-1-dub> <48286215$1@forums-1-dub>
NNTP-Posting-Host: 218.186.10.11
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Trace: posting.google.com 1210609516 31560 127.0.0.1 (12 May 2008 16:25:16 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Mon, 12 May 2008 16:25:16 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: f36g2000hsa.googlegroups.com; posting-host=218.186.10.11; posting-account=JXp4HwoAAABO0Xwi355A8ey15dPjfWzP
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14,gzip(gfe),gzip(gfe)
Path: forums-1-dub!forums-master!newssvr.sybase.com!news-sj-1.sprintlink.net!news-peer1.sprintlink.net!newsfeed.yul.equant.net!nntp1.roc.gblx.net!nntp.gblx.net!nntp.gblx.net!newsfeeds.sol.net!news-out.readnews.com!transit3.readnews.com!postnews.google.com!f36g2000hsa.googlegroups.com!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:86808
Article PK: 416067

This might work:

dwobject ldwco

ldwco = dw_1.object.__get_attribute("cb_yourbutton", false)
dw_1.event buttonclicked (ll_row, ll_rc, ldwco)

On May 12, 11:28 pm, "Chris Pollach" <cpoll...@travel-net.com> wrote:
> Hi G;
>
> The trick for sending and receiving the button events is that the
> pointer "dwo" will not be valid from outside the DW Control. Sooo - Here is
> what I do ...
>
> Might I suggest the following:
>
> 1) Send DW Control a "ButtonClicked" event ...
>
> DWObject lo_dwo
> Long ll_row = 1
> Long ll_rc = 0
> Message.StringParm = "cb_chris"
> dc.event buttonclicked (ll_row, ll_rc, lo_dwo)
>
> 2) Process the BC Event ...
>
> String ls_name
> IF IsValid (dwo) = TRUE THEN
> ls_name = String (dwo.Name)
> else
> ls_name = Message.StringParm
> END IF
> MessageBox ("DWO", "You pressed CB - " + ls_name)
>
> HTH
>
> Regards ... Chris
>
> "Gwydion" <gwyd...@oletros.info> wrote in message
>
> news:48206e6d@forums-1-dub...
>
> > Can I trigger clicked event on a button in datawindow header from the
> > outside of the datawindow?


"Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel Posted on 2008-05-12 16:58:07.0Z
From: "Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel@yahoo!.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <48206e6d@forums-1-dub> <48286215$1@forums-1-dub> <df9081a8-7a3d-41e8-aa77-7f774112d814@f36g2000hsa.googlegroups.com>
Subject: Re: Triggering button clicking on datawindow header
Lines: 53
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: <4828771f@forums-1-dub>
Date: 12 May 2008 09:58:07 -0700
X-Trace: forums-1-dub 1210611487 10.22.241.152 (12 May 2008 09:58:07 -0700)
X-Original-Trace: 12 May 2008 09:58:07 -0700, vip152.sybase.com
X-Authenticated-User: TeamSybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:86812
Article PK: 416071

What a handy function. We should request an enhancement to make it
documented and supported.

"Yeyi" <yeyi.abulencia@gmail.com> wrote in message
news:df9081a8-7a3d-41e8-aa77-7f774112d814@f36g2000hsa.googlegroups.com...
> This might work:
>
> dwobject ldwco
>
> ldwco = dw_1.object.__get_attribute("cb_yourbutton", false)
> dw_1.event buttonclicked (ll_row, ll_rc, ldwco)
>
> On May 12, 11:28 pm, "Chris Pollach" <cpoll...@travel-net.com> wrote:
>> Hi G;
>>
>> The trick for sending and receiving the button events is that the
>> pointer "dwo" will not be valid from outside the DW Control. Sooo - Here
>> is
>> what I do ...
>>
>> Might I suggest the following:
>>
>> 1) Send DW Control a "ButtonClicked" event ...
>>
>> DWObject lo_dwo
>> Long ll_row = 1
>> Long ll_rc = 0
>> Message.StringParm = "cb_chris"
>> dc.event buttonclicked (ll_row, ll_rc, lo_dwo)
>>
>> 2) Process the BC Event ...
>>
>> String ls_name
>> IF IsValid (dwo) = TRUE THEN
>> ls_name = String (dwo.Name)
>> else
>> ls_name = Message.StringParm
>> END IF
>> MessageBox ("DWO", "You pressed CB - " + ls_name)
>>
>> HTH
>>
>> Regards ... Chris
>>
>> "Gwydion" <gwyd...@oletros.info> wrote in message
>>
>> news:48206e6d@forums-1-dub...
>>
>> > Can I trigger clicked event on a button in datawindow header from the
>> > outside of the datawindow?
>


Chris Pollach Posted on 2008-05-12 18:12:48.0Z
From: "Chris Pollach" <cpollach@travel-net.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <48206e6d@forums-1-dub> <48286215$1@forums-1-dub> <df9081a8-7a3d-41e8-aa77-7f774112d814@f36g2000hsa.googlegroups.com> <4828771f@forums-1-dub>
Subject: Re: Triggering button clicking on datawindow header
Lines: 68
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; Response
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <482888a0$1@forums-1-dub>
Date: 12 May 2008 11:12:48 -0700
X-Trace: forums-1-dub 1210615968 10.22.241.152 (12 May 2008 11:12:48 -0700)
X-Original-Trace: 12 May 2008 11:12:48 -0700, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:86815
Article PK: 416073

Jerry;

I agree ... and it works great too! :-)

BTW: Michael Searer has this in the ISUG enhancement list as request # 3065
Please vote on this request to raise its viability.

Regards ... Chris
ISUG - NA RUG Director

"Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel@yahoo!.com> wrote in message
news:4828771f@forums-1-dub...
> What a handy function. We should request an enhancement to make it
> documented and supported.
>
> "Yeyi" <yeyi.abulencia@gmail.com> wrote in message
> news:df9081a8-7a3d-41e8-aa77-7f774112d814@f36g2000hsa.googlegroups.com...
>> This might work:
>>
>> dwobject ldwco
>>
>> ldwco = dw_1.object.__get_attribute("cb_yourbutton", false)
>> dw_1.event buttonclicked (ll_row, ll_rc, ldwco)
>>
>> On May 12, 11:28 pm, "Chris Pollach" <cpoll...@travel-net.com> wrote:
>>> Hi G;
>>>
>>> The trick for sending and receiving the button events is that the
>>> pointer "dwo" will not be valid from outside the DW Control. Sooo - Here
>>> is
>>> what I do ...
>>>
>>> Might I suggest the following:
>>>
>>> 1) Send DW Control a "ButtonClicked" event ...
>>>
>>> DWObject lo_dwo
>>> Long ll_row = 1
>>> Long ll_rc = 0
>>> Message.StringParm = "cb_chris"
>>> dc.event buttonclicked (ll_row, ll_rc, lo_dwo)
>>>
>>> 2) Process the BC Event ...
>>>
>>> String ls_name
>>> IF IsValid (dwo) = TRUE THEN
>>> ls_name = String (dwo.Name)
>>> else
>>> ls_name = Message.StringParm
>>> END IF
>>> MessageBox ("DWO", "You pressed CB - " + ls_name)
>>>
>>> HTH
>>>
>>> Regards ... Chris
>>>
>>> "Gwydion" <gwyd...@oletros.info> wrote in message
>>>
>>> news:48206e6d@forums-1-dub...
>>>
>>> > Can I trigger clicked event on a button in datawindow header from the
>>> > outside of the datawindow?
>>
>
>


Yeyi Posted on 2008-05-13 03:57:07.0Z
From: Yeyi <yeyi.abulencia@gmail.com>
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: Triggering button clicking on datawindow header
Date: Mon, 12 May 2008 20:57:07 -0700 (PDT)
Organization: http://groups.google.com
Lines: 67
Message-ID: <e67ded18-f591-464f-8cf0-93bff63c9bcd@h1g2000prh.googlegroups.com>
References: <48206e6d@forums-1-dub> <48286215$1@forums-1-dub> <df9081a8-7a3d-41e8-aa77-7f774112d814@f36g2000hsa.googlegroups.com> <4828771f@forums-1-dub> <482888a0$1@forums-1-dub>
NNTP-Posting-Host: 202.79.215.251
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Trace: posting.google.com 1210651028 21655 127.0.0.1 (13 May 2008 03:57:08 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Tue, 13 May 2008 03:57:08 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: h1g2000prh.googlegroups.com; posting-host=202.79.215.251; posting-account=JXp4HwoAAABO0Xwi355A8ey15dPjfWzP
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14,gzip(gfe),gzip(gfe)
Bytes: 3370
Path: forums-1-dub!forums-master!newssvr.sybase.com!news-sj-1.sprintlink.net!news-peer1.sprintlink.net!newsfeed.yul.equant.net!novia!novia!border2.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!h1g2000prh.googlegroups.com!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:86825
Article PK: 416084

Props to Jeremy Lakeman and Philip Salgannik for this, I'm not sure w/
c of you guys came out with it first =P

On May 13, 2:12 am, "Chris Pollach" <cpoll...@travel-net.com> wrote:
> Jerry;
>
> I agree ... and it works great too! :-)
>
> BTW: Michael Searer has this in the ISUG enhancement list as request # 3065
> Please vote on this request to raise its viability.
>
> Regards ... Chris
> ISUG - NA RUG Director
>
> "Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel@yahoo!.com> wrote in messagenews:4828771f@forums-1-dub...
>
> > What a handy function. We should request an enhancement to make it
> > documented and supported.
>
> > "Yeyi" <yeyi.abulen...@gmail.com> wrote in message
> >news:df9081a8-7a3d-41e8-aa77-7f774112d814@f36g2000hsa.googlegroups.com...
> >> This might work:
>
> >> dwobject ldwco
>
> >> ldwco = dw_1.object.__get_attribute("cb_yourbutton", false)
> >> dw_1.event buttonclicked (ll_row, ll_rc, ldwco)
>
> >> On May 12, 11:28 pm, "Chris Pollach" <cpoll...@travel-net.com> wrote:
> >>> Hi G;
>
> >>> The trick for sending and receiving the button events is that the
> >>> pointer "dwo" will not be valid from outside the DW Control. Sooo - Here
> >>> is
> >>> what I do ...
>
> >>> Might I suggest the following:
>
> >>> 1) Send DW Control a "ButtonClicked" event ...
>
> >>> DWObject lo_dwo
> >>> Long ll_row = 1
> >>> Long ll_rc = 0
> >>> Message.StringParm = "cb_chris"
> >>> dc.event buttonclicked (ll_row, ll_rc, lo_dwo)
>
> >>> 2) Process the BC Event ...
>
> >>> String ls_name
> >>> IF IsValid (dwo) = TRUE THEN
> >>> ls_name = String (dwo.Name)
> >>> else
> >>> ls_name = Message.StringParm
> >>> END IF
> >>> MessageBox ("DWO", "You pressed CB - " + ls_name)
>
> >>> HTH
>
> >>> Regards ... Chris
>
> >>> "Gwydion" <gwyd...@oletros.info> wrote in message
>
> >>>news:48206e6d@forums-1-dub...
>
> >>> > Can I trigger clicked event on a button in datawindow header from the
> >>> > outside of the datawindow?


Dean Jones Posted on 2008-05-13 12:28:16.0Z
From: "Dean Jones" <dean_dot_jones_at_powerobjects_dot_com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <48206e6d@forums-1-dub> <48286215$1@forums-1-dub> <df9081a8-7a3d-41e8-aa77-7f774112d814@f36g2000hsa.googlegroups.com>
Subject: Re: Triggering button clicking on datawindow header
Lines: 63
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: <48298960$1@forums-1-dub>
Date: 13 May 2008 05:28:16 -0700
X-Trace: forums-1-dub 1210681696 10.22.241.152 (13 May 2008 05:28:16 -0700)
X-Original-Trace: 13 May 2008 05:28:16 -0700, vip152.sybase.com
X-Authenticated-User: teamsybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:86827
Article PK: 416086

Can't you get a pointer to an object using simple dot notation?

--
Dean Jones
CEO
PowerObjects
http://www.powerobjects.com
(612) 339-3355 Ext. 112

TeamSybase
* * Think Sybase * *

"Yeyi" <yeyi.abulencia@gmail.com> wrote in message
news:df9081a8-7a3d-41e8-aa77-7f774112d814@f36g2000hsa.googlegroups.com...
> This might work:
>
> dwobject ldwco
>
> ldwco = dw_1.object.__get_attribute("cb_yourbutton", false)
> dw_1.event buttonclicked (ll_row, ll_rc, ldwco)
>
> On May 12, 11:28 pm, "Chris Pollach" <cpoll...@travel-net.com> wrote:
>> Hi G;
>>
>> The trick for sending and receiving the button events is that the
>> pointer "dwo" will not be valid from outside the DW Control. Sooo - Here
>> is
>> what I do ...
>>
>> Might I suggest the following:
>>
>> 1) Send DW Control a "ButtonClicked" event ...
>>
>> DWObject lo_dwo
>> Long ll_row = 1
>> Long ll_rc = 0
>> Message.StringParm = "cb_chris"
>> dc.event buttonclicked (ll_row, ll_rc, lo_dwo)
>>
>> 2) Process the BC Event ...
>>
>> String ls_name
>> IF IsValid (dwo) = TRUE THEN
>> ls_name = String (dwo.Name)
>> else
>> ls_name = Message.StringParm
>> END IF
>> MessageBox ("DWO", "You pressed CB - " + ls_name)
>>
>> HTH
>>
>> Regards ... Chris
>>
>> "Gwydion" <gwyd...@oletros.info> wrote in message
>>
>> news:48206e6d@forums-1-dub...
>>
>> > Can I trigger clicked event on a button in datawindow header from the
>> > outside of the datawindow?
>


"Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel Posted on 2008-05-12 16:41:42.0Z
From: "Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel@yahoo!.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <48206e6d@forums-1-dub> <48286215$1@forums-1-dub>
Subject: Re: Triggering button clicking on datawindow header
Lines: 47
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; Response
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <48287346@forums-1-dub>
Date: 12 May 2008 09:41:42 -0700
X-Trace: forums-1-dub 1210610502 10.22.241.152 (12 May 2008 09:41:42 -0700)
X-Original-Trace: 12 May 2008 09:41:42 -0700, vip152.sybase.com
X-Authenticated-User: TeamSybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:86811
Article PK: 416070

It would be better OO to refactor and create a single method which gets
called both from the button clicked and buttonclicked events.

"Chris Pollach" <cpollach@travel-net.com> wrote in message
news:48286215$1@forums-1-dub...
>
> Hi G;
>
> The trick for sending and receiving the button events is that the
> pointer "dwo" will not be valid from outside the DW Control. Sooo - Here
> is what I do ...
>
> Might I suggest the following:
>
> 1) Send DW Control a "ButtonClicked" event ...
>
> DWObject lo_dwo
> Long ll_row = 1
> Long ll_rc = 0
> Message.StringParm = "cb_chris"
> dc.event buttonclicked (ll_row, ll_rc, lo_dwo)
>
> 2) Process the BC Event ...
>
> String ls_name
> IF IsValid (dwo) = TRUE THEN
> ls_name = String (dwo.Name)
> else
> ls_name = Message.StringParm
> END IF
> MessageBox ("DWO", "You pressed CB - " + ls_name)
>
>
> HTH
>
> Regards ... Chris
>
>
>
> "Gwydion" <gwydion@oletros.info> wrote in message
> news:48206e6d@forums-1-dub...
>> Can I trigger clicked event on a button in datawindow header from the
>> outside of the datawindow?
>
>