Home > Ax Technical > Opening the Project node automatically in Dynamics Ax

Opening the Project node automatically in Dynamics Ax

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
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

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: