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.

How to trigger a DW checkBox event from a script

5 posts in DataWindow Last posting was on 2008-03-20 11:41:58.0Z
Alex Posted on 2008-03-19 15:31:51.0Z
Sender: 209c.47e12d82.1804289383@sybase.com
From: Alex
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: How to trigger a DW checkBox event from a script
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <47e131e7.20f3.1681692777@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 19 Mar 2008 07:31:51 -0800
X-Trace: forums-1-dub 1205940711 10.22.241.41 (19 Mar 2008 07:31:51 -0800)
X-Original-Trace: 19 Mar 2008 07:31:51 -0800, 10.22.241.41
Lines: 11
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:86484
Article PK: 415745

Hi,

On a DW Object I have a checkBox Control column, and I need
to trigger from a window function its itemchanged event,
from whatever rows inside the DW, but I don't know how to do
it, so, I wonder, If anyone could give me a hand it would be
great.

TIA.

Alex.


Chris Pollach Posted on 2008-03-19 16:14:22.0Z
From: "Chris Pollach" <cpollach@travel-net.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <47e131e7.20f3.1681692777@sybase.com>
Subject: Re: How to trigger a DW checkBox event from a script
Lines: 52
Organization: STD Inc.
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: <47e13bde$1@forums-1-dub>
Date: 19 Mar 2008 08:14:22 -0800
X-Trace: forums-1-dub 1205943262 10.22.241.152 (19 Mar 2008 08:14:22 -0800)
X-Original-Trace: 19 Mar 2008 08:14:22 -0800, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:86486
Article PK: 415747

Alex;

From what you described thus far, here is what I would ...

1) add a DWO pointer to the DC
DWObject io_dw
2) In the ItemFocusChanged event ...
io_dw = dwo

------------------------------------------------

3) From the Window Event/Function ...

DWObject lo_dw
Long ll_row

// This should fire the DC's IFC event
DC.SetFocus ( )
DC.SetColumn ( "CheckBoxColumHere")

ll_row = DC.GetRow ( ) // Get Row
lo_dw = dc.io_dw // Get DWO Pointer

// Fire UE with valid parameters!
DC.Post Event ItemChanged (ll_row, lo_dw, "newdatahere")


HTH


--
Regards ... Chris
http://chrispollach.pbdjmagazine.com
,\|/,
(0 0)
-(_)-

<Alex> wrote in message news:47e131e7.20f3.1681692777@sybase.com...
> Hi,
>
> On a DW Object I have a checkBox Control column, and I need
> to trigger from a window function its itemchanged event,
> from whatever rows inside the DW, but I don't know how to do
> it, so, I wonder, If anyone could give me a hand it would be
> great.
>
> TIA.
>
> Alex.


Alex Posted on 2008-03-19 19:40:46.0Z
Sender: 24dc.47e15031.1804289383@sybase.com
From: Alex
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: How to trigger a DW checkBox event from a script
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <47e16c3e.2753.1681692777@sybase.com>
References: <47e13bde$1@forums-1-dub>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 19 Mar 2008 11:40:46 -0800
X-Trace: forums-1-dub 1205955646 10.22.241.41 (19 Mar 2008 11:40:46 -0800)
X-Original-Trace: 19 Mar 2008 11:40:46 -0800, 10.22.241.41
Lines: 62
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:86489
Article PK: 415751

Chris,

your code worked fine, just to tell you
thanks.

Alex.

> Alex;
>
> From what you described thus far, here is what I would
> ...
>
> 1) add a DWO pointer to the DC
> DWObject io_dw
> 2) In the ItemFocusChanged event ...
> io_dw = dwo
>
> ------------------------------------------------
>
> 3) From the Window Event/Function ...
>
> DWObject lo_dw
> Long ll_row
>
> // This should fire the DC's IFC event
> DC.SetFocus ( )
> DC.SetColumn ( "CheckBoxColumHere")
>
> ll_row = DC.GetRow ( ) // Get Row
> lo_dw = dc.io_dw // Get DWO Pointer
>
> // Fire UE with valid parameters!
> DC.Post Event ItemChanged (ll_row, lo_dw, "newdatahere")
>
>
> HTH
>
>
> --
> Regards ... Chris
> http://chrispollach.pbdjmagazine.com
> ,\|/,
> (0 0)
> -(_)-
>
>
> <Alex> wrote in message
> > news:47e131e7.20f3.1681692777@sybase.com... Hi,
> >
> > On a DW Object I have a checkBox Control column, and I
> > need to trigger from a window function its itemchanged
> > event, from whatever rows inside the DW, but I don't
> > know how to do it, so, I wonder, If anyone could give me
> > a hand it would be great.
> >
> > TIA.
> >
> > Alex.
>
>


