Is there a way to view tag of tags in the clouddb?
and am storing data using append value to list
Is there a way to view tag of tags in the clouddb?
and am storing data using append value to list
CloudDB is a glat database hence the answer is No.
So while you save values use make a list or dictionary or in json format, so it wil be easy to get subtags for each user
Try this method.
Tag: User1
Value: {"Photos": ["image1.jpg", "image2.png"], "Videos": ["video1.mp4"]}
(as a JSON string or dictionary)
Or
Tag: User1
Value: ["Photos", "Videos", "Documents"]
Everytime you call the concern user tag, from that take the necessary values
i see but am looking for another way to make a unique tag like user not user1,user2,user3 so on, so i can user that main tag for getting all values
to be
user
email1
user
email2
not
user1
email1
user2
email2
or another way like
clouddb1
tag all emails
values
email 1
email 2
so on
so when the admin get value
the tag should view all tags email 1 email 2 in showing all emails values in one place
something like that
You want to store all the details know but not only emails. If you want to store only email then your logic is ok and store emails under the tag all emails.
When Button_AddEmail.Click
Get Value from Tag "all emails"
When CloudDB1.GotValue
if tag = "all emails"
if is list? value
set emailList to value
else
set emailList to Make a list
add item to list emailList item TextBox_NewEmail.Text
Store Value tag "all emails" value emailList
When Button_ShowAllEmails.Click
Get Value from Tag "all emails"
When CloudDB1.GotValue
if tag = "all emails"
if is list? value
// Display the list of emails in a Label or ListPicker
set Label_Emails.Text to join "Emails: " value
else
set Label_Emails.Text to "No emails found."