Sounds like a cascading drop-down scenario if I'm getting this right.
does this help?
http://docs.composite.net/Console/CreatingFormControls/Creating-a-Complex-Form-Control
does this help?
http://docs.composite.net/Console/CreatingFormControls/Creating-a-Complex-Form-Control