Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

FORM ENHANCEMENT

Posted on 1997-10-05
4
Medium Priority
?
883 Views
Last Modified: 2008-03-03
Hi,
I was trying to build a form application with several text boxes, and navigation buttons.  However, I would like to enhance some security integration as follows:

When I willingly or unwillingly key down a text box (when I hit the keyboard, exclude mouse click to the text box), I would like to disable all the navigation buttons (next, previous, first, and last), then CANCEL and SAVE buttons will be active that can force users click one of them...So when I click CANCEL will "clear_record" and SAVE will commit_record".

Can anyone help?  In what trigger so I enforce?  Since I have tried several KEY bilt-in functions, that is no one works for my needs.  Any codes provided will be greatly appreciated!  Thanks in advance!
0
Comment
Question by:htay
  • 3
4 Comments
 

Author Comment

by:htay
ID: 1080644
Edited text of question
0
 

Author Comment

by:htay
ID: 1080645
Edited text of question
0
 

Author Comment

by:htay
ID: 1080646
Edited text of question
0
 
LVL 1

Accepted Solution

by:
yesnaud earned 400 total points
ID: 1080647
Well not sure if I understand what you want but basically you want the user to save after each record he enters....

so what can u do ?

Create key-down, up, nextrec, prevrec triggers at the block level and check the record status with system.record_status, if = 'INSERT' or 'CHANGED' Then force the user to press cancel or save with either showing an alert message box with two buttons cancel and save or simply display a acknowledgement message to the user asking him to save the record.....

i.e. Key-down trigger:

declare
  button Number;

Begin
  if :system.record_status in ('INSERT','CHANGED') then
    button ;= show_alert ('CANCEL_SAVE');
    if button = 88 Then -- I think 88 is for the button1 on the alert property...
      commit;
      down;
    Else
      clear_record (NO_VALIDATE);
      down;
    End If;
  End If;
End;

Ok If you have any problem yesnaud@fdgroup.co.uk

cya
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Background In several of the companies I have worked for, I noticed that corporate reporting is off loaded from the production database and done mainly on a clone database which needs to be kept up to date daily by various means, be it a logical…
Shell script to create broker configuration file using current broker Configuration, solely for purpose of backup on Linux. Script may need to be modified depending on OS-installation. Please deploy and verify the script in a test environment.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question