Android Question Dynamic form built from code

John Horlock

Licensed User

I'm looking into using B4A ( currently using ionic / angular ) and i have one scenario which is a form is built from records in a database.

Is it possible to build the form from code .. e.g : loop through my sqlite database records and create the required form items... then be able to FULLY interact with them as normal??



Licensed User
You can add form items (aka views, eg Labels, Buttons and TextEdits, etc) to the blank activity called Main that is created when you start a new project. You could either keep track of these items yourself, or you can store info in their Tag field so that you know which database records/fields they are linked to and then use GetAllViewsRecursive to iterate through them all.