Categories > TinyButStrong general >

Math between fields

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Christoforos Korifidis
Date: 2014-08-12
Time: 07:18

Math between fields

I need to know how can I make calculation between fields.
For example I have
[b.f1], [b.f2]. How can I output the [b.f1] + [b.f2] where b is a block section andf1, f2 fields within that block
By: Skrol29
Date: 2014-08-12
Time: 17:11

Re: Math between fields

Hi,

This is not possible. Those operations are part of the business logic. You have to calculate this in your SQL query or with PHP.
By: Christoforos Korifidis
Date: 2014-08-12
Time: 21:11

Re: Math between fields

Actually I found out that this is possible with a function that runs at the ondata event.
By: Skrol29
Date: 2014-08-13
Time: 00:20

Re: Math between fields

> Actually I found out that this is possible with a function that runs at the ondata event.

That is correct. Sorry.