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:
- Inject the
EditAction into screen controller that is responsible for a screen withTreeTableand set to it asetWindowParamsSupplierthat will obtain the selected item in Table and pass it to params. (docs); - Inject the previous param into your edit screen via
@WindowParamannotation (docs); - Override the
initNewItemmethod in edit screen controller and set a value from params to a new item (docs).
Regards,
Daniil.