Hey,
Any help is much appreciated.
Through the UI I am getting the user to choose from a dropdown field. Depending on the dropdown field value chosen, I want it to affect which data another dropdown field will show.
As can be seen in the code below I am looking to get the ‘roleSelection’ value into the ‘domain=“self.roles.name=roleSelection”’. Both elements are contained within the same domain and view.
The way shown does not work, any help or pointers into how to get this somewhat simply functionality to work would be much appreciated!
Dropdown 01:
(Domain)
<many-to-one name="roleSelection" ref="com.axelor.auth.db.Role" title="Role" />
(View)
<field name="roleSelection" form-view="role-form" grid-view="role-grid" colSpan="6" required="true" />
Dropdown 02:
(Domain)
<many-to-one name="manager" ref="com.axelor.auth.db.User" title="Manager"/>
(View)
<field name="manager" grid-view="user-grid" form-view="user-form" domain="self.roles.name=roleSelection" readonlyIf="!roleSelection"></field>