Skip to main content

Posts

Showing posts with the label refresh

How to refresh parent form from child form in Axapta

Sometimes we need to refresh parent form from child form in Axapta but its become tedious on thinking but here is an easy 4 line code you can write on child form on close event to get page refreshed. FormDataSource datsource; ; datsource= element.args().record().dataSource(); datsource.research(); datsource.refresh() I hope its solve your problem

Insert Records and update grid in MSD axapta

 Insert Records and update grid in axapta x++ public void Insert_test_Emp_Travel() { ; test_Emp_Travel.SrNo = str2num(rlSrNo.valueStr()); test_Emp_Travel.Employee_Name = strEmployeeName.valueStr(); test_Emp_Travel.Travelling_Through = str2enum (test_Travelling_Through,cmbTravellingThrough.valueStr()); test_Emp_Travel.insert(); test_Emp_Travel_ds.reread(); test_Emp_Travel_ds.refresh(); test_Emp_Travel_ds.research(true); test_Emp_Travel_ds.executeQuery(); element.ClearField_Insert(); GridEmpTravel.update(); GridEmpTravelDetails.update(); }