Chris Pollach Posted on 2008-03-20 11:41:58.0Z
From: "Chris Pollach" <cpollach@travel-net.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <47e13bde$1@forums-1-dub> <47e16c3e.2753.1681692777@sybase.com>
Subject: Re: How to trigger a DW checkBox event from a script
Lines: 71
Organization: STD Inc.
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: <47e24d86$1@forums-1-dub>
Date: 20 Mar 2008 03:41:58 -0800
X-Trace: forums-1-dub 1206013318 10.22.241.152 (20 Mar 2008 03:41:58 -0800)
X-Original-Trace: 20 Mar 2008 03:41:58 -0800, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:86494
Article PK: 415756

Excellent ... good luck with the rest of your project! :-)

<Alex> wrote in message news:47e16c3e.2753.1681692777@sybase.com...
>
> Chris,
>
> your code worked fine, just to tell you
> thanks.
>
> Alex.
>
>
>> Alex;
>>
>> From what you described thus far, here is what I would
>> ...
>>
>> 1) add a DWO pointer to the DC
>> DWObject io_dw
>> 2) In the ItemFocusChanged event ...
>> io_dw = dwo
>>
>> ------------------------------------------------
>>
>> 3) From the Window Event/Function ...
>>
>> DWObject lo_dw
>> Long ll_row
>>
>> // This should fire the DC's IFC event
>> DC.SetFocus ( )
>> DC.SetColumn ( "CheckBoxColumHere")
>>
>> ll_row = DC.GetRow ( ) // Get Row
>> lo_dw = dc.io_dw // Get DWO Pointer
>>
>> // Fire UE with valid parameters!
>> DC.Post Event ItemChanged (ll_row, lo_dw, "newdatahere")
>>
>>
>> HTH
>>
>>
>> --
>> Regards ... Chris
>> http://chrispollach.pbdjmagazine.com
>> ,\|/,
>> (0 0)
>> -(_)-
>>
>>
>> <Alex> wrote in message
>> > news:47e131e7.20f3.1681692777@sybase.com... Hi,
>> >
>> > On a DW Object I have a checkBox Control column, and I
>> > need to trigger from a window function its itemchanged
>> > event, from whatever rows inside the DW, but I don't
>> > know how to do it, so, I wonder, If anyone could give me
>> > a hand it would be great.
>> >
>> > TIA.
>> >
>> > Alex.
>>
>>


"Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel Posted on 2008-03-19 18:56:27.0Z
From: "Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel@yahoo!.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <47e131e7.20f3.1681692777@sybase.com>
Subject: Re: How to trigger a DW checkBox event from a script
Lines: 17
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-RFC2646: Format=Flowed; Original
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: <47e161db$1@forums-1-dub>
Date: 19 Mar 2008 10:56:27 -0800
X-Trace: forums-1-dub 1205952987 10.22.241.152 (19 Mar 2008 10:56:27 -0800)
X-Original-Trace: 19 Mar 2008 10:56:27 -0800, vip152.sybase.com
X-Authenticated-User: TeamSybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:86488
Article PK: 415750

To be OO correct, look at it the other way around - fire the window function
from the Itemchanged event, or use it separately.

<Alex> wrote in message news:47e131e7.20f3.1681692777@sybase.com...
> Hi,
>
> On a DW Object I have a checkBox Control column, and I need
> to trigger from a window function its itemchanged event,
> from whatever rows inside the DW, but I don't know how to do
> it, so, I wonder, If anyone could give me a hand it would be
> great.
>
> TIA.
>
> Alex.