Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

AJAX set multiple items

442122Mar 13 2006 — edited Jun 15 2007
L.S.,

I have a tabular form.

After entering a value in P1_ITEM1, I want the values of P1_TEM2 and P1_ITEM3 set to values based on the output parameters from database procedure P_DB_PROCEDURE( p_input /* based on value P1_ITEM1 */ , p_ouput2 /* to be used to set P1_ITEM2 */, p_output3 /* to be used to set P1_ITEM3 */

I created an on demand application process which calls the db-procedure and returns the output:
htp.prn(p_output2)
htp.prn(p_output3)

I created a javascript to receive the values:
var get = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=P_DB_PROCEDURE',0);
....
html_GetElement('P1_ITEM2').value = gReturn
html_GetElement('P1_ITEM3').value = gReturn

But the values are 'concatenated'. So I get the same value for P1_ITEM2 and P1_ITEM3: p_output2p_ouput3

Is it possible to set values for multi items by using AJAX?

Thanks,
Jos
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 13 2007
Added on Mar 13 2006
13 comments
2,014 views