Initialization JavaScript Function and culmen control By JavaScript in oracle apex

Опубликовано: 24 Июль 2026
на канале: Hossam assadallah
1,385
10

#javascript_in_oracle_apex
Initialization JavaScript Function and culmen control By JavaScript in oracle apex
#oracle
#oracleapex

function( options ) {

   var $ = apex.jQuery,

       toolbarData = $.apex.interactiveGrid.copyDefaultToolbar(), // Make a copy of the default toolbar

       actionsMenuGroup = toolbarData.toolbarFind( "actions1" );  // Locate the actions menu group

   actionsMenuGroup.controls.push( {

       type: "BUTTON",

       action: "show-download-dialog",

       iconBeforeLabel: true

   } );

   // Assign new toolbar data back to toolbarData configuration property

   options.toolbarData = toolbarData;

    options.toolbar.actionMenu = true;

    options.toolbar.columnSelection = true;



         reportsGroupControls = toolbarData.toolbarFind( "reports" ).controls;    // Locate the reports group

    // Add new buttons after the default report controls. Note the toolbar is action driven, so

    // we just need to define the correct action name with the button.

    reportsGroupControls.push({

        type: "BUTTON",

        action: "save-report",

        iconOnly: true

    });

    reportsGroupControls.push({

        type: "BUTTON",

        action: "show-save-report-as-dialog",

        iconOnly: true

    });

    reportsGroupControls.push({

        type: "BUTTON",

        action: "show-edit-report-dialog",

        iconOnly: true

    });

    reportsGroupControls.push({

        type: "BUTTON",

        action: "delete-report",

        iconOnly: true

    });

    // Assign new toolbar data back to toolbarData configuration property

    options.toolbarData = toolbarData;

   return options;

     // Return the options

}