Skip to content
Advertisement

Where does this grid variable come from?

I am looking at the ColumnGridReport example for DynamicReports.

I would like to use the classic code syntax instead of the DSL used in the example, meaning creating

JavaScript

and using report.addColumn(...) and so on, but I can’t figure out how to do that for the “columnGrid” part:

JavaScript

There is a variable grid … where is that even initialized?

Basically I would like to do report.columnGrid(how to initialize the inside part).

How can I transform this to the classic syntax?

Advertisement

Answer

There’s one static import in the file:

JavaScript

As you can see in this Javadoc documentation, grid is a static field in DynamicReports.

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement