Insert_RecordSet Class in AX
Today I will demonstrate you that how to use Insert_RecordSet Class in AX.
Insert_Recordset() Method
CarTable carTable;
CarTable carTableTmp;
;
carTableTmp.setTmp();
carTableTmp.CarId = "200";
carTableTmp.CarBrand = "MG";
carTableTmp.insert();
carTableTmp.CarId = "300";
carTableTmp.CarBrand = "SAAB";
carTableTmp.insert();
carTableTmp.CarId = "400";
carTableTmp.CarBrand = "Ferrari";
carTableTmp.insert();
Insert_Recordset carTable (carId, carBrand)
select carId, carBrand from carTableTmp;
}
Insert_Recordset() Method
static void Insert_Recordset(Args _args)
{CarTable carTable;
CarTable carTableTmp;
;
carTableTmp.setTmp();
carTableTmp.CarId = "200";
carTableTmp.CarBrand = "MG";
carTableTmp.insert();
carTableTmp.CarId = "300";
carTableTmp.CarBrand = "SAAB";
carTableTmp.insert();
carTableTmp.CarId = "400";
carTableTmp.CarBrand = "Ferrari";
carTableTmp.insert();
Insert_Recordset carTable (carId, carBrand)
select carId, carBrand from carTableTmp;
}
Comments
Post a Comment