Working with
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
|
1. |
Open a form, subform, page, view, or folder and select
Create
>
Action
>
Action
from the menu bar. This will create an untitled action button and automatically display the property window.
|
|
2. |
In the Action properties dialog, give the button a
|
|
3. |
Next, select the client (either
Notes
or
Web
) where the button will run and a programming language.
|
|
4. |
Finally, add the source code or use the simple action wizard to define the task that the button will perform.
|
Follow these instructions to embed a hotspot button in a form, subform, or page.
|
1. |
Open a form, subform, or page and click on the area where you want the button to be placed. Then select
Create > Hotspot > Button
from the menu bar. This will create an untitled action button and automatically display the property window.
|
|
2. |
In the properties dialog, give the button a label and close the window.
|
|
3. |
Next, select the client (either
Notes
or
Web
) where the button will run and a programming language.
|
|
4. |
Finally, add the source code or use the simple action wizard to define the task that the button will perform.
|
Follow these instructions to embed an action hotspot in a form, subform, or page.
|
1. |
Open a form, subform, or page and select the text to be converted into a hotspot.
|
|
2. |
Next, select
Create
>
Hotspot
>
Action
Hotspot
from the menu bar. This will create an untitled action button and automatically display the property window. Unlike an action button, there is no label or name for this type of button, so you can close the property window.
|
|
3. |
Next, select where the button will run and a programming language.
|
|
4. |
Finally, add the source code or use the simple action wizard to define the task that the button will perform. After the hotspot is created, the user can click on the text area, and the action will be performed.
|
Buttons can be created for just about any purpose. However, as a developer, you will come to find that some buttons are common to most Notes databases. The following are a few of the more commonly implemented action buttons.
|
Button |
Formula |
|---|---|
|
1. Save |
@Command([FileSave]) |
|
2. Close |
@Command([FileCloseWindow]) |
|
3. Edit |
@Command([EditDocument]) |
|
4. New Document |
@Command([Compose];
"FormName"
)
|
|
5. Attach File |
@Command([EditGotoField];
"FieldName"
);
@Command([EditInsertFileAttachment])
|
|
6. New Response |
@Command([Compose];
"FormName"
)
|
|
Note: Be sure to select "Response" or "Response to response" as the form type in the properties dialog. |
|
|
7. Help |
@Command([HelpUsingDatabase]) |
|
8. Today |
@Command([CalendarGoTo]; @Date(@Now)) |
|
9. Open a database |
Server:= "ServerName" ; DBName := "NotesName" ; @If (@Command([FileOpenDatabase]; Server : DBName; ""; ""; "1"); @Success; @Prompt([Ok]; "Warning."; "An error was encountered. Please contact the system administrator.")) |
|
10. Forward document |
@Command([MailForward]) |
|
Note: Items in
bold
should be
|
|

Mastering XPages: A Step-by-Step Guide to XPages Application Development and the XSP Language

XPages Extension Library: A Step-by-Step Guide to the Next Generation of XPages Components

Survival Guide for Lotus Notes and Domino Administrators

IBM Lotus Domino: Classic Web Application Development Techniques