Add mathematical functions (such as +, -, *, /, count,
sum) into AA (probably into aliases display
functions). Usefull for calculation of fields and
summarizing data, e.g. price * amount or sum(amount).
We are thinking about this feature. There are my notes:
1) We do not see as good to implement mathematical
operations into the formatstring (for example just like:
{math:{number.........1}+{number.........2}}
The reasons are:
- sliceadmins have to learn new syntax
- user needs are unlimitted, so we have to implement not
only +, -, *, /, (), but we have to implement string
operations - concaternation, substring, ... which means to
develop new programming language, in fact.
2) So, best is to use the existing languages. We have two
choices (at least) - PHP and javascript.
2a) PHP - PHP you already can use. You just use f_u alias
function and the special output function you will write to
usr_aliasfnc.php3 file.
2b) Javascript - Yes, it seems to us as the best solution
for fields counted in inputform. We are thinking about the
way to give slice admins possibility to define for each
field any javascript function. The function will be invoked
onselect, onchange, on... as user defines it.
Do you think it is sufficient to your needs?
Honza
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=40086
We are thinking about this feature. There are my notes:
1) We do not see as good to implement mathematical
operations into the formatstring (for example just like:
{math:{number.........1}+{number.........2}}
The reasons are:
- sliceadmins have to learn new syntax
- user needs are unlimitted, so we have to implement not
only +, -, *, /, (), but we have to implement string
operations - concaternation, substring, ... which means to
develop new programming language, in fact.
2) So, best is to use the existing languages. We have two
choices (at least) - PHP and javascript.
2a) PHP - PHP you already can use. You just use f_u alias
function and the special output function you will write to
usr_aliasfnc.php3 file.
2b) Javascript - Yes, it seems to us as the best solution
for fields counted in inputform. We are thinking about the
way to give slice admins possibility to define for each
field any javascript function. The function will be invoked
onselect, onchange, on... as user defines it.
Do you think it is sufficient to your needs?
Honza