Hi friends,
I am in process of developing a SharePoint Add-in and I am stuck in JavaScript concept.
I am not too strong in JavaScript. Users can select their tasks in SharePoint. For e.g. they selected tasks with Task IDs10 and 9 as shown:
![]()
In my Add-in I intercept those selected IDs and need to make an array so that I can do further processing.
I make a function (MakeCAML) and select those list item IDs, each value task ID separately. For e.g. 10 will be one entry and 9 with second entry etc in the for each loop.
But in my function I am able to get listItemIDs as comma separate values like 10,9. But when I access the indexer, I always get listItemIDs[0] 1 as value. I need to make listItemIDs[0] as 10.
![]()
How could I achieve this?
Any help would be helpful.
I am in process of developing a SharePoint Add-in and I am stuck in JavaScript concept.
I am not too strong in JavaScript. Users can select their tasks in SharePoint. For e.g. they selected tasks with Task IDs10 and 9 as shown:
In my Add-in I intercept those selected IDs and need to make an array so that I can do further processing.
I make a function (MakeCAML) and select those list item IDs, each value task ID separately. For e.g. 10 will be one entry and 9 with second entry etc in the for each loop.
But in my function I am able to get listItemIDs as comma separate values like 10,9. But when I access the indexer, I always get listItemIDs[0] 1 as value. I need to make listItemIDs[0] as 10.
How could I achieve this?
Any help would be helpful.
Sandy