nerdexam
IBM

LOT-410 · Question #78

A developer is working on an XPage and there is a client-side feature that needs to compute a value from a viewScope variable docStatus. Which Expression Language syntax will compute the value…

The correct answer is D. var myStatus = "#{javascript:viewScope.get('docStatus');}". See the full explanation below for the reasoning.

Question

A developer is working on an XPage and there is a client-side feature that needs to compute a value from a viewScope variable docStatus. Which Expression Language syntax will compute the value client-side?

Options

  • Avar myStatus = viewScope.get('docStatus');
  • Bvar myStatus = "{#viewScope.get('docStatus')}"
  • Cvar myStatus = "#{javascript:viewScope;docStatus;}"
  • Dvar myStatus = "#{javascript:viewScope.get('docStatus');}"

How the community answered

(43 responses)
  • A
    9% (4)
  • B
    5% (2)
  • C
    2% (1)
  • D
    84% (36)

Community Discussion

No community discussion yet for this question.

Full LOT-410 Practice