Edit Method in D365
X++ Programming Language > D365 Table > Table Methods
2845
Answer:
Indicates that the methods return type is to be use to provide information for a field that is used in a form only
We can create edit method on the
- Table methods
- Form methods
- Form datasoruce methods
Take the new method in the table, and then drag that method into the grid and set data source properties. In that field is user can edit it and accept the values to the user and save it CustTable.
Edit Name name(boolean _set , Name _name) { Name 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 name; }
This Particular section is dedicated to Question & Answer only. If you want learn more about X++ Programming Language. Then you can visit below links to get more depth on this subject.
Join Our telegram group to ask Questions
Click below button to join our groups.