3 Tips For Using Imported Javascript With Visual Builder
3 Tips For Using Imported Javascript With Visual Builder
3 Tips For Using Imported Javascript With Visual Builder
1 of 8 9/2/2019, 6:46 PM
3 Tips for Using Imported Javascript with Visual Builder | Oracle Visual... https://blogs.oracle.com/vbcs/3-tips-for-using-imported-javascript-with-v...
folder
When you import your Javascript file, you select the
folder for install at the time of import. In the previous
article, I had imported the file into a flows folder and
as such I had used a absolute path from the root of
the instance to provide the location of the file.
However, if you import into the resources folder you
can now just reference your file by prepending
"resources/" to the name of the JS file (you don't need
the .js extension).
2 of 8 9/2/2019, 6:46 PM
3 Tips for Using Imported Javascript with Visual Builder | Oracle Visual... https://blogs.oracle.com/vbcs/3-tips-for-using-imported-javascript-with-v...
3 of 8 9/2/2019, 6:46 PM
3 Tips for Using Imported Javascript with Visual Builder | Oracle Visual... https://blogs.oracle.com/vbcs/3-tips-for-using-imported-javascript-with-v...
define(["resources/importedjs"],
function(importedjs) {
'use strict';
4 of 8 9/2/2019, 6:46 PM
3 Tips for Using Imported Javascript with Visual Builder | Oracle Visual... https://blogs.oracle.com/vbcs/3-tips-for-using-imported-javascript-with-v...
PageModule.prototype.callImportedJSFunction
= function(param)
return
importedjs.callExternalAction(param);
return PageModule;
});
define([], function() {
5 of 8 9/2/2019, 6:46 PM
3 Tips for Using Imported Javascript with Visual Builder | Oracle Visual... https://blogs.oracle.com/vbcs/3-tips-for-using-imported-javascript-with-v...
function callExternalAction(param)
};
exports.callExternalAction =
callExternalAction;
return exports;
});
6 of 8 9/2/2019, 6:46 PM
3 Tips for Using Imported Javascript with Visual Builder | Oracle Visual... https://blogs.oracle.com/vbcs/3-tips-for-using-imported-javascript-with-v...
Comments ( 2 )
Recent Content
7 of 8 9/2/2019, 6:46 PM
3 Tips for Using Imported Javascript with Visual Builder | Oracle Visual... https://blogs.oracle.com/vbcs/3-tips-for-using-imported-javascript-with-v...
8 of 8 9/2/2019, 6:46 PM