Skip to main content
1-Visitor
October 25, 2019
Question

Pass an infotable as a mashup parameter to another mashup

  • October 25, 2019
  • 2 replies
  • 1475 views

Hi guys,

 

I am trying to send an infotable to another mashup using the collection widget.  I bind data from the selected row of a grid to this collection widget.  I then want send the selected row data as an infotable to my other mashup in the collection widget.  I can't figure out what the javescript needs to look like to be able to do this. For a parameter its quiet straight forward:

 

{"Parameter":"Parameter}

 

I tried the following for an infotable format but it does not seem to be working. If anyone can help.  I add this to the javascript in the "MashupPropertyBinding" property of the Collection Widget.

 

 {"InfoTable": {
"dataShape": {
"fieldDefinitions": {
"AssetName": {
"name": "AssetName",
"baseType": "STRING"
},
"StartTime": {
"name": "StartTime",
"baseType": "DATETIME"
},
"EndTime": {
"name": "EndTime",
"baseType": "DATETIME"
},
"ResponsibleParty": {
"name": "ResponsibleParty",
"baseType": "STRING"
},
"Status": {
"name": "Status",
"baseType": "STRING"
}
}
},
"rows": {
"AssetName": "AssetName",
"Status": "Status",
"StartTime": "StartTime",
"EndTime": "EndTime",
"ResponsibleParty": "ResponsibleParty"
}
}

}

2 replies

16-Pearl
January 20, 2020

Hello Andrea,

 

I wanted to reach out to find if you were able to find a resolution for this matter. If you were able to find a solution posting a reply here with the details would be greatly appreciated.This will help other community members who are facing the same or a similar issue.

16-Pearl
January 21, 2020

I think MashupPropertyBinding property must be provided with "A JSON string must be given that associates the infotable field names with mashup parameters so that the data gets passed through"

see if this helps

for ex- 

{"events":"eventsName","min_temp":"minTemp","max_temp":"maxTemp","precipitation":"precipitation","image":"image","wind":"wind","sourceType":"sourceType","date":"date","week":"week","id":"rowId"}