reference selector

I have a scenario in which i have two entities, Asset and Box. Box can have multiple assets. Now i want to show a boxnumber which is open while creating asset. i am using reference selector to do that but it gives me list of all boxes, i want only one box which is open. can anyone help?
2 answers


in the Settings of the Reference Selector, there is a tab ‘Selectable objects’. You could add a XPath constrint there, as for example 

[not(isClosed)]   which will provide you a list of the open boxes.

Hope that helps!  


Can you provide some more details about the context in which your reference selector is? Because of the *-1 association Asset_Box ist should always only show one box but if it’s not restricted, all boxes should be selectable. To me it sounds like what you need.