Get Data From Cjuidialog

Hello,

I’ve have a project form with a link which opens a cjuidialog (with a selgridview inside) for selecting employees to assign to the project.

How can I get the ids of the selected rows from the selgridview in a cjuidialog? I would like to have a clistview in the project form with the employees selected. And more important - I need to save the employee ids in the project_has_employees table after the project form submission.

Could anyone help me on this?

Many thanks in advance

Anyone?