I’m attempting to make a button on a dashboard to pre-format an email by grabbing the row selected in the grid and passing info from that row into a Mailto process.
However, I’m having trouble finding a way to grab the row selected.
I’m currently using C# for the scripts.
What I was thinking was to use
EpiDataView myData = (EpiDataView)(oTrans.EpiDataViews["V_LSG_Project_1View"]);
int rowNum = myData.SelectedIndex();
//Get Column information
Guid myGuid = myData.dataView[rowNum]["XXX"]
The key will be a column name from the dataview the grid is bound to. If you are in customization mode you can go to Tools -> Object Explorer -> Data Objects then you can see a list of all the column names for the dataView.