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!

IG: can I use multiple Static ID's in JavaScript Code?

SmithJohn45Jan 26 2022 — edited Jan 26 2022

Apex 21.2.0
i used code below on Page Load to hide some functions on IG.
it uses Static ID. can i give it multiple Static ID's or i have to copy & paste the code, give different Static ID for another one IG region? the Master-Detail page contains 2 IG regions.
the code:

let actions = apex.region("myig").call("getActions");
actions.hide("selection-duplicate");
actions.hide("selection-delete");
actions.hide("selection-copy-down");
actions.hide("selection-copy");
actions.hide("selection-refresh"); 
actions.hide("selection-revert"); 
actions.hide("selection-add-row"); 
actions.hide("selection-fill"); 
actions.hide("selection-clear"); 
actions.hide("single-row-view");
actions.hide("row-add-row");
actions.hide("row-duplicate");
actions.hide("row-delete"); 
actions.hide("row-refresh");  
actions.hide("row-revert"); 

regards
note: i tried same code twice (copy/paste) and change Static ID for second one but fails ( Uncaught SyntaxError: redeclaration of let actions blocks-management:249:4note: Previously declared at line 233, column 176 ), so how i can hide those functions from both IG's.

This post has been answered by Hamza Al-abbasi on Jan 26 2022
Jump to Answer
Comments
Post Details
Added on Jan 26 2022
4 comments
341 views