Hi, I am using Oracle Apex 5.1. i have a Interactive gird where i have customized save button. I have created customized save button for multiple reason which cannot be accomplished using the default button which is in IG.
i have created button using following link. How to hack APEX Interactive Grid Part 2 – HardLikeSoftware . Its work fine but i need to hide the save button authentication scheme is not Admin.
How can i do do that.
below is the code to create button
function(config) {
var $ = apex.jQuery,
toolbarData = $.apex.interactiveGrid.copyDefaultToolbar(),
toolbarGroup = toolbarData[toolbarData.length - 1];
// add our own button
toolbarGroup.controls.push( {
type: "BUTTON",
action: "action"
});
config.toolbarData = toolbarData;
config.initActions = function( actions ) {
actions.add( {
name: "action",
label: "Save",
action: function(event,focusElement) {
apex.submit({request:'SAVE',validate:true});
}
} );
}
return config;
}
Can any one help to to hide the save button when when not AUTHORIZATION IS ACCESS CONTROL -ADMINISTRATOR.
Thanks in advance
Ravi