How to do two constrained by reference selectors?

I have 3 reference selectors that are built like the below excerpt from my domain model.  I want the user to be able to select a payment type which then would only show one provider type based on that selection (one payment type can only be associated with one vendor type), then based on the provider type it will only allow the user to select from a list of provider names.  I can constrain provider name perfectly fine using a constrain by path, but don't know how to constrain provider type to be based on PaymentType.  Does anyone have any suggestions on how to accomplish this?  The user actually doesn't need to select the ProviderType.  All I need it to do is populate automatically based on the payment type.
1 answers

Hi Cole,

I think if you change your association to a one to one between PaymentType and ProviderType that you will be able to accomplish what you want to do. This would require you to create an administration screen where you manage all payment types and make sure that a payment type has an association to a provider type. Once you do that, when your user selects a payment type, you can easily constrain the list of provider names through the associations between payment type and provider type. 


Edit: You can also keep the same structure that you have, but would need to create an administration screen that sets the association between PaymentType and ProviderType. If you do this, then a Provider Type can be associated to multiple Payment Types. If you go the route with a one to one association, then a Provider type can only be associated to one Payment Type. Just depends on your use case. 


Once you do that, just add a dataview that displays provider type over an association, and then in the dataview use a reference selector with a constraint to show Provider Name