Forum Stats

  • 3,770,480 Users
  • 2,253,121 Discussions
  • 7,875,481 Comments

Discussions

Interactive Grid - Actions Menu - Edit Help Text

kabo
kabo Member Posts: 6 Blue Ribbon
edited Sep 16, 2020 5:39AM in APEX Discussions

Hi,

it's possible to edit the help text under IG menu item "Help" ?

We would like to use our own text instead of "To learn more, see "Using Interactive Grids" in the Oracle Application Express End User's Guide".

1.jpg

2.jpg

Thanks in advance!

Unplumbed_Apex

Best Answer

Answers

  • jariola
    jariola Member Posts: 10,460 Silver Crown
    edited Sep 14, 2020 6:48AM Accepted Answer
  • Pierre Yotti
    Pierre Yotti Member Posts: 4,040 Bronze Crown
    edited Sep 14, 2020 6:51AM

    Hi,

    - add that code in JS initialization code Attributes for IG

    function( config ) {        config.initActions = function( actions ) {                    actions.hide( "show-help-dialog" );                            actions.add({              name: "my-action",              action: function(event, focusElement) {                actions.show("show-help-dialog");                 actions.invoke("show-help-dialog");               }          });      };                   return config;    }    

    - Execute when Page Load

    $("#emp_ig_toolbar_actions_button_menu").menu("option").items.push({    type: "action",    action: 'my-action',    label: 'My Help Text',    icon: 'icon-ig-help'});

    Demo

  • jariola
    jariola Member Posts: 10,460 Silver Crown
    edited Sep 14, 2020 7:04AM
    Pierre Yotti wrote:Hi,- add that code in JS initialization code Attributes for IG
    1. function(config){
    2. config.initActions=function(actions){
    3. actions.hide("show-help-dialog");
    4. actions.add({
    5. name:"my-action",
    6. action:function(event,focusElement){
    7. actions.show("show-help-dialog");
    8. actions.invoke("show-help-dialog");
    9. }
    10. });
    11. };
    12. returnconfig;
    13. }
    function( config ) {   config.initActions = function( actions ) {   actions.hide( "show-help-dialog" );     actions.add({   name: "my-action",   action: function(event, focusElement) {  actions.show("show-help-dialog");   actions.invoke("show-help-dialog");   }   });   };     return config;  } 
    - Execute when Page Load
    1. $("#emp_ig_toolbar_actions_button_menu").menu("option").items.push({
    2. type:"action",
    3. action:'my-action',
    4. label:'MyHelpText',
    5. icon:'icon-ig-help'
    6. });
    $("#emp_ig_toolbar_actions_button_menu").menu("option").items.push({  type: "action",  action: 'my-action',  label: 'My Help Text',  icon: 'icon-ig-help' });
    Demo

    How that change actual help dialog content that OP like to change?

    Edit

    And BTW you can also change that action menu button text using text message instead many lines of JS

  • Pierre Yotti
    Pierre Yotti Member Posts: 4,040 Bronze Crown
    edited Sep 14, 2020 7:03AM

    Hi,

    O.K. I misunderstood the question

    Thanks

    Pierre

  • kabo
    kabo Member Posts: 6 Blue Ribbon
    edited Sep 16, 2020 5:39AM

    Hi jariola,

    exactly that's what I was looking for.

    New text for "IG Help". Message Name: APEX.IG.HELP.ACTIONS.INTRO and APEX.IG.HELP.ACTIONS.REPORTING

    Many thanks!