I need to add an unknown number of Users to a table. Thereby, the varified Email of the users and their job role from the user catalogue should be displayed.
Is it possible to integrate a people picker in a DataTable?
thanks for your solution. Unfortunately, this user list should be generically created within the form including the delete function. So, I guess, working via a second lookup-list would not provide this functionality.
Filling a data table step-by-step with the use of a people picker field that populates the table is not realizable?
Is an integration of a people picker field into a data table to be expected? There are already several use cases for such a functionality.
Button onclick function:
// add new record to the DataTable using columns' InternalNames:
var user = fd.field('user').value //get user details
var record = {User :user.DisplayText ,
Email : user.EntityData.Email,
Role : user.EntityData.Title
};
fd.control('DataTable1').value.push(record); //create new record
fd.field('user').value = null; // clear people picker
Remove datatable's toolbar by adding the following in CSS (Hide Add new record button)
.k-grid-toolbar
{
display:none!important;
}
'List or Library' supports People Picker field and other types of fields, so adding over column types in 'DataTable' control is not planned.
You can add/edit/delete records in the 'List or Library' the same way you did in 'DataTable' control. Also 'List or Library' supports inline editing.
The main difference is that the data is stored in a separate list, not in the item's field. The plus is that it is easily managed, comparing to DataTable.
Give it a try and let us know if you need help with the setup.