PrepAway - Latest Free Exam Questions & Answers

Which code segment should you use?

You create a modal dialog that displays a list of items. You need to capture the items selected by
a user. Which code segment should you use?

PrepAway - Latest Free Exam Questions & Answers

A.
var item = SPContext.Current.Item[“Selected”];

B.
var items = SP.ListOperation.Selection.getSelectedItems();

C.
var items = SP.ListOperation.Current.Item();

D.
SPItem item = SPContext.Current.Item;

Explanation:


Leave a Reply