Listpicker after picking show content not working

103 views
Skip to first unread message

Jack Tribhuvan

unread,
Jul 29, 2016, 3:38:48 AM7/29/16
to MIT App Inventor Forum
Hi all,

I am very new to app inventor and not even a developer but app inventor is very easy to make apps so trying to make a song book app.

I have been stuck and have searched everywhere possible but not able to get solution, so I had to post a new topic.

The problem is that after clicking "A" listpicker the list of songs starting from "A" loads but after I choose a song from the list I am not able to show it on the second screen webviewer component. I have uploaded the song html page to media and trying to use tinydb component.

Tried many things but the screen two opens as blank. How do I link listpicker to tinydb to webviewer on second screen.


Thanks it would be a great help.


Jack  

Hossein Amerkashi

unread,
Jul 29, 2016, 6:47:58 AM7/29/16
to MIT App Inventor Forum
Please post screenshot of your relevant blocks to help us see what you are doing.

-Hossein.

Jack Tribhuvan

unread,
Jul 30, 2016, 1:23:16 AM7/30/16
to MIT App Inventor Forum
First thanks for giving time for me.

please find below the screenshot

This is screen 1


This is screen 2


Thanks again please help me where I am going wrong

Peter Mathijssen

unread,
Jul 30, 2016, 1:35:46 AM7/30/16
to MIT App Inventor Forum
I didn't look at everything but the first thing i noticed was dat you use the tag "Url" and "URL". For AI these are two different tags as far as i know.

Jack Tribhuvan

unread,
Jul 30, 2016, 2:10:28 AM7/30/16
to MIT App Inventor Forum
Hi Peter,

I have tried "Url" also instead of URL.


Even though it does not work


Jack

Jack Tribhuvan

unread,
Jul 30, 2016, 2:35:11 AM7/30/16
to MIT App Inventor Forum
Hi, 

Yes Peter I am sorry the difference of URL and Url had created the problem 

I changed all to URL and it is working, Thanks a lot I would have never notice this error.


Please I have two more Questions

1) Can I add 25 Listpickers with different lists same as above and I can have only 1 global list and 1 start url list.

2) I have nearly 700+ hymn songs do I will have to upload 700 html files is this OK or do I have another method.

Please suggest.

Thanks I am glad I posted here

Taifun

unread,
Jul 30, 2016, 8:34:16 AM7/30/16
to MIT App Inventor Forum
see the following tips and in your case especially #3 and #4

  1. switch screens correctly 
    The recommended method of switching screens in App Inventor

  2. follow these recommendations Using Images with App Inventor

  3. avoid redundancy
    probably it helps to read chapter 19 - 21 in Dave's book http://www.appinventor.org/book2 to get an idea how to do DRY programming with App Inventor https://en.wikipedia.org/wiki/Don%27t_repeat_yourself

  4. reuse your components, see also Building apps with many screens and https://groups.google.com/forum/#!msg/mitappinventortest/YBAfURWv-tY/Ivqx6XcmDgAJ

  5. How to overcome the App Inventor project limit of 10 MB
Taifun

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

Jack Tribhuvan

unread,
Aug 1, 2016, 3:25:40 AM8/1/16
to MIT App Inventor Forum
Thanks Taifun for the links I have read them now I am more familiar with list.

But should I add 700+ html files as each page has to shown individually.


Jack

Taifun

unread,
Aug 1, 2016, 10:06:18 AM8/1/16
to MIT App Inventor Forum
you can try that and in case you reach the limit, see here
Reply all
Reply to author
Forward
0 new messages