We cannot see your system or code or what happens. Only the info you provide.
A few hints:
1. When you ask for help, say what you want very specifically, and what you have done. Show the code, otherwise no-one can guess what is going on
2. "no luck" , "to no avail" indicate that you are unhappy but gives no other useful hints to ppl who cannot see your system. Be specific: what did happen when you did what you did?
So which function do you want to do what exactly where?
I am too lazy to DRAG such information out of posters, and I guess I am not alone.