Home » Developer & Programmer » Forms » Read user input value when a button is pressed (Forms 10g)
Read user input value when a button is pressed [message #310692] Wed, 02 April 2008 01:47 Go to next message
bluerratiq
Messages: 22
Registered: March 2008
Location: Bucharest
Junior Member
Hi,
I want to read the user input value when a button is pressed in Forms ... and assign that value to the parameter of a procedure.
In Toad I used to write procedure('&name') and a popup window appeared to assign a value to 'name' field. But in Forms '&name' it is considered as a string.
How can I do that in Forms? What code should I put behind a WHEN-BUTTON-PRESSED trigger ?

Thank you.
Re: Read user input value when a button is pressed [message #310697 is a reply to message #310692] Wed, 02 April 2008 02:00 Go to previous messageGo to next message
ganesh_jadhav0509
Messages: 74
Registered: May 2007
Location: Chester
Member

i did not understand your question but i think u want this

use : instead of &

Re: Read user input value when a button is pressed [message #310703 is a reply to message #310697] Wed, 02 April 2008 02:27 Go to previous messageGo to next message
bluerratiq
Messages: 22
Registered: March 2008
Location: Bucharest
Junior Member
hello
thanks for the answer ..
so, I've created a simple procedure which inserts a new and distinct record in a table
i want to call that procedure when a button is pressed (in forms) but the user will have to insert the desired record (meaning that I have to read the user input data and store that data in the procedure's parameter)

so ... is there anyway when that certain button is pressed, a window will popup and ask the user to input a value?

hope that I was clear this time Smile
Re: Read user input value when a button is pressed [message #310746 is a reply to message #310703] Wed, 02 April 2008 04:50 Go to previous messageGo to next message
dillango
Messages: 145
Registered: January 2008
Senior Member
You can write a code in When-button-pressed trigger in that buttion and call the stacked canvass
show_view('CANVASNAME');

get the details from the user and call the procedure with passing those values.

Ilango
Re: Read user input value when a button is pressed [message #310835 is a reply to message #310692] Wed, 02 April 2008 09:58 Go to previous message
bluerratiq
Messages: 22
Registered: March 2008
Location: Bucharest
Junior Member
thank you
I've managed to solve my issue afterall Smile
cheers
Previous Topic: update
Next Topic: cursor
Goto Forum:
  


Current Time: Tue Mar 11 12:07:34 CDT 2025