[codenameone-discussions] Re: Problems with a webservice and population in Json

2021-06-01 Thread rdvg...@gmail.com
Hi, In with a JSON validator on the internet I put the URL that I am using: http://3.12.118.139:8091/scriptcase/app/tempus/blank_ws_autenticar/blank_ws_autenticar.php?usuario=demo1&contrasena=123 I was able to verify that the ws is working well as the validation resulted in: [ { "usuario_id":"17

[codenameone-discussions] Re: Problems with a webservice and population in Json

2021-06-01 Thread rdvg...@gmail.com
Hi, Return error in List entries = (List)responseMap.get("data"); java.lang.ClassCastException: class java.util.ArrayList cannot be cast to class com.codename1.ui.List (java.util.ArrayList is in module java.base of loader 'bootstrap'; com.codename1.ui.List is in unnamed module of loader com.co

[codenameone-discussions] Re: Problems with a webservice and population in Json

2021-06-01 Thread Shai Almog
Hi, It's a bit hard to read in this way but it looks like the server returns a list of users. So you would need something like this: Map responseMap = value.getResponseData(); List entries = (List)responseMap.get("data"); usr.getPropertyIndex().populateFromMap((Map)entries.get(0)); On Tuesday, J