Dim rs As ResumableSub = Dialog.ShowTemplate(SearchTemplate, "", "", "Abbruch")
SearchTemplate.SearchField.Text = "0815"
SearchTemplate.SearchField.Update
Wait For (rs) Complete (Result As Int)
I want the SearchTemplate to already show the pre-selected List (with entries with '0815' in this case).
I tried with and without SearchField.Update, I tried setting the SearchField.Text before and after Dialog.ShowTemplate... to no avail.
There is a Sleep(20) inside the code, to let the CLV be ready.
B4X:
Dim rs As Object = Dialog.ShowTemplate(SearchTemplate, "", "", "Abbruch")
Sleep(100)
SearchTemplate.SearchField.Text = "0815"
Wait For (rs) Complete (Result As Int)