Skip to Content
1
Feb 20, 2014 at 02:13 PM

Function on contribution.ztl not working

43 Views

Hi experts,

I'm having a problem, on the contribution.ztl file, I created the following code

String getSelectedValue(){*

return this.selectedValue;

*}

Which I fire when the value is changed on the combobox, with the following code.

that.setProperty("selectedValue",that.getValue());

that.fireDesignStudioPropertiesChanged(["selectedValue"]);

that.fireDesignStudioEvent("onchange");

But it always return undifined when I try to show the result of the function getSelectedValue.

My code is here

https://github.com/olafecorcam/com.leandro.gp.combobox

Any ideas?

By the way, this component I'm creating so that I can add "ALL" to the list of values inside the combo, as per now the native one comes with the first value already selected, which is causing confusion on the users.

Best

Leandro