Csv file to listview

A very good way to learn App Inventor is to read the free Inventor's Manual here in the AI2 free online eBook http://www.appinventor.org/book2 ... the links are at the bottom of the Web page. The book 'teaches' users how to program with AI2 blocks.
There is a free programming course here http://www.appinventor.org/content/CourseInABox/Intro and the aia files for the projects in the book are here: http://www.appinventor.org/bookFiles
How to do a lot of basic things with App Inventor are described here: http://www.appinventor.org/content/howDoYou/eventHandling .

Also do the tutorials Our Tutorials! to learn the basics of App Inventor, then try something and follow the Top 5 Tips: How to learn App Inventor

Taifun


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun.

Thank you sir, but i need your help on this

please help me sir

see this answer by @TIMAI2

so what have you tried?

It would really help if you provided a screenshot of your relevant blocks, so we can see what you are trying to do, and where the problem may be.

To get an image of your blocks, right click in the Blocks Editor and select "Download Blocks as Image". You might want to use an image editor to crop etc. if required. Then post it here in the community.

Taifun


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun.

now check it and how to textboxes data replace already exist data in csv file with using id number

list.aia (13.9 KB)

please help me anyone

You have got yourself into a right muddle! You also are using multiple screens, probably not switching screens correctly, or passing data between them correctly. Let me have a look at your aia.

I have made quite a few changesā€¦

  • Removed unnecessary screens, everything runs on Screen 1 with ā€œvirtual arrangementsā€
  • Rather than make big long lists of blocks (toothcombs) I used the power of list manipulation to generate the listviews and make selections for editing
  • I used a pair of listviews as opposed to labels and textboxes for the edit screen, and a text notifier to actually make the change
  • I have assumed you want to save the data back out to the csv fileā€¦the original csv starts off as an asset - this is read only, so we have to save a version to the sdcard to work with it. I use the tinydb to test if the app was being run for the first time to call the csv from assets. If you want to run the app from the beginning again, drag out the tinydb ClearAll block and DoIt to it.
  • I removed the two unnecessary lines at the start of the csv, so you just have data.
BLOCKS

list_revised.aia (7.1 KB)

3 Likes

sir this is an awesome invention.particularly


this is very nice sir. thank you so much. if u donā€™t mind please accept me as student and give me a small small tasks,improve my knowledge.please give me reply. iā€™m waiting for your answer.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.