Step: 1
=====
Create IR Report And Entry Form Same Page.
Step: 2
=====
Select Entry Form.
Appearance :
Template : Inline Dialog
Step: 3
=====
Create Button. (New Entry)
Dynamic Action:
Name : New_Department_entry
Event : Click
True Action : Execute JavaScript Code
Code : javascript:openModal('Show_Dept');
Again True Action: Clear
Affected Elements: Items
Items: P9_DEPARTMENT_ID,P9_DEPARTMENT_NAME
Step: 4
=====
Select Entry Form.
Static ID : Show_Dept
================================
Step: 5
=====
IR Report Query :
select A.DEPARTMENT_ID, --A.DEPARTMENT_NAME,
'<a href="'||'javascript:pageItem1(' || APEX_ESCAPE.JS_LITERAL (A.DEPARTMENT_ID) || ')">
<span class="edit-action" style="font-size: 13px;font-weight: 500;color: blue;">'||A.DEPARTMENT_NAME||'</span></a>' AS DEPARTMENT_NAME,
NVL(B.QTY,0) QTY
FROM Table_name;
Step: 6
=====
Create Page Item : P9_DEPT_ID
Function and Global Variable Declaration :
function pageItem1(DEPT_ID){$s('P9_DEPT_ID', DEPT_ID)}
Step: 7
=====
Create Dynamic Action on P9_DEPT_ID
Execute JavaScript Code :
javascript:openModal('Show_Dept');
Select Entry Form.
Static ID : Show_Dept
Again Dynamic Action on P9_DEPT_ID (for Value Show)