Dialog Multiple Selection Data

Hi Everyone,

I would like to ask you if anyone has built a kind of solution like this.

I have a project (model) which can be assigned to several employees.

What I would like to achieve is the following:

In the Project form:

one link next to "assignedto" field which open a employees dialog.

In the dialog:

a view (not check boxes, because can have a lot of employees) where I could select several employees (by an selectable column or by a container in the dialog).

When closing the dialog:

  • fill the "assignedto" field with the selected employees.

When opening the dialog:

  • mark as selected all the employees inside "assignedto" field.

I believe this is not an easy task.

Many thanks in advance.

After searching… and searching…, I could manage it by using the selgridview extension within a cjuidialog.

Now I have to find a way to get the selected employee ids, in order to fill the assingedto field (or a clistview, which would be much better). If someone could help me how can I get the ids of the selected rows from the selgridview in a cjuidialog it would be great. Cause I also need to save the employee ids in the project_has_employees table after the project form submission.

If I’ll find myself I’ll post it here.

Many thanks