Hi,
Is it possible to pass in a JSON structure to a template in Vision. I know this is possible in Perspective, they obviously differ in implementation but hopefully someone could provide a solution.
I know I can pass a dataset to a template which would get me most of the way, but essentially I need to somehow have a nested dataset, which I don’t think is possible.
The JSON structure I am looking to pass is essentially this:
{
"steps": [
{
"stepName": "Step 1",
"dryTime": 0,
"robots": [
{
"robotName": "Robot 1",
"robotProcess": 1
},
{
"robotName": "Robot 2",
"robotProcess": 2
}
],
"conveyors": [
{
"conveyorName": "Conveyor 1",
"enabled": true
},
{
"conveyorName": "Conveyor 2",
"enabled": false
}
]
}
]
}
Maybe it would be possible to pass it as a String an perform some scripting to parse the values I want, but that doesn’t seem the best way?
Any assistance is appreciated.
Edit: Additionally, I need to pass this data back to the parent view for processing. Just to add some extra context.