I am still a newbie in Jmix, find it quite useful but I may have still have some basic issues. I have 2 scenarios which I cant solve easy and I think I went to a wrong approach.
How can 2 fields of a form interact, for example there are 3 fields a, b, c and c= a+b so as soon as the user give data for a and b in the form i wanted to calculate the value of c.
In a form i have 2 entitypicker. However the second entitypicker depends on the selection of the first entity. I tried to define a collection with an own loader (query with a paramater) but then I stuck where to set the value from the first entitypicker.
In a form i have 2 entitypicker. However the second entitypicker depends on the selection of the first entity. I tried to define a collection with an own loader (query with a paramater) but then I stuck where to set the value from the first entitypicker.
Look at facet dataLoadCoordinator in mamual mode. Often this is very usefull.
If the dataLoadCoordinator does not match, then again - listener of the ValueChangeEvent event for main EntityPicker. And in the event listener, change the query parameters to load the data into dependent EntityComboBox options container.