Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Set a password on a button in Oracle Forms

Status
Not open for further replies.

LeeAnnF

Programmer
Aug 13, 2004
5
US
I need to set a password on a radio button on a form built with Oracle Forms 6i. When the user selects the radio button a screen should pop-up requiring a password for validation before sending the user to the desired form.
 
What is the actual problem here LeeAnnF? Are you asking how to do a pop-up screen or how to validate a password in forms?

A pop-up dialogue can be made using modal windows. The current user password can be obtained with GET_APPLICATION_PROPERTY.
 
Thank you so much for replying to my problem. I'm sorry I wasn't more descriptive of my needs. The user wants to limit who can access the form accessed by choosing a particular radio button. She requested that when anyone selects the radio button a screen pop-up that requires a password that must be filled in correctly before the requested form will display. I am working with Oracle Forms 6i. Hope this makes my needs clearer.

LeeAnn
 
Use WHEN-RADIO-CHANGED to pop up a modal window. In the window, display a text item for the password entry. A button with WHEN-BUTTON-PRESSED will validate the user entered password against one held in a table. If the passwords match, use CALL_FORM to start the new form.
 
I already have a WHEN-RADIO-CHANGED trigger. This is the code: ELSIF :rg_menu = 'CRB' then PR_WBP_CALLFORM('CALL','csl18116');

I created a popup menu in the popup menu node. Is that the same as a popup window? You suggest I display a text item for the password entry. What would the code be to accomplish that task? (Can you tell I am new to this?) If I can find the correct spot to create the popup window, I know how to create the button and the WHEN-BUTTON-PRESSED trigger. Any more help with this that you can give me will be greatly appreciated!
Thanx,
LeeAnn
 
No a popup menu is different to a popup window.

Create a new window in the object navigator. Set its window style property to Dialogue and Modal to yes.

Create a new canvas for the window. On the canvas place a text item and your button. You should create the item and button in a new block.

In your WHEN-RADIO-CHANGED place code similar to

[tt]Go_Item('<your_new_block>.<your_new_item>');[/tt]

This will cause your window to pop up. In the WHEN-BUTTON-PRESSED trigger, place code that validates the user entered password against one in the database, and if successful, make your PR_WBP_CALLFORM call.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top