CalcBuilder Forum

Print Preferences

Usuario 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

...
Support/development 40 hours

With the peace of mind of having a professional team at your service (20% discount)

Buy now!
...
Support/development 10 hours

Get a bigger amount of hours for more complex tasks and get a 10% discount

Buy now!