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.