Ashok, did Sunny's final example app work for you? If so, please be sure to use the Accept as Solution button to give him credit for the help and to let others know that the solution worked... If you cannot click the button for some reason, just confirm it was what you needed, and I can mark things for you.
To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question. I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.