Discussions
Categories
- 197.1K All Categories
- 2.5K Data
- 546 Big Data Appliance
- 1.9K Data Science
- 450.7K Databases
- 221.9K General Database Discussions
- 3.8K Java and JavaScript in the Database
- 31 Multilingual Engine
- 552 MySQL Community Space
- 479 NoSQL Database
- 7.9K Oracle Database Express Edition (XE)
- 3.1K ORDS, SODA & JSON in the Database
- 555 SQLcl
- 4K SQL Developer Data Modeler
- 187.2K SQL & PL/SQL
- 21.4K SQL Developer
- 296.3K Development
- 17 Developer Projects
- 139 Programming Languages
- 293K Development Tools
- 110 DevOps
- 3.1K QA/Testing
- 646.1K Java
- 28 Java Learning Subscription
- 37K Database Connectivity
- 158 Java Community Process
- 105 Java 25
- 22.1K Java APIs
- 138.2K Java Development Tools
- 165.3K Java EE (Java Enterprise Edition)
- 19 Java Essentials
- 162 Java 8 Questions
- 86K Java Programming
- 81 Java Puzzle Ball
- 65.1K New To Java
- 1.7K Training / Learning / Certification
- 13.8K Java HotSpot Virtual Machine
- 94.3K Java SE
- 13.8K Java Security
- 205 Java User Groups
- 24 JavaScript - Nashorn
- Programs
- 468 LiveLabs
- 39 Workshops
- 10.2K Software
- 6.7K Berkeley DB Family
- 3.5K JHeadstart
- 5.7K Other Languages
- 2.3K Chinese
- 175 Deutsche Oracle Community
- 1.1K Español
- 1.9K Japanese
- 233 Portuguese
Modal popup out of modal popup - bug (javascript loop) in 21.2

Hi,
I have encountered bug in 21.2 (and 21.2.1) when calling modal dialog page out of another modal dialog page. Upon return (on dialog closed event) gets into eternal loop and exceeds javascript stack space.
Sample application with bug here: https://apex.oracle.com/pls/apex/mg/r/buggz
In version 21.1 this works fine.
Practical use would be:
report
+-----------edit page
+---------------delete confirmation page
where on "edit page" we want to handle onDialogClosed event for "delete page" and as an action perform close dialog on "edit page".
Just hope for APEX team to take note of this, since it is obviously a bug in new version.
Sincerely
Maris
APEX 21.2.1, Oracle RDBMS 21 (EE/XE)
Best Answer
-
With kind assistance from Daniel Hochleitner (@Dani3lSun) situation got registered as Bug 33964860 - STACKED DIALOG CLOSE EVENTS LEADS TO JAVASCRIPT ERROR WHEN FIRED IN SEQUENCE.
Thanks Daniel!
Answers
-
-
Yes, then it works, but in many cases I need to use dialogs with chained="NO".
In this example - if user decides NOT to delete then he/she must return to "edit page". With chained page user will always return to report.
Sincerely
Maris
-
I don't know what have you done for close them, but there is a simple JS code to close them :
$('.ui-dialog').find('.ui-dialog-titlebar-close').click();
-
I will try this.
However I would prefer to still use "close dialog" action instead of raw javascript code as it may cause problems in long term.
And really - this is bug. It should not fail like this.
Not even speaking that changing tens of pages within multiple running applications would be a major pain.
Sincerely
Maris
-
Unfortunately 21.2.2 patch comes and still no solution - just more bugs,
M.
-
And 21.2.4 and still no solution :(
-
Did you ever create a service request in Oracle Support? This forum is not their main place for reporting bugs. At least with an SR you can track progress, if any....
-
Hi,
I can access support.oracle.com, but I am not allowed to make service requests. Our company is Oracle partner developing software, but do not have any commercial Oracle licence ourselves.
Sincerely
Maris
-
With kind assistance from Daniel Hochleitner (@Dani3lSun) situation got registered as Bug 33964860 - STACKED DIALOG CLOSE EVENTS LEADS TO JAVASCRIPT ERROR WHEN FIRED IN SEQUENCE.
Thanks Daniel!
-
I have raised an Oracle SR for this issue and they have confirmed it will be fixed in Apex 22.1