I’m working with a custom looper provider and I’ve got my data coming in correctly. I’m working with a particular array of fields in my data, key=qa, which is an array of fields. This means depending on the data I could have 1 or 10 fields under the array:
Type: Cornerstone_Looper_Provider_Custom
Size: 1
Current Data:
array(1) {
[0]=>
array(30) {
["qa"]=>
array(3) {
["GVW"]=>
string(5) "2000"
["Rears"]=>
string(9) "DS404-355"
["Tars"]=>
string(25) "Kndfk394"
}
["type"]=>
string(4) "9100"
["name"]=>
string(9) "Part Name"
....
}
}
I’d like to set up a consumer that will parse the array and create text element fields for key and value in a grid. Is it possible to pull the key name from dynamic content to do this? How would I go about setting up the consumer in a grid to parse all/many of the fields only under the qa array?
grid > cell 1 > text element 1 - key name
> cell 2 > text element 2 - key value