Apex 18.2.
Hi,
- I have javascript pages that I need to reference from multiple pages in my app. I've seen another thread about Apex 5 that mentioned the following steps. And I used it but the browser console says the function is not defined.
- Put your JS code into a file
- Go to Shared Components -> Static Files and upload it
- Go to Shared Components -> User Interface Attributes -> Desktop -> Javascript
- Enter #APP_IMAGES#my_js_file.js into "File URLs" attribute
1- Why can not it see it?
2- Is this the best way to do so?
my.js file's content is,
function editIg(pIg){
apex.region(pIg).widget().interactiveGrid("getActions").set("edit",true);
}
function deEditIg(pIg){
apex.region(pIg).widget().interactiveGrid("getActions").set("edit",false);
}
I am referencing those functions from page attributes> JavaScript functions and global variables declaration attribute.