Edit items in a dictionary

Hello to all.
I am very new to kodular.
I am trying to learn how to use dictionaries .
was looking at this.
Simple use of dictionary and TinyDB - Guides - Kodular Community

I am storing some key value pairs (Save Info Procedure). in a tinydb.

When i click on an item in the listveiw i want to pull out all the info for that ID and list the info back in there Textbox(txtName, txtMakeModel, txtJobHrs).

I want to edit each key value pair .

I have been trying lots of things but can not seem to figure out how to do this.

I was trying this.

and get not found in the txtname textbox
Any help is much appreciated.

How it will be found? You are saving every data with ID+number in tinydb but you are trying to call data with tag name of ID only .

Instead use one global variable with create empty list

For each items in the list call tinydb tags
Call tinydb tag get items
If not found create empty list

When tag value found
Add items to the list global variable
Items get value

Use this variable into list items

Thanks for your reply.
Can you show this with the block code to help me understand .

Test this

Tinydb.aia (5.4 KB)

Thanks for your help. I will look at this later after i get home from work.

Thanks GSR for your expertise.

I been using this and works great.

I now need to load up all the records from the dictionary.

getting this error.

Thanks for your help. I really appreciate it.

Welcome… see you have asked the query in kodular platform so i suggest you the method but you are showing mit app blocks it is different than K in some aspects… especially in tinydb and listview creation…

Yes i am useing mit.
I need the camara for my app.
There is a bug in kodular camara app that gives error and not work.

This is why im useing mlt right now.

Thanks for your help.

Then you should also ask there… the builders get more and more different and an answer in one community might not be the correct answer for the other community
also you are wasting other people’s time… you don’t want that, do you?
therefore next time please first choose the builder you like to use and then ask only in the corresponding community… thank you

I will close this thread
If there are still open questions, please ask in the App Inventor community and add a link to this thread


1 Like