For example, in the picture below, I have already created the BAQ dataView grid and want to select the row in the first DataGrid (no. 1 in the picture) and then click the Button in No.2,
and I need the program to get the selected row in the first grid and insert it into the second DataGrid (No.3).
Could you guys suggest how to do that?
Use the row-add widget.
{
"NewViewCol1": "{SelectedView.ColName1}",
"NewViewCol2": "{SelectedView.ColName2}",
"NewViewCol3": "{SelectedView.ColName3}",
"NewViewCol4": "{SelectedView.ColName4}",
"NewViewCol5": "{SelectedView.ColName5}"
}
Or, if you’re looking to add multiple selections at once, you’ll need to work with the dataview-condition widget to iterate through.
- Set your grid model to be “Selectable”
- Add a new column to be the selector
- Create a no trigger add-row event
- Call that event on your dataview-condition where YourView.Selected is true
2 Likes
Thank you very much hmwillett.
1 Like
This is so intuitive, no wonder it’s the future.