NetTalk Central

Author Topic: Extra text on a browse TOTAL line?  (Read 2957 times)

Devan

  • Full Member
  • ***
  • Posts: 230
    • View Profile
    • Email
Extra text on a browse TOTAL line?
« 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?

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Extra text on a browse TOTAL line?
« Reply #1 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



Devan

  • Full Member
  • ***
  • Posts: 230
    • View Profile
    • Email
Re: Extra text on a browse TOTAL line?
« Reply #2 on: December 22, 2011, 05:34:59 AM »
Outstanding!  Worked perfectly!

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