Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to apply the same Javascript Initialization code to all my IG ?

Alexis BJul 10 2024

Hi everyone,

I have several IG in my application and for each of them I want to apply the same Javascript Initialization Code attribute

function(config) {
config.reportSettingsArea = false;
return config;
}

I tried to create a function in my shared components, so if I would change the options in the future I will NOT need to amend each IG one per one, but only amend the shared component once
function initIG(config) {
config.reportSettingsArea = false;
return config;
}

And call it from my IG Javascript Initialization Code :

initIG(config)

However, when doing it, my IG is no more visible and I get following error in the console
ReferenceError: config is not defined

But when I paste my code directly it works well

function(config) {
config.reportSettingsArea = false;
return config;
}

Anyone can help my about this topic please?
Thanks

Best regards,

This post has been answered by John Snyders-Oracle on Jul 10 2024
Jump to Answer
Comments
Post Details
Added on Jul 10 2024
3 comments
859 views