(community) Grid Store Binder, beanshell
Confluence User - 16 Jun, 2016
I have tried to implement something very similar to Load and Store Form Grid Data (found in Form How-To's). In that example, immediately following the includes, a function is declared:
public FormRowSet getGridRows() { return rows ; // this will return the grid rows}Following that, the implementation
public saveGridRows(FormRowSet rows) {...
}and finally
FormRowSet rows = getGridRows(); // getting the grid rowssaveGridRows(rows); // processing & storing the grid rowsWhen I implement this, an error in the getGridRows() function occurs because rows is untyped. Efforts to work around this have ended in errors about rows being undefined.
I have also looked at FormUtils for a way to get the grid element, perhaps through FormDao. But the more I look, the worse this approach looks.
I am wondering if anyone has gotten this to work.
Thanks for reading.
forms