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!

Interactive grid button hidden based on authorization

Ravi10Jan 30 2018 — edited Jan 30 2018

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

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 27 2018
Added on Jan 30 2018
1 comment
660 views