setWindowParamsSupplier for DataGrid

Want to replace table with DataGrid in browser screen where i have window parameter sent from browser screen to editor screen through the following event:

 salesQuotationsTableCreate.setWindowParamsSupplier(() ->
            ParamsMap.of("docname", docname));

When I tried it by replacing the dataGridCreate.setWindowParamsSupplier(), it seems not supported. Thanks for helping.

Hi,

Check that an action is injected with the proper type since setWindowParamsSupplier is a method of CreateAction, not DataGrid.

Regards,
Gleb

Hi Gleb
What would be the right approach for dataGridCteateAction like the example I have shared for table?

As I said before, the mentioned method relates to the CreateAction. Please, make sure that you injected CreateAction. I assume that you injected it as Action instead of CreateACtion.