Page 1 of 1

Select component + creating option dynamically from a REST service.

Posted: Thu Jan 10, 2013 8:45 am
by Francesco

I need to build select options dynamically getting data from a REST service.
I followed the suggestion given by Marina Brodina in https://getsatisfaction.com/tiggzi/to...,
but when I select an option, I need the Select component to show the label as happen for the Select component with Veni, Vid, Vici.
When I tested my app it doesn't happen and the Select component Label is empty


Select component + creating option dynamically from a REST service.

Posted: Thu Jan 10, 2013 9:46 am
by Kateryna Grynko

Hi Francesco,

It's a known bug that will be fixed in next Tiggzi release.
You can find a workaround here:
https://getsatisfaction.com/tiggzi/to...


Select component + creating option dynamically from a REST service.

Posted: Thu Jan 10, 2013 10:58 am
by Francesco

thanks, it works.
is it possible to save the selected option in a local storage variable?
I'm trying to do this by adding set local storage variable on value change event to the select menu component. in the set local storage variable i'm using
bind to component: checked
target component: undefined
property name: label

then I'm adding another set property event on value change to the select menu component to set the text of a label component :
from the editor:
i selected the label component name in the component name field
property name: text
read from local storage variable: checked
value: the local storage variable i set before

but when i test the app the label component is not shown or it is empty


Select component + creating option dynamically from a REST service.

Posted: Thu Jan 10, 2013 11:28 am
by Kateryna Grynko

To save value in localStorage variable use Run JavaScript action with following code:codelocalStorage.setItem("variable_name", Tiggzi("select_component_name").val());/code


Select component + creating option dynamically from a REST service.

Posted: Thu Jan 24, 2013 12:03 pm
by Kateryna Grynko

Hello!
It's fixed.