Saving into TinyDB, retrieve and show items in a ListView

แชร์
ฝัง
  • เผยแพร่เมื่อ 10 พ.ย. 2024

ความคิดเห็น • 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 2 ปีที่แล้ว

      Please where can i find the next four videos?

  • @PixiiBomb
    @PixiiBomb 7 ปีที่แล้ว +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
    }
    }
    }

  • @Wallyman53
    @Wallyman53 4 ปีที่แล้ว

    Great going Brandan! Brilliant tutorial!

    • @discospiff
      @discospiff  4 ปีที่แล้ว

      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!

  • @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

  • @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?

  • @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

  • @vladdy-mb6il
    @vladdy-mb6il 7 ปีที่แล้ว

    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?

  • @maruiscordier2042
    @maruiscordier2042 4 ปีที่แล้ว

    Thank you for the great video

    • @discospiff
      @discospiff  4 ปีที่แล้ว

      Glad it helped! Thanks.

  • @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.

  • @galefulton2342
    @galefulton2342 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!

  • @fabriciosouza408
    @fabriciosouza408 6 ปีที่แล้ว

    very useful! Thanks for sharing it.

  • @cesarc5930
    @cesarc5930 4 ปีที่แล้ว

    Thanks from Brasil

    • @discospiff
      @discospiff  4 ปีที่แล้ว

      De nada! Obrigado por assistir.

  • @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.

  • @Divine0311
    @Divine0311 6 ปีที่แล้ว +1

    Great Job

  • @Ly-qv7qd
    @Ly-qv7qd 6 ปีที่แล้ว

    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?

  • @yogeshkumarmallick8836
    @yogeshkumarmallick8836 6 ปีที่แล้ว

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

  • @iangaysissindol3416
    @iangaysissindol3416 7 ปีที่แล้ว +1

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

  • @nathannathan767
    @nathannathan767 6 ปีที่แล้ว

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

  • @katieener8171
    @katieener8171 8 ปีที่แล้ว

    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  8 ปีที่แล้ว

      +앛앚옷오안아매 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: th-cam.com/video/ZEEYYvVwJGY/w-d-xo.html

  • @nxjsjsjjdndjsjdjd7651
    @nxjsjsjjdndjsjdjd7651 7 ปีที่แล้ว +1

    How to delete the item in listview?

  • @ancii3182
    @ancii3182 2 ปีที่แล้ว

    please where do find the next 4 videos. Links please

    • @discospiff
      @discospiff  2 ปีที่แล้ว

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

  • @mark8664
    @mark8664 2 ปีที่แล้ว

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

    • @discospiff
      @discospiff  2 ปีที่แล้ว

      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 2 ปีที่แล้ว

      @@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.

  • @galefulton2342
    @galefulton2342 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: th-cam.com/video/6hzvHf8Xp-Y/w-d-xo.html
      --
      3) As an alternative to TinyDB, use Firebase: th-cam.com/video/QyOthB2n-SM/w-d-xo.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

  • @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

  • @shoppinguide
    @shoppinguide 8 ปีที่แล้ว

    Thank you!

  • @iangaysissindol3416
    @iangaysissindol3416 7 ปีที่แล้ว +1

    thanks sir.

  • @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

  • @Ly-qv7qd
    @Ly-qv7qd 6 ปีที่แล้ว

    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  6 ปีที่แล้ว

      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.

  • @sonaltambi6922
    @sonaltambi6922 6 ปีที่แล้ว

    hello i