This X++ Code Snippet post describes how you can easily copy records by running over all of the fields of the from-record. During this looping over all the fields, you can exclude some fields if needed.Create following method in a class:Jimmy_GlobalstaticvoidJimmy_CopyoingField(Common_from,Common_to Read More
posted @ 2011-08-04 09:55 Fandy Xie Views(291) Comments(0) Diggs(0) Edit
staticvoidJimmy_InventOnHandPhysical(Args_args){InventOnHandinventOnHand=newInventOnHand();InventDimParminventDimParm;ItemId_ItemId="10-1000";;inventDimParm.initFromInventDim(InventDim::findOrCreateBlank());inventOnHand.parmInventDimParm(inventDimParm);inventOnHand.parmItemId(_itemId);inve Read More
posted @ 2011-08-04 09:35 Fandy Xie Views(632) Comments(0) Diggs(0) Edit
Business requirement: update planned order upon modification of a salesline without master scheduling.Sometimes you want to see changes made on a SalesLine immediately on the reference Planned Order, without Master Scheduling. This post describes how you can make a little code adaptation to achieve Read More
posted @ 2011-08-04 09:13 Fandy Xie Views(698) Comments(0) Diggs(0) Edit