I have an ajax call that submits a parameter called cBoxKey.
var get = new htmldb_Get(null,$v('pFlowId').value,'APPLICATION_PROCESS=TrackRows',0); get.add('cBoxKey','NOTREQUIRED'); get.get();
In the application process I'm accessing the 'cBoxKey' parameter as below;
However this does not seem to be working because when I replace
l_checkBoxKey := wwv_flow.g_cBoxKey;
l_checkBoxKey := 'NOTREQUIRED';
The application process is getting called and producing the expected results(through the ajax call).
I believe the issue is in how I access the 'cBoxKey' parameter in the application process.
Any ideas as to what might be wrong.
you have to use this syntax:
Message was edited by: DLittle Whatever variable you reference in the get.add command you reference in the call in the v function get.add('cBoxKey','NOTREQUIRED');
Message was edited by: DLittle One other piece of info. cBoxKey would either have to be defined as a page item or as an application item for it to work the way I have described
What I have check any APEX version wwv_flow package specification, there is no g_cBoxKey variable.
Where you have get idea there is ?
var get = new htmldb_Get(null,$v('pFlowId').value,'APPLICATION_PROCESS=TrackRows',0); get.addParam('x01','NOTREQUIRED'); get.get();
And then access it in On Demand process like
l_checkBoxKey := APEX_APPLICATION.g_x01;
Thanks for the prompt response DLittle.
I tried with application item and page item. I'm not getting it correct. I think it is how the page item is configured. I created the page item as hidden item.
When the page is rendered this is the generated HTML for the page item. Clearly the name is set to 'p_t01' not CBOXKEY. Is there a way to control this.
How can I tell APEX to bind the value of 'p_t01' back to CBOXKEY?
<input type="hidden" id="CBOXKEY" name="p_t01" value="" />
Not sure what I'm missing