In my first form the variable has changed and since it is bound to a typeahead field with a value list, the changed value is shown in the typeahead field.
But… the onDataChange event of this typeahead field is not executed.
ERROR org.sablo.websocket.utils.JSONUtils - unsupported value type:null for value: [B@9437e689 current json: null java.lang.IllegalArgumentException: unsupported value type for value: [B@9437e689
at org.sablo.websocket.utils.JSONUtils$FullValueToJSONConverter.toJSONValue(JSONUtils.java:495) [sablo_2020.3.1.3563_LTS.jar:?]
at org.sablo.websocket.utils.JSONUtils$FullValueToJSONConverter.toJSONValue(JSONUtils.java:1) [sablo_2020.3.1.3563_LTS.jar:?]
at org.sablo.websocket.utils.JSONUtils.defaultToJSONValue(JSONUtils.java:268) [sablo_2020.3.1.3563_LTS.jar:?]
at org.sablo.websocket.utils.JSONUtils$FullValueToJSONConverter.toJSONValue(JSONUtils.java:489) [sablo_2020.3.1.3563_LTS.jar:?]
at org.sablo.websocket.utils.JSONUtils$FullValueToJSONConverter.toJSONValue(JSONUtils.java:1) [sablo_2020.3.1.3563_LTS.jar:?]
at org.sablo.websocket.utils.JSONUtils.writeData(JSONUtils.java:98) [sablo_2020.3.1.3563_LTS.jar:?]
at org.sablo.websocket.utils.JSONUtils.writeDataWithConversions(JSONUtils.java:86) [sablo_2020.3.1.3563_LTS.jar:?]
at org.sablo.websocket.utils.JSONUtils.writeDataWithConversions(JSONUtils.java:129) [sablo_2020.3.1.3563_LTS.jar:?]
at org.sablo.websocket.WebsocketEndpoint.sendResponse(WebsocketEndpoint.java:536) [sablo_2020.3.1.3563_LTS.jar:?]
at org.sablo.websocket.WebsocketEndpoint$5.run(WebsocketEndpoint.java:446) [sablo_2020.3.1.3563_LTS.jar:?]
at org.sablo.eventthread.Event$1.run(Event.java:102) [sablo_2020.3.1.3563_LTS.jar:?]
at org.sablo.websocket.CurrentWindow.runForWindow(CurrentWindow.java:76) [sablo_2020.3.1.3563_LTS.jar:?]
at org.sablo.eventthread.Event.execute(Event.java:92) [sablo_2020.3.1.3563_LTS.jar:?]
at org.sablo.eventthread.EventDispatcher.dispatch(EventDispatcher.java:125) [sablo_2020.3.1.3563_LTS.jar:?]
at org.sablo.eventthread.EventDispatcher.run(EventDispatcher.java:89) [sablo_2020.3.1.3563_LTS.jar:?]
at com.servoy.j2db.server.ngclient.eventthread.NGEventDispatcher.run(NGEventDispatcher.java:55) [servoy_ngclient_2020.3.1.3563_LTS.jar:?]
at java.lang.Thread.run(Unknown Source) [?:?]
we need to see a sample for this
that error is very weird, you seem to send a byte as data. That can never happen to websocket protocol doesnt’ support sending pure bytes over the line
reading it more closely
i am not sure that the exception is related to the form popup
But the ondatachange will neer be called
on data change will only be called when the user really changed through the component itself
and you change the field your self and that is just updated in in the ui. Then ondatachange is never fired.
I managed to add a callback function into formPopup, which is activated on the selection in the formPopup.
solution found at Servoy webinar https://www.youtube.com/watch?v=2-mqqXqM0C8
I managed to add a callback function into formPopup, which is activated on the selection in the formPopup.
solution found at Servoy webinar https://www.youtube.com/watch?v=2-mqqXqM0C8