DroidLyon Member Licensed User Longtime User Feb 9, 2018 #1 Hi all I'm trying to dynamically create a number of tabs based on content from a SQLLite database. These tabs are then populated with data into XUI customlistviews and where I attempt to lazy load as per Erels guide here Rather than hard code and use multiple designer created clvs and events (as you can see from commented out and generally disorganised code ..) I've used a single layout containing a single xui customlistview and then use the sender object to get the correct events. This appears to work. But as I'm still a noob is this OK or is there a better way to dynamically create the tabs and associated events using the XUI clv? I have attached latest project (B4a 7.80) [NB my end game is a generic template for any relational SQLLite CRUD projects containing all the efficiency techniques I've read about on forums - which I'll have several questions about at a later date as lots more work required on this, so no need for comment on these and all other obvious faults just yet ! ] Attachments BBCx-v9b.zip BBCx-v9b.zip 341 KB · Views: 652
Hi all I'm trying to dynamically create a number of tabs based on content from a SQLLite database. These tabs are then populated with data into XUI customlistviews and where I attempt to lazy load as per Erels guide here Rather than hard code and use multiple designer created clvs and events (as you can see from commented out and generally disorganised code ..) I've used a single layout containing a single xui customlistview and then use the sender object to get the correct events. This appears to work. But as I'm still a noob is this OK or is there a better way to dynamically create the tabs and associated events using the XUI clv? I have attached latest project (B4a 7.80) [NB my end game is a generic template for any relational SQLLite CRUD projects containing all the efficiency techniques I've read about on forums - which I'll have several questions about at a later date as lots more work required on this, so no need for comment on these and all other obvious faults just yet ! ]
Erel B4X founder Staff member Licensed User Longtime User Feb 11, 2018 #2 DroidLyon said: But as I'm still a noob is this OK or is there a better way to dynamically create the tabs and associated events using the XUI clv? Click to expand... It is a large project so it is difficult to answer your question. DroidLyon said: I've used a single layout containing a single xui customlistview and then use the sender object to get the correct events. This appears to work. Click to expand... This is a good approach. Upvote 0
DroidLyon said: But as I'm still a noob is this OK or is there a better way to dynamically create the tabs and associated events using the XUI clv? Click to expand... It is a large project so it is difficult to answer your question. DroidLyon said: I've used a single layout containing a single xui customlistview and then use the sender object to get the correct events. This appears to work. Click to expand... This is a good approach.
DroidLyon Member Licensed User Longtime User Feb 11, 2018 #3 Erel said: is a large project so it is difficult to answer your question. It Click to expand... Yes understand. More on this on another question soon .. Erel said: This is a good approach. Click to expand... Thanks Erel Upvote 0
Erel said: is a large project so it is difficult to answer your question. It Click to expand... Yes understand. More on this on another question soon .. Erel said: This is a good approach. Click to expand... Thanks Erel