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!

how to trigger the automated row fetch process and open modal window by javascript api?

最爱用中文Dec 4 2013 — edited Mar 21 2014

Hi,

I would like to click the one row of column of IR report, to open the modal window of current page.  <----------------it is ok. I can use "javascript:openModal('windowID')"  to do it.

There is one form in this modal window, Meanwhile, I would like to pass column data to this form.    <--------------------- it is ok also. I can use " $s('P7_ID','column_value');" to do it.

But I don't know how to trigger the "automated row fetch" process of this form to retrieve other field's value in this form.   

I tried to use following 2 ways. But failed.

First method:

add one ajax process of "automated row fetch" in "page processing" block, named "get_fetch_data"

when click IR column , call "openModal", and call  "apex.server.process ( "get_fetch_data", {}, { success: function( pData ) { }  } );"  , I tried to call above ajax process to refresh form. It is failed.

Second method:

add one process of  "automated row fetch" in "page rendering" block, named "get_fetch_data"

when click IR column, call javascript api "apex.submit" to submit current page , then call "openModal".

such as :  javascript:apex.submit({request:'MODIFY',set:{'P7_ID': #ID#}}); openModal('trade');

But it is failed also. the modal page is showed firstly. then page refresh. but modal window will not open again.

I am not sure if my thinking is right. Could you please provide any suggestion?

Thanks in advance,

Ping

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 18 2014
Added on Dec 4 2013
3 comments
873 views