On 11/28/2010 12:22 PM, Eurico Chagas Filho wrote: > Originally i had all the methods in the form, u know, beforesave, bizsave, > aftersave, beforecancel, > bizcancel... > My question is, should i move these methods to the pages ? > Because if i don't in the bizsave, for instance, i have to ask if child? is > used...
I have a simple rule - "Never process data in the form!" The form is purely a device for displaying information to the user and finding out what he/she wants to do. The actual doing is done by calling procedures/methods in either of: a. A business object that contains the methods to support the form. b. Procedures in the program module that called the form. (a) is the more modern, preferred way, and lends itself to n-tier architecture, as Rick said. But I have lots of old apps that use (b) quite successfully. I repeat - don't process data in the form. Dan Covill San Diego _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[email protected] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

