Forum
Calc Builder Support
Calc Builder supportForums
No se permite escribir sin estar logado. Por favor, login
get price from a matrix 15.05.2014 16:37
Hi,
I want to extract a price value from a matrix (imported from a csv file).
There are two list options: one to choose the width and one to choose the height.
When both are chosen, click the Calculate button to get the price. This price is already in the matrix, so it's not a real calculation, the price is already there in the matrix.
The variable for the width is called 'breedte', for the height it is 'hoogte'.
The name of the matrix is 'duoprice'.
The code I use to get the right price is: $result=[$breedte][$hoogte].
This doesnot work, for there is no result.
Question is this: how can I make it work, what code do I have to use or what else is wrong in my calculator?
The (not) working calculator can be found here: http://www.jacquelinekamp.nl/index.php/producten-prijs/duo-rolgordijnen
Regards,
Marcel
I want to extract a price value from a matrix (imported from a csv file).
There are two list options: one to choose the width and one to choose the height.
When both are chosen, click the Calculate button to get the price. This price is already in the matrix, so it's not a real calculation, the price is already there in the matrix.
The variable for the width is called 'breedte', for the height it is 'hoogte'.
The name of the matrix is 'duoprice'.
The code I use to get the right price is: $result=[$breedte][$hoogte].
This doesnot work, for there is no result.
Question is this: how can I make it work, what code do I have to use or what else is wrong in my calculator?
The (not) working calculator can be found here: http://www.jacquelinekamp.nl/index.php/producten-prijs/duo-rolgordijnen
Regards,
Marcel
Re: get price from a matrix 16.05.2014 09:16
Hello,
Code seems to be wrong:
$result=$duoprice[$breedte][$hoogte];
You should add the 'variable' of the matrix before '[$breedte][$hoogte]' to get a value from matrix.
We published in our site a 'Matrix data' video at http://www.moonsoft.es/en/demo-calcbuilder-en, where you can see how to use a matrix.
If you can´t get it working, please place a ticket in Helpdesk at Customer Area with calculator attached and we´ll take a look.
Regards,
Moonsoft Team
www.moonsoft.es
Code seems to be wrong:
$result=$duoprice[$breedte][$hoogte];
You should add the 'variable' of the matrix before '[$breedte][$hoogte]' to get a value from matrix.
We published in our site a 'Matrix data' video at http://www.moonsoft.es/en/demo-calcbuilder-en, where you can see how to use a matrix.
If you can´t get it working, please place a ticket in Helpdesk at Customer Area with calculator attached and we´ll take a look.
Regards,
Moonsoft Team
www.moonsoft.es