1Z0-151 · Question #48
You have written a When-Validate-Item trigger. You want this trigger to fire even if the form is in Enter-Query mode. What must you do to achieve this?
The correct answer is E. You cannot achieve this, because the When-Validate-Item trigger cannot be set to fire in Enter- Query mode. Coding Triggers for Enter-Query Mode Some triggers that fire when the form is in Normal mode (during data entry and saving) may also be fired in Enter-Query mode. You need to consider the trigger type and actions in these cases. "Fire in Enter-Query Mode"Property To create a…
Question
You have written a When-Validate-Item trigger. You want this trigger to fire even if the form is in Enter-Query mode. What must you do to achieve this?
Options
- AUse the following code at the start of the When Validate-Item trigger:
- BUse the following code at the start of the When Validate Item trigger:
- CSet the Fire in Enter Query Mode property of the When-Validate-Item trigger.
- DYou do not need to do anything, because the default for the When Validate Item trigger is to fire in
- EYou cannot achieve this, because the When-Validate-Item trigger cannot be set to fire in Enter- Query mode.
How the community answered
(26 responses)- B12% (3)
- C8% (2)
- D4% (1)
- E77% (20)
Explanation
Coding Triggers for Enter-Query Mode Some triggers that fire when the form is in Normal mode (during data entry and saving) may also be fired in Enter-Query mode. You need to consider the trigger type and actions in these cases. "Fire in Enter-Query Mode"Property To create a trigger that fires in Enter-Query mode, in its Property Palette set the "Fire in Enter- Query Mode"property to Yes. This property determines whether Forms fires a trigger if the associated event occurs in Enter-Query mode. Not all triggers can do this. See last line in note By default, the "Fire in Enter-Query Mode"property is set to Yes for triggers that accept this. Set it to No in the Property Palette if you want the trigger to fire only in Normal mode. The following triggers may fire in Enter-Query mode: * When-triggers, -When-Database-Record -When-Image-Activated -When-New-Block-Instance -When-New-Form-Instance -When-Create-Record -When-Remove-Record -When-Validate-Record -When-Validate-Item
Topics
Community Discussion
No community discussion yet for this question.