Relation between two tabels

hi,

I have two component, tree and table in screen. How to do, that when I select item in tree then tabel was refresh and show result for the selected record?

Name column between datasource
tree (id)
tabel (itemid)

screen from my appliaction in attachment.

Przechwytywanie

Hi Joanna,

You can do it even declaratively using ds$ query parameters: see Query Parameters - CUBA Platform. Developer’s Manual

Alternatively, use custom$ parameter (see the same section) in the table datasource, add an ItemChangeListener to the tree datasource and refresh the table datasource in the listener with the refresh(Map<String, Object> parameters) method.

1 Like

super., it worked!

thank you