Adrian Smith
New Member
Hi, I have been using maps, but it got messy, So I took a look and a custom type seemed to be my solution.
I can read an online JSON, and load the information into my custom type. I was expecting reading the data back to be simple! I have searched the forum for tutorials, even to get the data into a type was copied from a youtube video (ETP Objects & custom types here).
the type is simply
and currently has 39 items in it, if I log whilst adding the data I can see the data has gone into the type
I was hoping this was going to solve my sorting problem but I cant even read a field??
So how do I get the data back into usable form? eg
Imaginary code!
Where downloadableslist.app_name contains "123 app"
or
Where downloadableslist.app_description contains "a great app"
Help! please
I can read an online JSON, and load the information into my custom type. I was expecting reading the data back to be simple! I have searched the forum for tutorials, even to get the data into a type was copied from a youtube video (ETP Objects & custom types here).
the type is simply
B4X:
DownloadablesList.Add(CreateApp(quot.Get("app_name"),quot.Get("image_url"),quot.Get("app_url"),quot.Get("app_description"),quot.Get("app_id")))
and currently has 39 items in it, if I log whilst adding the data I can see the data has gone into the type
B4X:
Log(DownloadablesList.Get(DownloadablesList.Size-1))
I was hoping this was going to solve my sorting problem but I cant even read a field??
So how do I get the data back into usable form? eg
Imaginary code!
Where downloadableslist.app_name contains "123 app"
or
Where downloadableslist.app_description contains "a great app"
Help! please