This plug-in uses only on Interactive Grid (APEX 5.1.1 and later).
Thanks to the blog post from Dan McGhan about Modal page.
Demo application: Modal LOV IG
Demo on YouTube: How to use Plug-in (Modal LOV IG)
Download application: ModalLOV IG
The Modal LOV IG plug-in was combined with modal page native
so if you use this plug-in must be to do according below instruction:
- Install the Modal LOV IG plug-in in your application
- Create two Application Items
- Create an Interactive Report on modal page mode
- Create a page includes one or more the interactive grid
Support:
Multiple Interactive Grid in each page & Multiple Modal
LOV IG plug-in in each Interactive Grid.
Properties:
- Modal Url Type
- Modal Page Link
- Url Checksum
- Set Item Names
- Set Item Values *
- Request
- Modal Html Expression Column(s)
- Column Mapping(s)
- Cascading LOV Parent Column(s) *
- Enterable
- Validation (not implemented yet)
- Modal Url Type
- Modal Page Link
- Url Checksum
- Set Item Names
- Set Item Values *
- Request
- Modal Html Expression Column(s)
- Column Mapping(s)
- Cascading LOV Parent Column(s) *
- Enterable
- Validation (not implemented yet)
Let's go to use the MODAL LOV IG!
Step 1: Install the Modal LOV IG plug-in in your application (1 min)
a-Download plugin
b-Go to your application \
Shared
Components \ Plug-ins then import this file "item_type_plugin_ir_saeedhassanpour_modallovig.sql"
Step 2: Create two Application Items (1 min)
a-Create an Application Items . Exactly, name is same (GL_HTML_EXP_DIALOG)
b-Create an Application Items . Exactly, name is same (GL_ROW_SCRIPT_DIALOG)
Step 3: Create an Interactive Report on modal page mode (5 min)
a-Create an Interactive Report on modal page mode
b-Set code at inline property of page
Page Inline:
.t-fht-tbody tr{ cursor: pointer; }
c-Create the Page Item for every column that will return to main
page. for example you want to return three columns so you must create three page items in this page.
d-Enter the code under [COLUMN] of interactive report which(only for one column)
HTML Expression:
#ENAME# //column name &GL_HTML_EXP_DIALOG.
e-Enter “Static ID” of that column in IR
Static ID:
ename-id
f- Create a Dynamic Action Row Clicked with two true actions and setting like this images
Dynamic Action:
var columnStaticId = 'ename-id'; //Static ID of that column &GL_ROW_SCRIPT_DIALOG.
Step 4: Create a page includes one or more the interactive grid(5 min)
a-Create an Editable Interactive Grid page
Enter “Static ID” for Interactive Grid region
b-Add Modal LOV IG type to every item that likes to use it.
Set Properties of items
Tip: this plugin only return a value of item so if you want
to have (Display, Return) don’t worry you can implement easily. In this case
you should add a non-database item(e.g. MODAL_DISPALY as DISPLAY and database item as RETURN) to IG then by action button
to hide the database item on interactive grid.
e.g. select EMPNO, ENAME, .... COMM, DEPTNO, (select …. from emp e where e.empno = t.empno) as MODAL_DISPALY from EMP t
c-Create a Dynamic Action on Dialog Closed
Dynamic Action: Dialog Cloesd
//set values on Interactive Grid openMLovIG.setIgValue(this.data, true);
How to debug the Modal LOV IG plug-in?
look at the below images. firstly click Debug on the Developer toolbar Option and next go to console then to filter by "modal" word.
Finish this task and enjoy it.
Nice component & good documentation,
ReplyDeletemany thanks saeed
Regards
Siavash AKRAMI
Hi all,
ReplyDeleteQ: How to return value into hidden column on Interactive Grid?
A: You must change the hidden column to “Text Field” and next as I mentioned in this blog when the IG page runs to push the action button>Columns and unchecked the display column in order to hide the database column on interactive grid.
Hi,
ReplyDeleteI am getting the below error when clicking on the LOV icon in my IG - any ideas?
modallovig.min.js:7 Uncaught TypeError: Cannot read property 'widget' of null
at Object.setRegionIG (modallovig.min.js:7)
at HTMLButtonElement. (modallovig.min.js:7)
at HTMLButtonElement.dispatch (jquery-2.2.3.min.js?v=5.1.2.00.09:3)
at HTMLButtonElement.r.handle (jquery-2.2.3.min.js?v=5.1.2.00.09:3)
Thanks!
me too
DeleteMe too in only one of my applications, in other application it works
Deleteme pasa igual. pudiste solucionarlo amigo?
DeleteHy guys, i fixed this bug changing the template of IG to "STANDARD" .
DeleteThank you Leandro Lister
Delete@daniel: I figured out that the cause of the erro is the usage of even.target to get the region in the javascript.
ReplyDeleteI used var ig_region = apex.region.findClosest(event.target).element.selector.substring(1); and was able to make it work fine.
Hope the same would work at your side too.
Best Regards
-Nikhil
Hi Nikhil,
DeleteMay I know where do I have to use above code?
Best Regards,
Ruby
Si amigo porfavor ayúdame. tengo el mismo problema pero no se donde poner el codigo que me estas diciendo
DeleteGracias por ese gran indicio amigo. no me sirvió tu código pero encontré cual era el error
DeleteActually picture is the presentation of some one’s feelings; it provides the lesson to the viewers.
ReplyDelete===========================================================
Best website designing company in Kanpur
This comment has been removed by the author.
ReplyDeleteThis comment has been removed by the author.
Deletethe example with this plugin not working
ReplyDeleteIt works, but you need to change the template of Ig to STANDARD , because the template "interactive report" doesn't return the value to IG
Deletedear Saeed Hassanpour
ReplyDeletegood effort
but this plugin not work IG lov BUT work with IR lov any idea
Thanks
i mean when you call the lov this lov is modal dialog and the regions type is IR not IG
ReplyDeletecan you make it work with IG
Hello Guys, I'm getting the below error when a click to open modal:
ReplyDeleteUncaught TypeError: Cannot read property 'widget' of null
at Object.setRegionIG (modallovig.min.js:7)
at HTMLButtonElement. (modallovig.min.js:7)
at HTMLButtonElement.dispatch (jquery-2.2.3.js?v=5.1.3.00.05:4737)
at HTMLButtonElement.elemData.handle (jquery-2.2.3.js?v=5.1.3.00.05:4549)
Can you help me please?
me pasa lo mismo amigo, podrias ayudarme
DeleteThis comment has been removed by the author.
DeleteMan, I got to fix this bug, changing the TEMPLATE of IG to "STANDARD"
DeleteGuys, someone got to return a display value and save a return value ? I didn't Get do this and I didn't undestand the explanation about how do it.
ReplyDeleteCan someone help me please?
I didn't undestand how to do this:
Delete"Tip: this plugin only return a value of item so if you want to have (Display, Return) don’t worry you can implement easily. In this case you should add a non-database item(e.g. MODAL_DISPALY as DISPLAY and database item as RETURN) to IG then by action button to hide the database item on interactive grid."
when I select the record in IR(on Model Dialog page) for first time, IR closes without returning any value to IG page. But when I try again it works without any issues. This behavior is consistent. Any help is highly appreciated.
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteMr. Medhat could you plz show me how you change the modal page to be tree item ?
DeleteI want to use it in GL Chart of accounts
Thanks in advance
Hi,
ReplyDeleteThanks for your great efforts..
Is there any update for APEX 18.2? after I upgrade to 18.2 the select field shranked.
Thanks in advance..
Hi Ahmed,
Deleteit's working from APEX 5.1+, 18+.
What's the wrong? please , explain you issue.
Thanks for this plugin, it helped me a lot using my custom LOV page on an IG column.
ReplyDeleteIf I may make a suggestion: change the "Modal Page Link" from type "Page Number" to "Link to Target Page/URL". Then you can use the normal link builder, so you don't need "Set Item Names" and "Set Item Values" either. I tried it with an extra attribute (13), and this attribute then simply looks like a URL already, e.g.
f?p=250:15:&SESSION.::&DEBUG.:RP,15:P15_LOV:LOVREL
Great effort , Could we change the modal page to be tree and return the the selected node to the interactive grid ?
ReplyDeleteHi,
ReplyDeleteThanks for your plugin.
When I am using Modal LOV IG plugin, filter option for the column is not shown. So I am unable to filter the column. Can you please suggest .