I have a template in vision in which I have params like Machine Name and 7 other params like day1 data,day2 data and so on.
I would like to create a dataset param in template which holds the 7 params .
I have a template with fields: Label (Machine Name), Num Text field 1 (Data1) . . . Num Text field 7 (Data7)
I have template parameters for above fields as :
Hence i want to populate those 7fields value to PlanDataset.
I have main screen in which this template will be populated based on the selected process,
When i enter the details in above fields i want to save the data.
Currently i am trying in json. But i stuck at (Hence i want to populate those 7fields value to PlanDataset.)
You need a script attached to your Save button that will use system.dataset.toDataSet() to assemble your dates as header strings and the three rows of data. Or perhaps make a 4-column dataset (with t_stamp as the first column), a static list of four column names, and seven rows of data.
The script would then assign the freshly-created dataset to the template parameter.
There are numerous examples on using this function on the forum. And a few in the manual.
Another solution would be to create a suitable dataset when the template initializes, populated with the correct dates and the rest zeros. Use an editable table to display it. Use the onCellEdited function to update the table's dataset as the operator fills it in. Then the Save button would just copy the table dataset property to the template property.