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".

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

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: