Solved

FORM ENHANCEMENT

Posted on 1997-10-05
4
867 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 100 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

I remember the day when someone asked me to create a user for an application developement. The user should be able to create views and materialized views and, so, I used the following syntax: (CODE) This way, I guessed, I would ensure that use…
This post first appeared at Oracleinaction  (http://oracleinaction.com/undo-and-redo-in-oracle/)by Anju Garg (Myself). I  will demonstrate that undo for DML’s is stored both in undo tablespace and online redo logs. Then, we will analyze the reaso…
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
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.

756 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