APPLICATION DESIGN

Creating and inserting shared actions
Shared actions are stored in databases and can be found under the Shared Code heading in the Design pane. Once you create a shared action, any other view, folder, form, subform, or page in the database can access the shared action.

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.


4. To create a new shared action, click the New Shared Action button. (If you have shared action notes, make sure you first select the shared action note under which you want the shared action to appear.)
5. On the Action Info tab: 6. Click the Hide When tab to specify when to hide the action.

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.

10. Save the shared action.

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.

2. Click Shared Code in the Design pane.

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:

To delete a shared action note

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