Minimum some example or dummy code is required! Otherwise how can we help you in that regard.
We can't even guess, imagine or find mistake in your existing code without reading it.