showFormPopup

I am using a showFormPopup to change a variabele (frm_equipment_id) in a form :

plugins.window.showFormPopup(null, forms.cal_project_equipment_search, this, ‘frm_equipment_id’, 320, 640, 20, 10, true)

in the PopupForm I select the new equipment from the foundset and close the PopupForm with :

plugins.window.closeFormPopup(foundset.cal_equipment_id)

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.

can somebody help me?

I also get an error message :

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.

Is there any method I can use after showFormPopup? I need to act when showFormPopup has ended.

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