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.

Button in dw grid

7 posts in DataWindow Last posting was on 2009-08-19 11:11:38.0Z
Enrique Montalvan Posted on 2009-08-17 20:58:07.0Z
From: "Enrique Montalvan" <emontalvan@gruponuevomundo.com.pe>
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Button in dw grid
Lines: 11037
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="----=_NextPart_000_01DE_01CA1F53.46534790"
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4a89c45f$2@forums-1-dub>
Date: 17 Aug 2009 13:58:07 -0700
X-Trace: forums-1-dub 1250542687 10.22.241.152 (17 Aug 2009 13:58:07 -0700)
X-Original-Trace: 17 Aug 2009 13:58:07 -0700, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:89777
Article PK: 418968

Friends :
 
I put a button (Proceso) in detail band of datawindow Grid Type, but the bottonclicked event do not response. I cant to do click in the botton
How I can to use botton with de this type of datawindow
 
Thanks
 
Enrique

dwgrid.bmp

Adam Simmonds Posted on 2009-08-18 01:41:34.0Z
From: Adam Simmonds <adam.simmonds@[remove]exemail.com.au>
User-Agent: Thunderbird 2.0.0.22 (Windows/20090605)
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: Button in dw grid
References: <4a89c45f$2@forums-1-dub>
In-Reply-To: <4a89c45f$2@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: <4a8a06ce$1@forums-1-dub>
Date: 17 Aug 2009 18:41:34 -0700
X-Trace: forums-1-dub 1250559694 10.22.241.152 (17 Aug 2009 18:41:34 -0700)
X-Original-Trace: 17 Aug 2009 18:41:34 -0700, vip152.sybase.com
Lines: 12
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:89781
Article PK: 418969


Enrique Montalvan wrote:
> Friends :
>
> I put a button (Proceso) in detail band of datawindow Grid Type, but the bottonclicked event do not response. I cant to do click in the botton
> How I can to use botton with de this type of datawindow
>

IIRC you have to setup a user event on the dw control to listen for
pbm_dwnbuttonclicked and it will tell you which control and row was
clicked. If the button is outside the detail band you would probably not
worry about the row and just check for dwo.name


Chris Pollach Posted on 2009-08-18 12:42:20.0Z
From: "Chris Pollach" <cpollach@travel-net.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <4a89c45f$2@forums-1-dub> <4a8a06ce$1@forums-1-dub>
Subject: Re: Button in dw grid
Lines: 23
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-RFC2646: Format=Flowed; Response
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: <4a8aa1ac$3@forums-1-dub>
Date: 18 Aug 2009 05:42:20 -0700
X-Trace: forums-1-dub 1250599340 10.22.241.152 (18 Aug 2009 05:42:20 -0700)
X-Original-Trace: 18 Aug 2009 05:42:20 -0700, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:89784
Article PK: 418971

???? User Event - why?
The DW Control already comes with the ButtonClicked event!

"Adam Simmonds" <adam.simmonds@[remove]exemail.com.au> wrote in message
news:4a8a06ce$1@forums-1-dub...
> Enrique Montalvan wrote:
>> Friends :
>>
>> I put a button (Proceso) in detail band of datawindow Grid Type, but the
>> bottonclicked event do not response. I cant to do click in the botton
>> How I can to use botton with de this type of datawindow
>>
>
> IIRC you have to setup a user event on the dw control to listen for
> pbm_dwnbuttonclicked and it will tell you which control and row was
> clicked. If the button is outside the detail band you would probably not
> worry about the row and just check for dwo.name
>


Enrique Montalvan Posted on 2009-08-18 16:03:36.0Z
From: "Enrique Montalvan" <emontalvan@gruponuevomundo.com.pe>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <4a89c45f$2@forums-1-dub> <4a8a06ce$1@forums-1-dub> <4a8aa1ac$3@forums-1-dub>
Subject: Re: Button in dw grid
Lines: 41
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4a8ad0d8$2@forums-1-dub>
Date: 18 Aug 2009 09:03:36 -0700
X-Trace: forums-1-dub 1250611416 10.22.241.152 (18 Aug 2009 09:03:36 -0700)
X-Original-Trace: 18 Aug 2009 09:03:36 -0700, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:89785
Article PK: 418973

