Open oliver-tr opened 5 years ago
Any idea how to solve this issue?
Hi, we need more info. Show the js code that open a modal. What is the type of modal(on same page or another)? Do you trigger "Dialog close" event, where you listen to it?
@oliver-tr are you talking about a modal page or a modal region?
@vincentmorneau I'm talking about a modal page... Thanks for your help!
@minia68 @vincentmorneau : I used a classic report shown as dropdown. I also modified the template for this - so each link had it's own id. I was using this to trigger a dynamic action. The dynamic action used another plugin (but I also tried it with a link - generated with APEX_UTIL.PREPARE_URL(...)) to open a dialog.
WIthin this I used the id of the link as triggering element and the close dialog action used the same. Attached a few screenshots... And yes - the modal page is a seperate page NOT a region.
This is the dropdown menu with the id "myid1":
My attached dynamic action:
The Open Dialog plugin with the triggering element:
The modal with the defined actions:
The Close Dialog action with the triggering element:
The defined action behind "Dialog Closed"
And the actual output - there is no console output of the defined action:
@minia68 @vincentmorneau Just let me know, if you need further information on this topic... Or could you setup a sample application on some apex workspace?
You should listen to "Close dialog" event in parent page(Main page).
In two last screens "Dialog Closed" event on Test modal page (which is modal page?). On Main page from first screen threre is no "Dialog Closed" event
I changed this - it"s working in the sample page. Let me have a look at my real application.
@minia68 @vincentmorneau It's not working in my real life application - even though I re-checked everything again. Attached the pictures.
Could it be because I'm using a select inside the modal? ...And this select triggers also something...
And the console output:
Thanks in advance guys!!!
@minia68 @vincentmorneau
The sample triggers:
The real app does not trigger - I renamed everything, but no success:
I see that Material APEX still registers the dialogclose event from your debug log.
Can you try this:
$(document).on("dialogclose", function (event, object) {
console.log(event, object);
// do something
});
Hey folks,
I'm currently using the Material Theme with a dropdown menu, which opens a modal by defined dynamic action.
My modal has a close and a cancel button, but the Dialog Close event is not triggered. How can I achieve this. I want a region to be updated on "close" and I want no action to be triggered on "Cancel".
Thanks in advance, Oliver