Microsoft Dynamics Ax, Application Integration Framework, x++ programming, Ax 2009 , 2012. Enterprise portal, SharePoint , BI Tools, OLAP, OLTP, DAX, SQL database, SSRS,SSIS,SSAS, Workflow.

Saturday, November 12, 2011

Update records and grid in axapta x++ language


Update records and grid in axapta x++ language

public void Update_test_Emp_Travel()
{ ;
ttsbegin;
Select forUpdate test_Emp_Travel where test_Emp_Travel.SrNo == str2num(rlSrNo_Update.valueStr());
 test_Emp_Travel.Employee_Name = strEmployeeName_Update.valueStr();
 test_Emp_Travel.Travelling_Through =  str2enum(test_Travelling_Through,cmbTravellingThrough_Update.valueStr());
 test_Emp_Travel.update();
ttscommit;
test_Emp_Travel_ds.reread();
test_Emp_Travel_ds.refresh();
test_Emp_Travel_ds.research(true);
test_Emp_Travel_ds.executeQuery();
element.ClearField_Update();
GridEmpTravel.update();
GridEmpTravelDetails.update();
}

No comments:

Post a Comment

Active Search Results Technology Blogs