Hi Ptmhki
The table will always be the best location if it is possible to write the code there. If it is not possible then the datasource is the second best place.
If you write the code on he datasource of a form and you need to reuse it on another form you will have to duplicate the code for the other form. However, if the code is on the table it can be reused by all and any objects in the application without duplication.
If you write code on the control of a form it will only be usable by that control. However, if you write that code on the datasouce you can reuse it everywhere in the form. This makes a control the third and I think the last best place to write code.
It is best practice to place no code if possible on a form. This makes the form simple and easy to maintain and reduces the cost of upgrades.
Varden Morris
J. Wray & Nephew Ltd. - Group I.S.
Phone: (876) - 923 - 6141 Ext. 2400, 2412
Fax: (876) - 923 - 5372
Cell: (876) - 3833566
Email: [EMAIL PROTECTED]
how to determine the best location (datasource & table) of validate
method?
Sharing the knowledge on Axapta.
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.
Sharing the knowledge on Axapta.
Yahoo! Groups Links
- To visit your group on the web, go to:
http://groups.yahoo.com/group/Axapta-Knowledge-Village/
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.