2016년 11월 18일 금요일

retrieve data from previous screen


i have a screen in which i insert a lot of data


when i add tags, i can see them in another screen, than i can return on this screen to compile the rest

i have two question

1) is there any rapid way to retrieve the value that i insert when i go to the tag screen and back to this screen? or i have to save every textbox and label and call with a db?
2) the list of tag, is a part of the contact i store. Now, since i can go to the tags screen (so i can see the tags of the contact i'm storing), how can i manage it? there is no problem with the first contact cause there's only the tags of it in the tag "tags", when i store a second contact, it's tags are added to every other tag. Should i clear the tag "tags" when i save my contact so the new contact i store has an empty slot for its tag?

--
i know it's a bit odd as topic, but no one has some ideas?

-- 
Did you try not going to a different screen and making a "virtual screen" with a layout that is turned visible and invisible?
The way you formulated your question 2 is a little too complicated. Can you please be a little more clear?

-- 
This question sounds like the old Who's On First? comedy routine.

Could you please rephrase it using the term optional additional contact attribute name/value instead of tag,
which is easily confused with TinyDB tag ?

ABG

-- 


, when i store a second contact, it's tags are added to every other tag.


Blocks?

ABG 

-- 
great solution

other question is no more relevant with this solution.

however you're right, i often write when i'm making something else, or when i'm in train :-D

it's really easy.

I have a contact that's a list: name, surname etc and other variable that are lists, like "tags" (the tag of tinydb formed by a "tag name" and "tag value" joined with a ":").....
One contact has a lot of tags.
so, i add tags before i save a contact, and i can see the tags added til the moment in another screen
now, for this two values (tag name:tagvalue) that i call "tags", i use a tag in tinydb called with the same name, "tag"

since i open another screen, i need to get the tag "tags" with the tinydb....the problem is when i add the second contact, if i store the tags of the second contact they are added to the tags of the first contact, and so on.
Obviously every single contact as a list of "tags" that are only related to the contact itself.

i thought to delete the tag of tinydb "tags" every time i add a new contact, so every contact has its own tags

but with the solution of italo, i do not need it anymore

i hope it's clear now, this is a problem of language and tiredness

-- 

Not having seem your blocks, I would guess that your are not building up your TinyDB tags to include the JOIN of the parent object (Contact Name?) and entity(tag)  name?

ABG


-- 
i'm using another method with listpicker, the best solution of course. I didn't like it but i was dumb

can u make an example of what are u speaking of? "JOIN of the parent object (Contact Name?) and entity(tag)  name?"


-- 
Here's a sample set of tags and values showing how to make TinyDB do all the work of tables, rows and columns:

(Tag:Value)

Users/UserID/ABG/Name : Abraham Getzler
Users/UserID/ABG/email : AGetzler@myob.com
Users/UserID/ABG/NickName : Methuselah
Users/UserID/ABG/Age : 999

,,,
Users/UserID/Diego/Name : Diego Marino
Users/UserID/Diego/email : Diego.Marino.task@myob.com

Do you see how extensible this is?
ABG

-- 
i'm just a bit confused.....you mean:

the "users/userid/abg/name" how do you make it in the blocks?
i'm making to muuch stuff and this is confusing


-- 

the "users/userid/abg/name" how do you make it in the blocks?
i'm making to muuch stuff and this is confusing


Use the text JOIN block.

ABG

-- 
however the solution is this one

 Cattura.png
it works fine

-- 

댓글 없음:

댓글 쓰기