Constellation, How to manage dependency one multiselect to another multiselect control?

My Team has a requirement about dependent on Multi-select control, the selection of control values A should be passed to Contol B. We have implemented this by force refresh on Control A once we select a few values and could pass to Control B as csv string. Here Control B values are based on Control A (some thing like Categories and SubCategories)

Now the problem is Once we select Values in Control B, there is a chance that we can go back and remove its parent value from Control A which can look like it’s a breaking functionality.

@Kondal

For Constellation , Multi-Select (Combo-box) is configured in a different way than Theme-Cosmos. There are 2 workarounds to manage the dependency without forcefully refreshing:

  1. Create the flow via a screen flow so that control A is in screen 1 and control B is in screen 2. That way we can create csv string on submit of screen 1 (flow action) and pass it as a parameter to screen 2. The advantage of this approach is that we can anytime go back and change the value of control A. Control B will be updated automatically as we move to screen 2.

  2. Creating a custom DX component which can help refresh the control B anytime control A changes on the same screen. On refresh we can run a rule to create csv list parameter on clipboard.