I have an interactive gride page. i want to hide SAVE button in action menu to prevent user to save report as default or primary report i have tried to do that using page item be hidden contain value = Y and make dynamic action on it execute JavaScript code. this is the code
function(config) {
config.initActions = function( actions ) {
$(() => {
if ( $v("P3_NEW") === "Y" ) {
apex.region("todo").widget().interactiveGrid("getActions").hide("save-report");
apex.region("todo").widget().interactiveGrid("getActions").hide("show-save-report-as-dialog");
apex.region("todo").widget().interactiveGrid("getActions").hide("show-edit-report-dialog");
}
});
}
return config;
}```
Can anyone help me to do this in interactive gride and also in interactive report?
I have an interactive gride page. i want to hide SAVE button in action menu to prevent user to save report as default or primary report i have tried to do that using page item be hidden contain value = Y and make dynamic action on it execute JavaScript code. this is the code
function(config) {
config.initActions = function( actions ) {
$(() => {
if ( $v("P3_NEW") === "Y" ) {
apex.region("todo").widget().interactiveGrid("getActions").hide("save-report");
apex.region("todo").widget().interactiveGrid("getActions").hide("show-save-report-as-dialog");
apex.region("todo").widget().interactiveGrid("getActions").hide("show-edit-report-dialog");
}
});
}
return config;
}```
Can anyone help me to do this in interactive gride and also in interactive report?
Share
Improve this question
asked Feb 16 at 20:28
Retal OmarRetal Omar
393 silver badges13 bronze badges
1 Answer
Reset to default 0... prevent user to save report as default or primary report
Lucky you, you don't have to do anything. Nobody, but developer (you) can save the default report layout. Users can save their own versions of it (and use them whenever they want), but default is all yours.