I'm using Informatix UltimateListView
https://www.b4x.com/android/forum/threads/lib-chargeable-ultimatelistview.22736/
Code :
ulv.SetChildren(ItemID, Children, "show")
ulv.ExpandChildren(ItemID)
If Children => ' (ArrayList) [100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110]'
It work properly.
If Children => '(ArrayList) [{FACCODE=A5, FPLACE=30}, {FACCODE=A5, FPLACE=30}, {FACCODE=A5, FPLACE=30kg}, {FACCODE=A5, FPLACE=30kg}, {FACCODE=A5, FPLACE=30kg}]'
on ulv.ExpandChildren(ItemID) its shows error:
java.lang.ClassCastException: anywheresoftware.b4a.objects.collections.Map$MyMap cannot be cast to java.lang.Long+
at flm.b4a.ultimatelistview.UltimateListViewWrapper.ExpandChildren(SourceFile:1689)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.shell.Shell.runVoidMethod(Shell.java:777)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:354)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:144)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:180)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:176)
at anywheresoftware.b4a.shell.DebugResumableSub$RemoteResumableSub.resume(DebugResumableSub.java:22)
at anywheresoftware.b4a.keywords.Common$13.run(Common.java:1705)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6762)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
Where I'm wrong?
or I'm using listview wrongly.