Instead of "figured it out", it is generally courteous practice to post the solution you discovered on your own. The point of the forum isn't just to get an answer, it's to store answers for others to reference.
Would you mind posting up your solution? Be sure to highlight the code part you are posting and click the # icon so that it presents as code to the rest of us.
==========
Then, if your need is solved, be sure to EDIT your original post (Go Advanced) and mark the PREFIX box [SOLVED]. Thanks.
Bookmarks