NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Devan on December 21, 2011, 03:53:25 PM

Title: Extra text on a browse TOTAL line?
Post by: Devan on December 21, 2011, 03:53:25 PM
I've got a browse (a list of invoice items) working on an app, and I have use the 'Totaling' tab on the invoice values to give a nice total of customer invoices at the bottom of the browse.

Now, my client has requested that BEFORE the total amount, I place the text 'Total of all Current Invoices:' and AFTER the total amount, I place the text '(Inc. GST)'.

Any easy easy way to add text to the total line via the templates?
Title: Re: Extra text on a browse TOTAL line?
Post by: Bruce on December 21, 2011, 11:29:11 PM
yes, there is.
there are 2 crucial facts to know, after that you can get creative.

a) A "total column" can span multiple browse columns. thus, say your amount column is column 4, then you can have a total (in column 1) which spans 3 columns, and thus gives you space to put whatever you want.

b) The _contents_ of the total column can vary. From the drop-down are the obvious, Sum, Average and Count, but there's also "Custom". And that does exactly what it implies. So if your total for column 1, spanned 3 columns, and was set to custom and the custom total was set to
'Total of all Current Invoices:'
then you're on your way.

Obviously you can repeat for column 5 to put stuff after the total. (Hopefully there is a column 5...)

Cheers
Bruce


Title: Re: Extra text on a browse TOTAL line?
Post by: Devan on December 22, 2011, 05:34:59 AM
Outstanding!  Worked perfectly!

Scroo Ruby on Rails... in comparison and productivity, NetTalk kicks it's a** !!!