Hello,
I am searching for a solution that can help me to access my SubGrid data.
I am using this code but I don't know where's the problem.
function test(executionContext){
var formContext=executionContext.getFormContext();
var gridContext=formContext.getControl("subGrid1");
var gridOC=gridContext.getGrid();
var totalGridRows=gridOC.getTotalRecordCount();
var allRows=gridOC.getRows();
allRows.forEach(function(row,i){
var gridColumns=row.getData().getEntity().getAttribute();
gridColumns.forEach(function(column,j)
{
var atrName=column.getName();
var atrValue=column.getValue();
console.log(atrValue);
});
});
}
Thank you.