Databases Reference
In-Depth Information
Before we look at the individual triggers, let's first look at a practical example. Follow
these steps to always select the year 2011 when opening the document:
1. Select Settings | Document Properties | Triggers from the menu.
2. Select On Open from the list of Document Event Triggers .
3. Click on Add Action(s) .
4. In the Actions dialog, click on Add .
5. In the Add Action popup, select Clear All in the Action list box and
click on OK .
6. In the Actions dialog, click on Add again.
7. In the Add Action popup, select Select in Field in the Action list box and
click on OK .
8. In the Field input box type Year .
9. In the Search String input box type 2011 .
10. Click on OK .
Notice how the On Open Document Event Trigger trigger has been
postfixed with <Has Action(s)> . This indicates that an action is associated
with the trigger.
11. Click on OK to close the Document Properties window.
12. In the Year list box, select 2009 and 2010 .
13. Select File | Save from the menu to save the document.
14. Select File | Close to close the document.
15. Reopen the document.
You will now notice that the document will open with the year 2011 selected,
even though we saved it with 2009 and 2010 selected. This happens because, upon
opening of the document, the OnOpen event is triggered. This event kicks off the
two actions we defined, first clearing all selections and then selecting the year 2011.
 
Search WWH ::




Custom Search