nerdexam
Microsoft

70-573 · Question #14

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?

The correct answer is C. var items = SP.ListOperation.Selection.getSelectedItems(). MNEMONIC RULE: "getSelectedItems" SP.ListOperation.Selection.getSelectedItems() Method

Developing for Client Applications

Question

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?

Options

  • ASPItem item = SPContext.Current.Item;
  • Bvar items = SP.ListOperation.Current.Item();
  • Cvar items = SP.ListOperation.Selection.getSelectedItems();
  • Dvar item = SPContext.Current.Item["Selected"];

How the community answered

(36 responses)
  • A
    17% (6)
  • B
    6% (2)
  • C
    75% (27)
  • D
    3% (1)

Explanation

MNEMONIC RULE: "getSelectedItems" SP.ListOperation.Selection.getSelectedItems() Method

Topics

#modal dialog#JavaScript client OM#SP.ListOperation#list selection

Community Discussion

No community discussion yet for this question.

Full 70-573 Practice