Home > X++ stuffs > Hide Navigation Pane using X++ code in Dynamics AX

Hide Navigation Pane using X++ code in Dynamics AX

 
Does someone know how to Hide Navigation pane using any security settings (or) using X++ code. Here is the simple example on the same.
 
Hide Navigation Pane can be performed in three ways
  • Using xInfo
  • Using xNave (Both of these classes can be found in SystemDocumentation)
  • Infolog
You may try something like this
 
static void HideNavPane(Args _args)
{

    xInfo       info;

    ;

 

    info = new xInfo();

    info.navPane().navPaneVisible(false);

 

    (or)

 

    infolog.navPane().navPaneVisible(false)

}

 

You may also try calling directly using

xNavPane.favPaneVisible(false) to disable "Favourite Menu"

 

Similiar things can be performed for "Context Menu" and "Area Pages".

Categories: X++ stuffs
  1. No comments yet.
  1. No trackbacks yet.

Leave a comment