2014년 12월 13일 토요일

Lists of lists


I have done much research on how to accomplish what i want and all examples are very vague

Want to have a list of items that have a sublist of items that may or may not have the same amount of items.

Item 1.        Item 2
  Item 1a.       Item 2a
  Item 1b.       Item 2b
  Item 1c
  Item 1d

I need specifics please, no reference to some vague examples.


-- 

An example of a List of Lists 

--
This article by Sajal explains Lists  List Blocks On App Inventor  

-- 

Here's a doc on filtering lists of lists, in case you haven't seen it yet ...

--
This is still vague to me. Llets say i have a listpicker that has fruit and veggies in it.  Pick fruit and another listpickeropens to display apples bannanas etc. Thinf is the fruits and veggies and particular kinds are dynamic, so user input.

--
Nevermind, i think ive got it figuered out. Thanks anyways. Dont actually have to use list of list. Can use separate lists and indexes with nested listpickers

--
Ok....new question.....based on

https://puravidaapps.com/snippets.php#2nestedlistpicker
nestedlistpicker.aia

As i add a new top level list item, i will also add a new csv at the saame index as the top level item.  The question is if i start to make it as a list, that way i can add, remove items then save to webdb as csv, for indexing reasons.  Basically when in app, as list, then in tinywebdb as csv in row, unless there is a way to edit csv like lists?

Sorry if confusing

--
Depends on how fancy you want to get.

If the app is only for you, you can drop the csv text into
a text box and trust yourself to edit it with the commas
before writing it back to storage.

If you want something more bulletproof,
you can convert the csv text into a list,
feed it into a ListView or List Picker and pop up a
notifier asking if the selection should be deleted or edited.
Have extra buttons to save the list back as a csv text,
or do it immediately.

--
Ok. Thx. The more bulletproof option is what i am looking for.  App is for me for now, with possible play store once working thoroughly.

댓글 없음:

댓글 쓰기