Skip to main content
Post a question

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id : 1eKeAocDj4kCdHU/zuP7sY

Update and Update_RecordSet Code sample in Ax 2012

This is Update and Update_RecordSet Code sample. Result of both will be same .

 TestTable TestTable;  
//Update_Recordset
update_recordset TestTable setting Name ="New Enterprises" where TestTable.Accountnum =="uS-027";  
//Update
ttsBegin;  
while select forupdate TestTable where TestTable.Accountnum =="uS-027"
{
TestTable.Name ="New Enterprises";
TestTable.update();
}
ttsCommit;
info("OK");

Comments

*This post is locked for comments