Santosh.'s profileDynamics AxPhotosBlogLists Tools Help

Blog


    August 06

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

    August 02

    Configure Language using Dynamics AX Configuration utility

     

    Demand for a user friendly ERP is increasing day by day.  Since the usage of any ERP product is worldwide it has become a necessity that it should support multiple languages. Dynamics AX is one such ERP, which is more user friendly and flexible. The product is available in different languages and to name a few are German, Arabic, Chinese etc.

                                    Microsoft is targeting to support AX in local languages like Hindi, Telugu, Tamil etc. In AX2009 you can find all the supported language in the Language Macro. 

    Setup:

    Create a new config file from the Microsoft Dynamics AX Configuration utility (axclicfg) as languages.axc    Set the “Configuration command to run at kernel startup:” to -language = <language> Example: -language = DE

    Now start you AX Client and you’ll find AX in German language.  The following line also enables to view AX client with different language without any setting in config file.  Infolog.language(‘DE’)