Data from Datagrid
Is it possible to get out the data of a datagrid?
e.g. I want to write "test21" in a mail, but also "test11" if an entry is present.
-

By taking a look at the structure of the Data Grid control, it looks pretty easy in JavaScript. Here is a quick, untested example. Note that I reference a Text Box control named "EmailData" where I'm posting the results which you can use in the body of an email. If you need a Text Area for more than 255 characters or for styling/formatting (HTML), then change the controls and code appropriately.
DataGrid1 is the internal name of my data grid control.
Column1 is the name of the first column in my data grid control.eFormHelper.getFieldValue({fieldId:'DataGrid1'}, function(result) {
var body = result.data.DataGrid1[0].Column1;
for (var i = 1; i < result.data.DataGrid1.length; ++i)
{
body += '; ' + result.data.DataGrid1[i].Column1;
}
eFormHelper.setFieldValue({fieldId:'EmailData', value:body}, function(r){});
});And I just realized that this requires an event to trigger it, so it may not be useful other than attaching it to the OnBeforeSubmit event.

Instead, if you wanted to use a loop in the Process Model, you can extract the data from a given column one row at a time and concatenate it together in an Update Process Data activity within each loop:
SomeProcessVariable = String.Concat(${path/to/SomeProcessVariable}, "; ", ${path/to/row/looping/variable})
サインインしてコメントを残してください。


コメント
3件のコメント