IBM
C2040-403 · Question #59
Consider the code sample below: <xforms:action ev:event="DOMActivate"> <xforms:setvalue ref="instance('formData')/firstName">Bob</xforms:setvalue> <xforms:setvalue…
The correct answer is A. These xforms:setvalue actions will fire in the order listed when the button is pressed. See the full explanation below for the reasoning.
Question
Consider the code sample below:
<xforms:action ev:event="DOMActivate"> <xforms:setvalue ref="instance('formData')/firstName">Bob</xforms:setvalue> <xforms:setvalue ref="instance('formData')/lastName">Smith</xforms:setvalue> </xforms:action> Which of the following statements about this code fragment is TRUE?
Options
- AThese xforms:setvalue actions will fire in the order listed when the button is pressed.
- BThe order in which these xforms:setvalue actions will fire when the button is pressed can not be
- CThe above syntax is incorrect, as every action needs a specifically declared event.
- DThe action is missing a "ref" attribute, and will therefore throw an error.
How the community answered
(26 responses)- A77% (20)
- B12% (3)
- C4% (1)
- D8% (2)
Community Discussion
No community discussion yet for this question.