APPLICATION DESIGN
To create a shared action
1. Open the database where you want to store the shared action.
2. Click Shared Code in the Design pane.
3. Click Actions. A list of shared actions appears with information about each shared action.
Note that if the database is set up to be a multilingual database, shared actions can be grouped under multiple sections called shared action notes. These shared action notes act like folders for different languages.
If you choose Menu separator, a menu separator appears and there is no action. You can also use menu separators between subactions of an action drop-down list.
7. Click the Advanced tab and specify how Notes workflow proceeds after the user activates the action.
8. In the Info List of the Programmer’s pane, click Objects and select the shared action you just created.
9. To program the shared action to run one of the client or one of the Web program code types, choose either Client or Web at the Run pull-down list.
To create shared action notes
A shared action note is found only in multilingual databases and acts as a folder for shared actions of one language. Each shared action note in a database contains the same actions. The difference between the shared action notes is the language and the region to which they are set.
To create shared action notes in a multilingual database:
1. At the Design tab of the Database Properties box, check "Multilingual database" so that the database is set as a multilingual database.
3. Click Actions. At least one collapsible shared action note appears.
4. Select the shared action note and choose Design - Design Properties. The Design Document Properties box appears.
5. At the Design tab, select the language and the corresponding region, if any, for all the actions contained in this shared action note (for example, Portuguese as the language and Brazil as the region).
6. For each new shared action note, set the language and region and make sure the note contains the same shared actions as are found in the other shared action notes in this database.
7. Right click each shared action to check its Action ID. The Shared Actions Properties box appears. At the Action Info tab for each shared action:
1. Select the shared action note.
2. Choose Edit - Delete.
Note When you delete a shared action note, you delete all the shared actions it contains.
To insert a shared action
1. Open the view, folder, form, subform, or page where you want to use the shared action.
2. Choose Create - Action - Insert Shared Action. The Insert Shared Action dialog box appears.
3. Select a shared action and click Insert for each shared action you want to insert. Each shared action is added to the Action pane and also to the Objects list for the design element.
4. Click Done when you are finished inserting shared actions.
5. In the Info List, you can click Objects and select an action, or select an action in the Action pane.
The next time you use the view, folder, form, subform, or page, the shared action is available.
To edit shared actions
To edit a shared action, open the database with the shared action. Click Shared Code, then Actions, and then double-click the shared action you want to edit. The Shared Action Properties box appears.
See Also