App Inventor - create and display a list of objects

Macin picture Macin · Nov 20, 2012 · Viewed 9.9k times · Source

I've searched over the net for this but can't find a solution so decided to post a question here.

I would like to display a list of objects in App Inventor.

Field of the class difining the object would be for example:

text content number estimatedLength number importance

How can I store a list of objects described above? I only found examples of separate lists for each field, but is it possible to store them as a list of lists? Does it make sense to store them as a list of lists?

Second question: I would like to display a list of objects, each row would contain an object, and columns would display the fields. Is it doable in App Inventor? I it is, how this can be done?

Answer

Taifun picture Taifun · Nov 20, 2012

How can I store a list of objects described above? I only found examples of separate lists for each field, but is it possible to store them as a list of lists?

yes, you can store them as list of lists, see here for examples about list of lists...

Does it make sense to store them as a list of lists?

yes of course

I would like to display a list of objects, each row would contain an object, and columns would display the fields. Is it doable in App Inventor?

you can use 2 lists: a list to store your objects and another list, which is a list of lists, to store the fields, see also this example ...