B4J Question AS_SelectionList - Object should first be initialized (B4XView)

T201016

Active Member
Licensed User
Longtime User
Steps:

1. I launch the project
2. I click the Click Me button
3. I fill in the second field with content, e.g.: st
- I have all elements highlighted (st)

4. Click on the "Stream mapping (Audio | Video)" item
- the full sublist of items opens

5. I add a few additional characters to "st", e.g. "oooo", so I have "stoooo"
- the list closes with the message "no items found"
- everything is going OK for now

6. When I remove the last four "o" characters from the field
- and click on the "Stream mapping (Audio | Video)" element

I get this above error: ...Object should first be initialized (B4XView).

But when I click on the same item again, the sublist items are displayed
no more error message. As if this B4Xview initialized itself. Weird?

What element should be re-initialized after the function? : AudioTrack_SelectionList1.ClearSearch

screen.png


java.lang.RuntimeException: java.lang.RuntimeException: Object should first be initialized (B4XView).
at anywheresoftware.b4a.keywords.Common$2$1.run(Common.java:1106)
at com.sun.javafx.application.PlatformImpl.lambda$null$5(PlatformImpl.java:295)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$6(PlatformImpl.java:294)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$null$4(WinApplication.java:185)
at java.lang.Thread.run(Thread.java:750)
Caused by: java.lang.RuntimeException: Object should first be initialized (B4XView).
at anywheresoftware.b4a.AbsObjectWrapper.getObject(AbsObjectWrapper.java:49)
at b4j.example.customlistview._getitemfromview(customlistview.java:415)
at b4j.example.as_selectionlist$ResumableSub_CloseSubMenu.resume(as_selectionlist.java:1238)
at anywheresoftware.b4a.keywords.Common$2$1.run(Common.java:1104)
... 7 more
 

Attachments

  • Example.zip
    4.1 KB · Views: 26

T201016

Active Member
Licensed User
Longtime User
Please try
Hello, @Alexander Stolte

You have created a very useful thing, we are very grateful to you for this and other libraries.
That's kind of why I'm watching their development. Thanks for the improved library, but
one more case the library does not fully support:

when I'm going to remove the letter "s" from the search edit box
using (clear button) the list is not displayed and the same error occurs
as in the previous version of the example.

It happens to me quite rarely, but it does happen.

Step1.png
the result of the action.png
 

Attachments

  • the result of the action.png
    the result of the action.png
    9.7 KB · Views: 16
Upvote 0
Top