On 2/1/2012 6:37 PM, Dan Covill wrote:
> On 02/01/12 11:12, MB Software Solutions, LLC wrote:
>> No, I think the example you gave with updating the invoice total as
>> items are added in the UI is fine there.  In my form, I'd have a simple
>> routine that calculated the total/sum and updated the textbox that
>> reflected that total:
>>
>> thisform.CalcTotal()
>>
>> in thisform.CalcTotal method:
>>      select sum(paidamt) from (this.grdPayments.RecordSource) into array 
>> laSum
>>      this.txtTotalPaid.value = nvl(laSum(1),0)
>
> And that's where I'm the purist, Mike.  I might well have a .CalcTotal()
> method in the form, but it will call a BizObj method to do the SQL.


Totally fine, Dan.  Consistency is the key.


-- 
Mike Babcock, MCP
MB Software Solutions, LLC
President, Chief Software Architect
http://mbsoftwaresolutions.com
http://fabmate.com
http://twitter.com/mbabcock16

_______________________________________________
Post Messages to: ProFox@leafe.com
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/4f29dfc9.6000...@mbsoftwaresolutions.com
** 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.

Reply via email to