Is it possible to get all selected items from a Listbox control as table?
For example, I have a web-api that is expecting the following object:
{
userIds: []
}
UserIds is an array/table. Than I've a ListBox which contains items of the following structure:
{
"value": "..."
"userId": "..."
}
Now I want to call a web service on a button click and pass all selected user. For example:
MyApi.SampleSendDocument({DocumentId: document.Id, Comment: SendCommentTextInput.Text, UserIds: UserListBox.SelectedItems.UserId}); Back()
But this is not working. I've tried a lot but could not figure out how to do this.
Thank you all!