@Davidnic, Can you please check whether the below thread discussion suits your requirement.
If not can you please be more specific to the requirement.
Thanks, ViSolve