Hi,
I think the answer has already been answered in this post. You can find here an example on how to do it.