How to setInitialValues in Edit Screen

Hi…
I am using the TreeTable with Hierarichal Datasource. In the edit screen, the parent node need to be automatically selected in the LookupPickerField from the selected tree structure (currently i have to manually select the parent node in the edit screen… )… Pls help me how to implement this…

Hello, @Narayanan

To implement your functionality you should do the following actions:

  1. Inject the Edit Action into screen controller that is responsible for a screen with TreeTable and set to it a setWindowParamsSupplier that will obtain the selected item in Table and pass it to params. (docs);
  2. Inject the previous param into your edit screen via @WindowParam annotation (docs);
  3. Override the initNewItem method in edit screen controller and set a value from params to a new item (docs).

Regards,
Daniil.