Hi Chris :

While my button is on a field of DataWindow; when I do click, the
ButtonClicked! event does not fire (the script that is inside does not
execute - in the debug dont enter the script ).

To work, I had to hide the field ( move down of band ), leaving only the
button.
There is another way to do this, without hide the field ?

Thanks anyway
Enrique

"Chris Pollach" <cpollach@travel-net.com> escribió en el mensaje
news:4a8aa1ac$3@forums-1-dub...

>
> ???? User Event - why?
> The DW Control already comes with the ButtonClicked event!
>
>
>
> "Adam Simmonds" <adam.simmonds@[remove]exemail.com.au> wrote in message
> news:4a8a06ce$1@forums-1-dub...
> > Enrique Montalvan wrote:
> >> Friends :
> >>
> >> I put a button (Proceso) in detail band of datawindow Grid Type, but
the
> >> bottonclicked event do not response. I cant to do click in the botton
> >> How I can to use botton with de this type of datawindow
> >>
> >
> > IIRC you have to setup a user event on the dw control to listen for
> > pbm_dwnbuttonclicked and it will tell you which control and row was
> > clicked. If the button is outside the detail band you would probably not
> > worry about the row and just check for dwo.name
> >
>
>


Chris Pollach Posted on 2009-08-18 16:52:51.0Z
From: "Chris Pollach" <cpollach@travel-net.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <4a89c45f$2@forums-1-dub> <4a8a06ce$1@forums-1-dub> <4a8aa1ac$3@forums-1-dub> <4a8ad0d8$2@forums-1-dub>
Subject: Re: Button in dw grid
Lines: 58
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: <4a8adc63$2@forums-1-dub>
Date: 18 Aug 2009 09:52:51 -0700
X-Trace: forums-1-dub 1250614371 10.22.241.152 (18 Aug 2009 09:52:51 -0700)
X-Original-Trace: 18 Aug 2009 09:52:51 -0700, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:89786
Article PK: 418975

Ahhh .. I see - you need to place the button in front of the column. Looking
at the example image closer, it looks like the column is in front of the CB.
However, you need to hide the CB then to see the data in the column
afterwards.

I think what we need to though is ask you why or how you envisage this
to work? The GUI design looks cumbersome to me.

"Enrique Montalvan" <emontalvan@gruponuevomundo.com.pe> wrote in message
news:4a8ad0d8$2@forums-1-dub...
> Hi Chris :
>
> While my button is on a field of DataWindow; when I do click, the
> ButtonClicked! event does not fire (the script that is inside does not
> execute - in the debug dont enter the script ).
>
> To work, I had to hide the field ( move down of band ), leaving only the
> button.
> There is another way to do this, without hide the field ?
>
> Thanks anyway
> Enrique
>
> "Chris Pollach" <cpollach@travel-net.com> escribió en el mensaje
> news:4a8aa1ac$3@forums-1-dub...
>>
>> ???? User Event - why?
>> The DW Control already comes with the ButtonClicked event!
>>
>>
>>
>> "Adam Simmonds" <adam.simmonds@[remove]exemail.com.au> wrote in message
>> news:4a8a06ce$1@forums-1-dub...
>> > Enrique Montalvan wrote:
>> >> Friends :
>> >>
>> >> I put a button (Proceso) in detail band of datawindow Grid Type, but
> the
>> >> bottonclicked event do not response. I cant to do click in the botton
>> >> How I can to use botton with de this type of datawindow
>> >>
>> >
>> > IIRC you have to setup a user event on the dw control to listen for
>> > pbm_dwnbuttonclicked and it will tell you which control and row was
>> > clicked. If the button is outside the detail band you would probably
>> > not
>> > worry about the row and just check for dwo.name
>> >
>>
>>
>
>


