Modifying dialog field in Report dialog

I have two dialog fields in a Report dialog, dialogWOType and dialogWOId. The thing is, every time I selected a value for dialogWOType, dialogWOId will only load WOs with selected dialogWOType. How do I do that? Thanks before.