Welcome to LQ!
No one can provide any helpful response from the information you have posted.
The best way to get help is to reduce the problem to a simplest case which clearly demonstrates what you are trying to accomplish, and fails to work in the way expected. Very often you will solve the problem yourself while doing that, and the simple example will allow others to quickly understand the question and provide helpful suggestions.
Please review the
Site FAQ for guidance in asking well formed questions.