Home » Developer & Programmer » Forms » text item in Oracle forms (ORACLE FORMS 10G)
text item in Oracle forms [message #472572] Sun, 22 August 2010 13:04 Go to next message
gallonegro
Messages: 3
Registered: August 2010
Location: MONTERREY
Junior Member
How to get the value of text item in Oracle forms to pass as a parameter in stored procedure.


Hopefully that can help me or suggest a page where consultation


sorry for my English.

Greetings and thanks.
Re: text item in Oracle forms [message #472579 is a reply to message #472572] Sun, 22 August 2010 14:08 Go to previous messageGo to next message
cookiemonster
Messages: 13938
Registered: September 2008
Location: Rainy Manchester
Senior Member
You just reference it directly same as a variable.
Re: text item in Oracle forms [message #472588 is a reply to message #472579] Sun, 22 August 2010 15:37 Go to previous messageGo to next message
gallonegro
Messages: 3
Registered: August 2010
Location: MONTERREY
Junior Member
Already got it working

This code works insert the value in the database

put this on button within ORACLE FORMS
trigger
WHEN-MOUSE-CLICK
/forum/fa/8208/0/

my package and I have this procedure

/forum/fa/8206/0/


there is another way to do so would be correct or.

Thank you very much for your help

sorry for my English.

Greetings and thanks.
Re: text item in Oracle forms [message #472591 is a reply to message #472588] Sun, 22 August 2010 15:45 Go to previous messageGo to next message
cookiemonster
Messages: 13938
Registered: September 2008
Location: Rainy Manchester
Senior Member
1) Have a read of the orafaq forum guide - that'll tell you the best way to post code (using [code] tags).
2) You don't need the variable, you can pass the text-item directly:
reportes_package.insert_tabla_temporal_plazavo(:temp_tabla_plazavo.text_item6);

3) Always type variables and parameters to the appropriate table where possible. So:
(tplaza IN plazavo.plaza%TYPE)

4) If you are going to loop over a cursor use a FOR LOOP.
5) That procedure could be rewritten as a single insert/select statement.
Re: text item in Oracle forms [message #472592 is a reply to message #472591] Sun, 22 August 2010 21:32 Go to previous message
gallonegro
Messages: 3
Registered: August 2010
Location: MONTERREY
Junior Member
Thank you very much for your help and advice.


Greetings and thanks.
Previous Topic: Error while compiling the form
Next Topic: Cursor Problem
Goto Forum:
  


Current Time: Thu Sep 19 17:15:03 CDT 2024