Auto populate financial dimension from customer default dimension in segmented entry control.

Hey Guys,

I have used the segmented entry control on my custom form, which is working fine but now addition requirement I want to auto-populate segment values from customer default dimension.

scenario would be like this. records have customer numbers now used wants to enter the financial dimensions when he selects the Main Account in segmented entry control then remaining dimension on segmented entry control should be populated from the customer dimension. Any idea how to do this or any reference if someone already has done?