I have a MASTER URL that returns a JSON.
The JSON that is returned looks like this:
[{"groupID":"8a57b4f9-78cb-40c9-92f4-cf47a92d7017","groupName":"DMB","groupDescription":"DMB-TEST-SITE","locationIDs":["2c889d34-f42d-47d9-a32c-a5c760894a29","b946c91f-6404-4d37-b30d-0fd3bc7fd6fd"]},{"groupID":"f2432887-1dfc-4ca5-94eb-dca6538a9913","groupName":"USA","groupDescription":"USATest","locationIDs":["d514caa1-c4b9-4c11-9306-f8bc39a94324","32e2d137-a38c-40e6-97b1-2a6c0c532624"]}]
[
{
"groupID": "8a57b4f9-78cb-40c9-92f4-cf47a92d7017",
"groupName": "DMB",
"groupDescription": "DMB-TEST-SITE",
"locationIDs": [
"2c889d34-f42d-47d9-a32c-a5c760894a29",
"b946c91f-6404-4d37-b30d-0fd3bc7fd6fd"
]
},
{
"groupID": "f2432887-1dfc-4ca5-94eb-dca6538a9913",
"groupName": "USA",
"groupDescription": "USATest",
"locationIDs": [
"d514caa1-c4b9-4c11-9306-f8bc39a94324",
"32e2d137-a38c-40e6-97b1-2a6c0c532624"
]
}
]
The Child URL looks something like this:
http://bingo.com/v1/location-groups/<locationGroupID>
http://bingo.com/v1/location-groups/8a57b4f9-78cb-40c9-92f4-cf47a92d7017
{
"locationGroupID": "8a57b4f9-78cb-40c9-92f4-cf47a92d7017",
"locations": [
{
"locationID": "2c889d34-f42d-47d9-a32c-a5c760894a29",
"locationName": "udp-qwew",
"locationHSI": 3
},
{
"locationID": "b946c91f-6404-4d37-b30d-0fd3bc7fd6fd",
"locationName": "usa-34744",
"locationHSI": 3
}
]
}
REquest:
I want to create Two Tables. A MasterTable and a Child Table.
The Master Table:
I want to just display
- groupID
- first 6 letters of groupID ( so a computed field)
- groupName
- groupDescriptions
In the Child Table,
- I want to call the Child URL with the parameter
- update the child table
On a master Table click event, I want to repopulate the content of the child Table with the locationID’s.
Currently I am using the INFINITY Plugin to get the JSON data.
ALSO… I eventually will be asking if I can poll these URL’s for changes.
Can I get some sugestions on how to do this?