how can i set a standard value of a select box that gets its values from a query?
how can i set a standard value of a select box that gets its values from a query?
I'm not sure I understand you. Could you please clarify (some examples or screenshots could help).
Hello,
You can set default value in Success-event action for service by using JS-code or setting property for selectmenu component.
what would the js code be and what do you mean by success-event action?
like this?
onSuccess': function(data) {return "default value";}
i'm not sure if that does the trick. i would like to display the default value as the first value in my select box. after that the query-result should follow.
like this?
onSuccess': function(data) {return "default value";}
i'm not sure if that does the trick. i would like to display the default value as the first value in my select box. after that the query-result should follow.
You would need to access the component.. and set its value.
Dear Fabian,
We are sorry, we lost the topic due to a technical problem.
Here is a general solution (see code for Success method below):
codereturn {
'field' : data.field '',
'field1' : data.filed1 0,
...
}/code