showFormPopup

Forum to discuss the new web client version of Servoy.

showFormPopup

Postby nic » Thu Aug 27, 2020 2:15 pm

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?
nic
 
Posts: 21
Joined: Fri Nov 16, 2018 10:54 am

Re: showFormPopup

Postby nic » Thu Aug 27, 2020 2:47 pm

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) [?:?]
nic
 
Posts: 21
Joined: Fri Nov 16, 2018 10:54 am

Re: showFormPopup

Postby jcompagner » Thu Aug 27, 2020 3:15 pm

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
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: showFormPopup

Postby jcompagner » Thu Aug 27, 2020 3:17 pm

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.
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: showFormPopup

Postby nic » Mon Aug 31, 2020 8:27 am

Is there any method I can use after showFormPopup? I need to act when showFormPopup has ended.
nic
 
Posts: 21
Joined: Fri Nov 16, 2018 10:54 am

Re: showFormPopup

Postby nic » Mon Aug 31, 2020 11:19 am

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
nic
 
Posts: 21
Joined: Fri Nov 16, 2018 10:54 am

Re: showFormPopup

Postby nic » Mon Aug 31, 2020 11:19 am

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
nic
 
Posts: 21
Joined: Fri Nov 16, 2018 10:54 am


Return to Servoy NGClient

Who is online

Users browsing this forum: No registered users and 4 guests

cron