Requirement: I this post I will show you the functions to open and close a dialog in Oracle VBCS.
Solution: For the solution of the above requirement we will use the below JavaScript code.
define([], function() { 'use strict'; var PageModule = function PageModule() {}; //Function to open the dialog PageModule.prototype.closeDialog = function(event) { document.getElementById('dialog1').close();//dialog1 is the dialog ID }; //Function to close the dialog PageModule.prototype.openDialog = function(event) { document.getElementById('dialog1').open(); //dialog1 is the dialog ID }; return PageModule; });
Then we can call these functions as and when required in the Action Chain.
Hence, the solution to our requirement.
If you like the post please comment, share, and do join me on Facebook. Please subscribe to my YouTube Channel for video tutorials.
Thanks & Regards,
Susanto Paul
453 total views, 1 views today