Passing value to g_f01 for submit process [message #646595] |
Tue, 05 January 2016 05:00 |
|
david_ais
Messages: 3 Registered: January 2016
|
Junior Member |
|
|
Hi,
I have a hidden item:
APEX_ITEM.HIDDEN(1, wo.operation_seq_num) operation_seq_num
in a standard report.
Each line has a button icon that submits the page using apex.submit.
I am trying to pass the value of the hidden item to the process which has an insert statement in it.
To test this I have created a dummy display item (:P20_X) and replaced the page process with:
:P20_X := APEX_APPLICATION.G_F01(1);
Where 1 = the row number which works and it sets the page item with correct value, the issue is that I'm hard coding the row number.
So...
...what do I replace the row number (1) with to ensure the correct value is passed to the page process, dependent on the line button the user selects?
Thanks.
|
|
|
|
|
|
Re: Passing value to g_f01 for submit process [message #646883 is a reply to message #646744] |
Wed, 13 January 2016 03:33 |
|
david_ais
Messages: 3 Registered: January 2016
|
Junior Member |
|
|
ok found how to solve this, forget APEX_APPLICATION.G_F01 for this and:
1. create a hidden item (P20_X)
2. within the html that generates the button (that holds the apex.submit) set the hidden item there with the in parameter of the function that generates the button, using:
3. apex.submit({request:'TEST', set:{'P20_X':'' || p_paramter || ''}});
[Updated on: Wed, 13 January 2016 03:35] Report message to a moderator
|
|
|
|