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.

KeyDown event (DataWindows)

2 posts in DataWindow Last posting was on 2009-01-23 13:11:13.0Z
DLL Posted on 2009-01-23 07:18:50.0Z
Sender: 5fd6.4975b5ad.1804289383@sybase.com
From: DLL
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: KeyDown event (DataWindows)
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <49796f5a.3883.1681692777@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 22 Jan 2009 23:18:50 -0800
X-Trace: forums-1-dub 1232695130 10.22.241.41 (22 Jan 2009 23:18:50 -0800)
X-Original-Trace: 22 Jan 2009 23:18:50 -0800, 10.22.241.41
Lines: 9
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:88664
Article PK: 417918

Hi!

I have a script for the KeyDown event (DataWindows).
If the user presses the Delete button, I'll do some
processing
and the last part of my processing is to stop the actual
delete from happening, would it be possible?

Would greatly appreciate any assistance, thanks in advance.


Chris Pollach Posted on 2009-01-23 13:11:13.0Z
From: "Chris Pollach" <cpollach@travel-net.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <49796f5a.3883.1681692777@sybase.com>
Subject: Re: KeyDown event (DataWindows)
Lines: 29
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.3350
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4979c1f1$1@forums-1-dub>
Date: 23 Jan 2009 05:11:13 -0800
X-Trace: forums-1-dub 1232716273 10.22.241.152 (23 Jan 2009 05:11:13 -0800)
X-Original-Trace: 23 Jan 2009 05:11:13 -0800, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:88667
Article PK: 417921

Once you are in control of the Delete sequence you can ...
1) Restore the data to the Primary buffer from the Original buffer in the
DWO.
2) Update the ItemStatus to set the Row/Column update flag off.
3) Cancel the Key message in the OS queue (see Message.Processed = TRUE).

Using any combination of these should allow you to stop/cancel/restore the
data deletion of a specific column.

HTH
--
Regards ... Chris
ISUG - NA RUG Director
http://chrispollach.pbdjmagazine.com

<DLL> wrote in message news:49796f5a.3883.1681692777@sybase.com...
> Hi!
>
> I have a script for the KeyDown event (DataWindows).
> If the user presses the Delete button, I'll do some
> processing
> and the last part of my processing is to stop the actual
> delete from happening, would it be possible?
>
> Would greatly appreciate any assistance, thanks in advance.