Saving into TinyDB, retrieve and show items in a ListView

Поділитися
Вставка
  • Опубліковано 21 січ 2025

КОМЕНТАРІ • 54

  • @mark8664
    @mark8664 8 років тому +1

    This and the next 4 videos are soooooooooo useful and powerful! I have been studying these videos on and off for over a month now and applying it to my really good app.

    • @ancii3182
      @ancii3182 3 роки тому

      Please where can i find the next four videos?

  • @Wallyman53
    @Wallyman53 5 років тому

    Great going Brandan! Brilliant tutorial!

    • @discospiff
      @discospiff  5 років тому

      Glad it helped! Thanks for the comment.

  • @AbhikShrestha
    @AbhikShrestha 6 років тому

    You have been very helpful Brandan. Nice tutorial. On point

    • @discospiff
      @discospiff  6 років тому

      Excellent, thanks for the positive feedback!

  • @PixiiBomb
    @PixiiBomb 8 років тому +13

    I know this video is a year old, but just a tip for anyone watching:
    When creating a Local Variable block, there is a MUTATOR button that allows you to add multiple local variable names in the block. So instead of have 3 separate Local Variable Blocks placed inside one another, you just need 1 Local Variable Block with 2 additional "mutations":
    So your block setup should look like:
    initialize local plantName to -
    + location to -
    + description to - {
    ...................stuff
    }
    Instead of:
    initalize local plantName to - {
    initialize local location to - {
    initialize local description to - {
    ...................stuff
    }
    }
    }

  • @dodogot5814
    @dodogot5814 4 роки тому

    excellent tutorial. Really glad i stumbled upon it

    • @discospiff
      @discospiff  4 роки тому +1

      I'm happy you found it as well! I enjoy hearing from people all around the world. Just curious, how did you find the video?

    • @dodogot5814
      @dodogot5814 4 роки тому

      @@discospiff Google search. Your video was on top of suggested videos for my querry. I was searching about MIT App Inventor and how it handles Listviews And TinyDB

  • @ancii3182
    @ancii3182 3 роки тому

    please where do find the next 4 videos. Links please

    • @discospiff
      @discospiff  3 роки тому

      The entire playlist is here: ua-cam.com/play/PL73qvSDlAVVgKwh1_ZmP84oYrQBJxSSnP.html
      It is a few years old at this point. :)
      Apologies for the delay in responding!

  • @rarckgtz
    @rarckgtz 6 років тому

    Hello I am new on this. But what if I don't want the user of the app to add the elemts in the data base I mean I wanna create a app when the user could pick from a list the fishes he has in his acuarium in order to define the rigth parameters of temperatura & pH. However I would like to have a defined list with the data.

  • @kapilacharya6029
    @kapilacharya6029 4 роки тому

    Can anyone please tell me how to delete selected items from the list added by using local variable .I got error while using following block from list
    remove list item... list
    …......................index

  • @yogeshkumarmallick8836
    @yogeshkumarmallick8836 6 років тому

    i need to store phone numbers in tinydb and later retrieve those as single elements. can you help??

  • @maruiscordier2042
    @maruiscordier2042 4 роки тому

    Thank you for the great video

  • @bbs9471
    @bbs9471 6 років тому +1

    Hello, one question regarding a database .
    Can you tell me what is the difference between the firebase and tinywebdb ?
    and for the tinywebdb, is it enough to store photos?

  • @Ly-qv7qd
    @Ly-qv7qd 7 років тому

    need some help...i made an app that saves some information about your pet(name,species,images,dates etc)
    how can i load those informations together so i can have a database for every pet i created?
    i can do it for the texts but how can i display images also?

  • @fabriciosouza408
    @fabriciosouza408 6 років тому

    very useful! Thanks for sharing it.

  • @nxjsjsjjdndjsjdjd7651
    @nxjsjsjjdndjsjdjd7651 7 років тому +1

    How to delete the item in listview?

  • @marcelsamson8327
    @marcelsamson8327 8 років тому

    Please help, i tried to add up elements containing in a list view and stored in a tinydb , but i failled

    • @discospiff
      @discospiff  8 років тому

      This doesn't have enough information to help solve your issue. Can say more about "I failed"? What went wrong? What symptoms do you see? What were you expecting to see that you didn't see?

    • @marcelsamson8327
      @marcelsamson8327 8 років тому

      I wanna increment a score and keep it in a TinyDb so i created two variable.The first one get a value, and for exemple if the value of this variable is 10 the second variable is 15. Next I put this value 15 in a list that will keep all the value the second variable will get. Then I created a tinydb that will keep this list. But when I want to retrieve the elements of the list and add them up, I get only the last value of the second variable

  • @Divine0311
    @Divine0311 7 років тому +1

    Great Job

  • @iangaysissindol3416
    @iangaysissindol3416 7 років тому +1

    hi sir, can you show me how to edit(change) the chosen value in listview?

  • @jadetcc3321
    @jadetcc3321 7 років тому +1

    Great tutorials. What is the name of the next video? I want to edit the list appearance like you suggested in the end of this video. Thank you

  • @sonaltambi6922
    @sonaltambi6922 6 років тому

    Hello,
    I watched your video and it helped me a lot.
    But I have to add a filter to it ( a = block.). How do I add it?
    I want to only show data on the listview only if the filter is true.
    Please Help.

  • @vladdy-mb6il
    @vladdy-mb6il 8 років тому

    Thanks for the video its great. My question is, when the list is created, how do you remove items from the list on at a time?

  • @nathannathan767
    @nathannathan767 7 років тому

    Can you do a tutorial on how to export the listview data to a text file? Thanks

  • @galefultonmusic
    @galefultonmusic 7 років тому

    Good morning Brandan,
    I was watcing your tutorial to use in a game I have created, but with the items joined, it will not work. I cannot find an answer to a questions I have, even in the forums. This is what I am looking to do:
    1. Store a score in a webDB with the tag HighScore - DONE!
    2. Store a player's initials in the same WebDB with the tag INI - DONE!
    3. When Screen initializes, Present the value of HighScore & Present the value of INI - NEED HELP WITH THIS PLEASE
    The reason I cannot join them together is because I need to compare the score retrieved with the user's current score to update the DB with the higher score and user's initials. (I don't need help with this part...I just need help presenting the two different values)
    I could use 2 webDBs but that seems silly.
    Any help would be greatly appreciated.

    • @discospiff
      @discospiff  7 років тому

      How many users will you have? Just one, or multiple? If multiple, you'll probably need more than just one INI tag, correct?
      So, options:
      1) If you have only one user, pull the two items out separately, by tag name.
      2) Or, pull all items out of TinyDB and into a list. Iterate over the list until you find what you want.
      This video may help: ua-cam.com/video/6hzvHf8Xp-Y/v-deo.html
      --
      3) As an alternative to TinyDB, use Firebase: ua-cam.com/video/QyOthB2n-SM/v-deo.html But, work with TinyDB first, as I have not found a good way to retrieve data from Firebase, once AppInventor puts it in.
      Hope this helps.
      -Brandan

  • @cesarc5930
    @cesarc5930 4 роки тому

    Thanks from Brasil

    • @discospiff
      @discospiff  4 роки тому

      De nada! Obrigado por assistir.

  • @katieener8171
    @katieener8171 9 років тому

    Hello! Can I store photos (taken from the Camera feature of App Inventor) and display it on the ListView? Or if not, can I not use the ListView to display the photos and the text? Thanks in advance and by the way, this is really helpful :)

    • @discospiff
      @discospiff  9 років тому

      +앛앚옷오안아매 You can, but you'll need to use a RecyclerView, which is not available in AppInventor. You'll need Android Studio. See this videos for more on recycler: ua-cam.com/video/ZEEYYvVwJGY/v-deo.html

  • @Ly-qv7qd
    @Ly-qv7qd 7 років тому

    ok, so i wanna make an app for a project where you can create a profile for your pet
    i have 1 screen where you choose between a) adding a pet or b) see saved pets
    3 screens where you give information about your pet (profile image,name,breed,weight,color, more images, diet, skill, medical record with dates and text etc)
    and 1 screen where you can see the saved pets
    how can i create the saved pets screen where you choose between the saved pets and then you can see all the information about them that i put??
    please help!

    • @discospiff
      @discospiff  7 років тому

      A quick piece of advice... cut down the number of screens. Simple is better. Challenge yourself: you can do this app in one screen, maybe two.

  • @mark8664
    @mark8664 3 роки тому

    Don't know, that was 4 years ago, I'm into Arduino programming now in C++.

    • @discospiff
      @discospiff  3 роки тому

      While I've done my fair share of Android development, I haven't done any with C++. What have you found the advantages/disadvantages of Android development in C++ are?

    • @mark8664
      @mark8664 3 роки тому

      @@discospiff Ah, but then I didn't say I was working on Android Development, I said I was working in Arduino programming, there's a difference. Although I'm not sure the Arduino programming is C++ or just C.

  • @galefultonmusic
    @galefultonmusic 7 років тому

    Actually I wanted it to overwrite the value if the high score was beat by the player. AND...I figured it out.
    1. Call both values by their tags at initialize screen
    2. If tag = "x" set Global Highscore to Get value from database
    If tag= "y" set Global Initials to Get value from database.
    3. Set the text of each label to the global equivalent.
    It works perfectly.
    The reason your idea would not work for me was because I needed to be able to compare the current score with that if the s ore in the web db. If the current score was greater then the web db would be updated with the higher score and the initials that the player put in. That is my "World High Score" solution.

    • @discospiff
      @discospiff  7 років тому

      Excellent... thanks for the update... and good luck!

  • @iangaysissindol3416
    @iangaysissindol3416 7 років тому +1

    thanks sir.

  • @shoppinguide
    @shoppinguide 8 років тому

    Thank you!

  • @sonaltambi6922
    @sonaltambi6922 6 років тому

    hello i