Adam Simmonds Posted on 2009-08-19 01:20:09.0Z
From: Adam Simmonds <adam.simmonds@[remove]exemail.com.au>
User-Agent: Thunderbird 2.0.0.22 (Windows/20090605)
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: Button in dw grid
References: <4a89c45f$2@forums-1-dub> <4a8a06ce$1@forums-1-dub> <4a8aa1ac$3@forums-1-dub>
In-Reply-To: <4a8aa1ac$3@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: <4a8b5349@forums-1-dub>
Date: 18 Aug 2009 18:20:09 -0700
X-Trace: forums-1-dub 1250644809 10.22.241.152 (18 Aug 2009 18:20:09 -0700)
X-Original-Trace: 18 Aug 2009 18:20:09 -0700, vip152.sybase.com
Lines: 29
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:89792
Article PK: 418980


Chris Pollach wrote:
> ???? User Event - why?
> The DW Control already comes with the ButtonClicked event!

totally correct, I think I was reverting back to when these events were
not exposed by default and you had to add them. To be honest I never
liked buttons on the DW too much :)

a.


>
>
> "Adam Simmonds" <adam.simmonds@[remove]exemail.com.au> wrote in message
> news:4a8a06ce$1@forums-1-dub...
>> Enrique Montalvan wrote:
>>> Friends :
>>>
>>> I put a button (Proceso) in detail band of datawindow Grid Type, but the
>>> bottonclicked event do not response. I cant to do click in the botton
>>> How I can to use botton with de this type of datawindow
>>>
>> IIRC you have to setup a user event on the dw control to listen for
>> pbm_dwnbuttonclicked and it will tell you which control and row was
>> clicked. If the button is outside the detail band you would probably not
>> worry about the row and just check for dwo.name
>>
>
>


Chris Pollach Posted on 2009-08-19 11:11:38.0Z
From: "Chris Pollach" <cpollach@travel-net.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <4a89c45f$2@forums-1-dub> <4a8a06ce$1@forums-1-dub> <4a8aa1ac$3@forums-1-dub> <4a8b5349@forums-1-dub>
Subject: Re: Button in dw grid
Lines: 39
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-RFC2646: Format=Flowed; Response
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: <4a8bddea$1@forums-1-dub>
Date: 19 Aug 2009 04:11:38 -0700
X-Trace: forums-1-dub 1250680298 10.22.241.152 (19 Aug 2009 04:11:38 -0700)
X-Original-Trace: 19 Aug 2009 04:11:38 -0700, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:89795
Article PK: 418983

Wow ... I have DW based CB's all over my applications (taste great ... less
filling <bg>)!

:-)

"Adam Simmonds" <adam.simmonds@[remove]exemail.com.au> wrote in message
news:4a8b5349@forums-1-dub...
> Chris Pollach wrote:
>> ???? User Event - why?
>> The DW Control already comes with the ButtonClicked event!
>
> totally correct, I think I was reverting back to when these events were
> not exposed by default and you had to add them. To be honest I never liked
> buttons on the DW too much :)
>
> a.
>
>
>>
>>
>> "Adam Simmonds" <adam.simmonds@[remove]exemail.com.au> wrote in message
>> news:4a8a06ce$1@forums-1-dub...
>>> Enrique Montalvan wrote:
>>>> Friends :
>>>>
>>>> I put a button (Proceso) in detail band of datawindow Grid Type, but
>>>> the bottonclicked event do not response. I cant to do click in the
>>>> botton
>>>> How I can to use botton with de this type of datawindow
>>>>
>>> IIRC you have to setup a user event on the dw control to listen for
>>> pbm_dwnbuttonclicked and it will tell you which control and row was
>>> clicked. If the button is outside the detail band you would probably not
>>> worry about the row and just check for dwo.name
>>>
>>