Get resource id from prod route || AX2012

Hey guys, here is a short codesnip for getting the resource id from the prod route. ProdRoute                       prodRoute; RecId                           recId; WrkCtrId                     … Read moreGet resource id from prod route || AX2012

Table to line update || AX 2012

    The following framework is used in AX 2012 for updating data from table to the lines when you updated the table fields. The example is for the Salestable / Salesline.   Create a new field in the SalesTable and SalesLine. Add the field to the FieldGroup HeaderToLineUpdate in the SalesTable Add the new … Read moreTable to line update || AX 2012

Create form via code || AX 2012

Sometimes it is very usefull to create a form per code. Following code demonstrates how you can do it.   form = new Form();   formTable = new DictTable(tablenum(ChangedObjects)); formBuildDataSource = form.addDataSource(; formBuildDataSource.table(;   // Create the form design. formBuildDesign = form.addDesign(“Design”); formBuildDesign.caption(“myForm”); formBuildDesign.width   // Add tabbed page controls, a grid control, and string … Read moreCreate form via code || AX 2012