Hello,
After hours of searching, I'm still no closer to a solution.
I have now managed that I can insert a previously defined view as item in several xcustomlistviews.
This item-view has two buttons and a label.
I would now like to click on the label according to branch in the code to display dependent on the selection data. I would like to load this data from a text file - but do not know in which format (are rather few data, database would probably be too large).
My biggest problem, however, is the determination of the clicked items and the two respective buttons.
in other words, I have only been able to determine the events from the view only from a listview so far, if for example I do the same from the second or third listview my code will not work or the app will be closed.
this is an example from erel:
Now the most important questions:
1. how do I have to insert the items so that they have an index as a payload, for example?
2. which do i determine the clicks on the 3 elements within the view?
3. how does this work out of nth - listviews?
Question on the edge
4. Is it possible to open an autocompletition text field by code / focus without the user has made an input to use it as a kind of spinner?
Many Thanks
PS:
I'm just trying to beat a very steep learning curve, but still I'm losing the urge to keep going
After hours of searching, I'm still no closer to a solution.
I have now managed that I can insert a previously defined view as item in several xcustomlistviews.
This item-view has two buttons and a label.
I would now like to click on the label according to branch in the code to display dependent on the selection data. I would like to load this data from a text file - but do not know in which format (are rather few data, database would probably be too large).
My biggest problem, however, is the determination of the clicked items and the two respective buttons.
in other words, I have only been able to determine the events from the view only from a listview so far, if for example I do the same from the second or third listview my code will not work or the app will be closed.
this is an example from erel:
B4X:
Dim index As Int = LV1.GetItemFromView (Sender)
Dim pnl As B4XView = LV1.GetPanel (index)
Dim lbl As B4XView = pnl.GetView (0)
Log ("Edit Clicked!")
Now the most important questions:
1. how do I have to insert the items so that they have an index as a payload, for example?
2. which do i determine the clicks on the 3 elements within the view?
3. how does this work out of nth - listviews?
Question on the edge
4. Is it possible to open an autocompletition text field by code / focus without the user has made an input to use it as a kind of spinner?
Many Thanks
PS:
I'm just trying to beat a very steep learning curve, but still I'm losing the urge to keep going