Archive

Posts Tagged ‘projects’

Opening the Project node automatically in Dynamics Ax

July 23, 2010 Leave a comment

Project Node is a very different node in terms of accessing, modifying and displaying it. If you want to automatically open a Project say after creating it through code you can’t use “AOTOpenNewWindow()” method. Instead you have to use “getRunNode” , refer example to understand better.

static void JobOpeningProjectNodeInAoT(Args _args)
{
    ProjectNode sharedProject = Infolog.projectRootNode().AOTfindChild('Shared');
    ProjectNode projectNode   = sharedProject.AOTfindChild('Docu');
    ;

    if (projectNode)
    {
        projectNode.getRunNode();
    }
}

‘[tweetmeme source=”casperkamal” ]’

Advertisements