Skip to first unread message

beavis

unread,
Jan 26, 2015, 7:26:36 PM1/26/15
to mitappinv...@googlegroups.com
Hello all, I'm fairly new to using ai2 and have never used ai classic.I generally prefer figuring things out for myself rather than running for help every time I'm stuck but I'm confused on this. I'm trying to create a list whose items are in fact names of other lists. What I thought would work doesn't and in all my googling and searching this forum I have only found a solution with block pics using ai classic. The procedure for doing what I want to do appears to be exactly what I am doing. Is it done different in ai2 or am I overlooking something? I've tried to include a screenshot of the blocks I am trying to use and the error message I am getting but the insert image button appears to do nothing so I included as attachment.

Thanks



lislist.jpg

Taifun

unread,
Jan 26, 2015, 7:34:59 PM1/26/15
to mitappinv...@googlegroups.com
you can do this during runtime, for example in the Screen.Initialize event, but this is not possible as definition
alternatively just move the 2 make a list blocks into the list of lists like this


Taifun

Trying to push the limits of App Inventor! Snippets and Tutorials from Pura Vida Apps by Taifun.                

beavis

unread,
Jan 26, 2015, 8:23:58 PM1/26/15
to mitappinv...@googlegroups.com
Thanks for the quick reply. I did notice that would work but I don't see how I could use it as neither of the make lists have a list name and no way to identify them. For example my main list could have 2 items in it, each item a list. The first list could be vowels and the second list consonants, how would I be able to select either list without a way to identify it? Am I not understanding how it is intended to work?

Enis

unread,
Jan 26, 2015, 8:32:41 PM1/26/15
to mitappinv...@googlegroups.com

Taifun

unread,
Jan 26, 2015, 8:48:35 PM1/26/15
to mitappinv...@googlegroups.com
The first list could be vowels and the second list consonants, how would I be able to select either list without a way to identify it? 
in this case, why would you put the 2 lists into a list of lists then?
as already said, you can do it in Screen.Initialize event
Taifun

beavis

unread,
Jan 26, 2015, 9:31:54 PM1/26/15
to mitappinv...@googlegroups.com
I'll keep tinkering in the Screen.Initialize event but so far I've only been able to produce a list of the ITEMS in the sublists to show up instead of a list of the NAMES of the sublists. Also I'll check out the link provided by enis.

beavis

unread,
Jan 26, 2015, 9:49:47 PM1/26/15
to mitappinv...@googlegroups.com
btw enis that link is good but all pretty basic list stuff. I was hoping for a way that when I click on the listpicker button it will display a list of all my lists (by name) that I can choose from. So far all I am able to display are the items in the lists. Instead of letting me pick the list "fruit" or "vegetables", I am shown all the individual list items in each list (bananas, apples, oranges and broccoli, corn, carrots). I don't want to see the contents of those lists, I just want to see what lists are available. Maybe I'm just not explaining this well.

beavis

unread,
Jan 26, 2015, 10:11:58 PM1/26/15
to mitappinv...@googlegroups.com
It looks like I'll have to have a separate list loaded with text items "fruit" and "vegetables" and than link whatever selection is made with the actual list with the corresponding name. Not a big deal I guess and as I look at my blocks I guess it doesn't really make sense anyway that it would display my variable name as that kind of defeats the purpose of having a variable stand for something. Thanks

Abraham Getzler

unread,
Jan 26, 2015, 11:09:52 PM1/26/15
to mitappinv...@googlegroups.com
Maybe this table filtering example will give you ideas ...

https://drive.google.com/open?id=12t4HLNRepCnbmcfycdF8wSHWht_D1P8hKJpTknVDChY&authuser=0

ABG


Deborah Grimm

unread,
Jan 27, 2015, 6:19:03 AM1/27/15
to mitappinv...@googlegroups.com
If anyone could post a screenie of how a list of a list of lists looks like when converted to csv row/table it'd be great.

Abraham Getzler

unread,
Jan 27, 2015, 9:27:55 AM1/27/15
to mitappinv...@googlegroups.com
Look at the sample data in my filtering example doc in
my prior post in this thread.
ABG

Taifun

unread,
Jan 27, 2015, 4:04:18 PM1/27/15
to mitappinv...@googlegroups.com
see also How to create a nested listpicker
@Deborah: please do not hijack other threads. Thank you.
Taifun
Reply all
Reply to author
Forward
0 new messages