Sorry, I'm not really following what you're trying to do here. Would it be possible to share more background on the task you're trying to achieve and more of a code sample of what you've tried so far? Many thanks.
---- If you've found one of my answers useful, please give "Kudos" or "Accept as Solution" as appropriate. Thanks!