web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :

How to Update Project Status by Code in Ax 2012

SANTOSH KUMAR SINGH Profile Picture SANTOSH KUMAR SINGH 1,224
To Update Project Status by Code in Ax 2012 You can get help from below code sample. In this code if Project status is created then it will update to In process stage.

Same way you can try as per your requirement.

 Projtable projTable;  
int cnt;
ttsBegin;
while select forUpdate projtable where projTable.Status==ProjStatus::Created
{
cnt++;
projtable.Status=ProjStatus::InProcess;
}
ttsCommit;
info(strFmt("%1 Project Updated",cnt));


This was originally posted here.

Comments

*This post is locked for comments