CalcBuilder Forum

Print Preferences

User moon_602 2012-07-11 11:22:17

Hello,

I'm working on Print Preferences Layout and want to access the names of some Multivalues.

For values it would be the ##value## option that gives me the result of the corresponding value, but how do I pass its name?

Regards,
Michael

Edited by moon_602 - 11.07.2012 11:27

Moonsoft support 2012-07-12 09:21:50

Hello,
by now you have not available at the code/print layout sections the 'names' of the values selected. We'll include for next version of the extension a way to have them available, but in the meantime, you could use a workaround:

Define each option value as

optionname#optionvalue


When you recover the value you can get the two parts splitting the value this way:

$pieces = explode("#", $value);

$optionname= $pieces;
$optionvalue= $pieces;


Both variables $optionname and $optionvalue will be available to print at Print layout.

Hope this helps

...
CalcBuilder

Create dynamic calculators

Buy now!
...
List Manager

Build different lists for your site

Buy now!