Code to hide or unhide navigation pane in MSD axapta


 xInfo info;  
 ;  
 info = new xInfo();  
 info.navPane().favPaneVisible(true);  
 infolog.navPane().navPaneVisible(false)