Dependent lookup fields in Cuba studio 7

Hello i would like to make a field’s lookup options dependent on the value selected from another lookup field.

For example i have 3 tables with the following attributes:

  1. Department: department,subunit(composition inverse attribute)
  2. Subunit: subunit
  3. Employee: department(lookupicker field), subunit(lookuppicker field)

In the above scenario subunit is a composition attribute in department.

In employee editor how do i make lookup options for subunit field show only subunits related to the department chosen from the department lookuppicker field?

You need something called the DataLoadCoordinator facet.

Documented here:

https://doc.cuba-platform.com/manual-7.1/gui_DataLoadCoordinator.html

3 Likes

Thanks this is exactly what i needed. The automatic configuration for the DataLoadCoordinator works perfectly.