@suuntopartnerteam In the examples I noticed that I could pass parameters to the html file from the getUserInterface() function.
I’m trying to pass the default index of a uiViewSet like this:
main.js
function getUserInterface(input) {
return {
template: "t",
uiViewSet:{index: input}
};
}
t.html
<uiView onLoad="navigate('#uiViewSet1', {zapp_uiViewSet_index});">
This works fine in the simulator, the watch crashes immediately when I select the app.
If I add {zapp_uiViewSet_index} to a textfield, I noticed that te simulator resolves it to a value like 1, 2 etc, while the watch resolves it as the string “{zapp_uiViewSet_index}”
Is there any way to achieve this by passing parameters to the html file?