Ciao, avevo fatto un esempio su un altro forum, vedi se e quello che vuoi ottenere: