Tuesday, March 1, 2011

Edit Method in AX

Query: How to write an edit method in AX?

Answer:
edit CustName editCustomerName(boolean _set,
CustName _name)
{
CustName name = _name;
CustTable custTable;
if (_set)
{
if (name)
{
ttsbegin;
custTable = CustTable::find(this.custAccount, true);
custTable.name = name;
custTable.update();
ttscommit;
}
}
else
{
name = CustTable::find(this.custAccount).name;
}
return

No comments:

Post a Comment