문제

How to get current element of list by javascript. The element clicked by three dots. Please help. From the Sharepoint list called "Stuff".

And after click on three dots i want to get a ID of element. Please help.

도움이 되었습니까?

해결책

You can use the SP.ListOperation.Selection.getSelectedItems() method to get the items ID.

The code would be as below:

var selectedItem = SP.ListOperation.Selection.getSelectedItems()[0].id;

enter image description here

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 sharepoint.stackexchange
scroll top