Thanks Katrice for your response. Actually I wanted to avoid select query any where so looking for automatic solution . But I think it is not possible as I have gone to many threads
Now I have implemented this solution as you said.
Thanks all for your response.