Hello,
I am trying to get the following JSON to display. I want an array called "items" to show up on the page. I tried Concat(ThisItem.items, ","), but it only displays " ,,,," on the page(there are 4 items.) So the concat works, but the items are missing.
Here is a sample of the JSON.
"body": {
"items": [
"Extra Large: 4+ months",
"Large: 3-4 months",
"Medium: 2-3 months",
"Small: less 1 month"
],
"type": "String",
"isSuggested": false
Notice that items is a nested array. This is what I need to display.
More Info:
My app is structured as:
BrosweScreen:
On app.onStart, a GET call to a Custom Connector. Returns all relevant results. This works fine.
onClick" The ID is set as a variable and a GET by ID request is issued. The return of this request is set to a variable, myMatchingList (This works fine.) Navigate to Detail Screen.
(Note that the info I want is in the Get by ID request. I have to make 2 calls to get this info. I can't combine them into one.)
The Get by ID returns a JSON response, which looks like:
"body": {
"items": [
"Extra Large: 4+ months",
"Large: 3-4 months",
"Medium: 2-3 months",
"Small: less 1 month"
],
"type": "String",
"isSuggested": false
},
So my info is in a nested array.
Detail Screen:
One result is displayed. It's the variable myChosenList. It's data type is record. This appears in a gallery.
(Please note that I can't get a viewform or data table to display the result. I am not sure what the correct way to display a Record data type is.)
onClick of the next arrow =>navigates to EditScreen.
EditScreen
Here is where the issue is.
On the edit screen I have a form. The form's Item is my variable, myChosenList, with a Data Type: Record. The form's DataSource is the call to the custom connector, also with a Data Type: Record.
When I add fields to the form, the items field throws an error.
The default for the items_DataCard is thisItem.items,which is locked. When I unlock it to edit the Default value to "Concat(ThisItem.items, ", ")", I get ",,,," in the card.
Can someone please help me?