09.12.2013, 00:14 | #1 |
Участник
|
Pawan's Ax blog: Code to copy data from one table to another even though the tables are different provided the field names are same. in Ax2012
Источник: http://pawansaxblog.blogspot.com/201...-table-to.html
============== public voidcopyData(Common _from, Common _to) { DictTable dictTable = newDictTable(_from.TableId); FieldId fromFieldId = dictTable.fieldNext(0); fieldId toFIeldid; DictField dictField; while (fromFieldId) { If(! isSysId(fromFieldId)) { dictField = new DictField(dictTable.id(), fromFieldId); toFIeldid = fieldName2id(_to.TableId, fieldId2name(_from.TableId, fromFieldId)); if (toFIeldid) { _to.(toFIeldid) = _from.(fromFieldId); } } fromFieldId = dictTable.fieldNext(fromFieldId); } } Источник: http://pawansaxblog.blogspot.com/201...-table-to.html
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору. |
|
|
|