Custom Delete on list item gives error : async f.retrieveByPath
0
Hi team, I have a list view in which the items are pulled from database. I am displaying item in the navigation view and have more operations under it. I have a custom delete function on the item. When i delete the item and refresh in client it gives error : Please help to resolve this issue. Error at h (http://localhost:8080/mxclientsystem/mxui/mxui.js?637662153905164597:73:38385) at async http://localhost:8080/mxclientsystem/mxui/mxui.js?637662153905164597:73:28336 at async a (http://localhost:8080/mxclientsystem/mxui/mxui.js?637662153905164597:73:36758) at async d (http://localhost:8080/mxclientsystem/mxui/mxui.js?637662153905164597:73:37881) at async f.retrieveByPath (http://localhost:8080/mxclientsystem/mxui/mxui.js?637662153905164597:73:21635) com.mendix.webui.WebUIException: Exception while retrieving data for a widget 'SQ_SQ_Overview.dataView1' on page 'SQ.SQ_Overview' at com.mendix.webui.actions.client.RetrieveAction.$anonfun$apply$3(RetrieveAction.scala:92) Caused by: com.mendix.webui.WebUIException: Invalid value of a query parameter at com.mendix.webui.actions.client.QueryUtil$.$anonfun$parseParameters$4(QueryUtil.scala:77) Caused by: com.mendix.thirdparty.org.json.JSONException: JSONObject["guid"] not a string. at com.mendix.thirdparty.org.json.JSONObject.getString(JSONObject.java:684) at com.mendix.webui.actions.client.QueryUtil$.$anonfun$parseParameters$5(QueryUtil.scala:42) at scala.util.Try$.apply(Try.scala:210)
asked
sandeep bhole
2 answers
1
Getting the object to delete as an input and deleting it..Actually it deletes the object but when the “Refresh In Client” is set to true it gives error
answered
sandeep bhole
1
It seems your client is expecting data which is already deleted. Why do you do an asynchronous call in this case? I imagine it’s good to do a synchronous call and refresh the list afterwards? Refresh is not always needed, dependent how your list is built.