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
Edit
Action into screen controller that is responsible for a screen withTreeTable
and set to it asetWindowParamsSupplier
that will obtain the selected item in Table and pass it to params. (docs); - Inject the previous param into your edit screen via
@WindowParam
annotation (docs); - Override the
initNewItem
method in edit screen controller and set a value from params to a new item (docs).
Regards,
Daniil.