Docstoc

Buttons - metalab

Document Sample
Buttons - metalab Powered By Docstoc
					             CMPB 325 MANAGEMENT INFORMATION SYSTEM

                 Lab 3 – Lotus Notes & Lotus Domino Designer R5



REMINDER:

Please use the same database that you have created in the previous labs.
MAKE SURE YOU UNDERSTAND EACH LAB’S OBJECTIVES.

In this lab, you will learn how to create the following: -

      Buttons
      Action Bar (Tool Bar)
      Actions
      Formula@Commands

Buttons

In lab 2, you have known how to create a button in a navigator. Well it is the same
process for creating a button in a form.
On the top menu, go to Create, under Hotspots choose Button. Edit the button the
same way as you edited your button in the navigator. You can also choose the action
that is going to be performed by the button when it is clicked. (Later in this lab)




Copyright Alan Cheah Kah Hoe & Lim Lian Tze 2002                                1
Action Bar & Action

Action Bar is what we know as the Toolbar Menu and action is the drop down
menu that is located on the toolbar.

Once you have created an action, the action bar will automatically appear. If there
are no actions, there is no purpose of an action bar. To create an action, go to Create,
choose Action. You will prompt with a window as shown below.




Enter the name of action as Save. (You can enter any name that is appropriate). The
name that you entered will appear in the action. You can choose the location of
the action whether it is left aligned or etc. Furthermore you can choose a graphical
icon that goes together with the action.

After that, you will notice that a new window will be appearing on the right side of
the window. This window contains all the actions that are going to appear in the
action bar. You can customize the action again by double clicking it. The same
window above will appear. You can also customize the action bar properties. Try it
out and observe the changes.

Preview the design in Lotus Notes and you will observe the following:




Copyright Alan Cheah Kah Hoe & Lim Lian Tze 2002                                     2
Formula@Commands

Prior to this, you may ask that you have know how to create buttons and actions but
how to make them work? Well this section will explain to you how to associate the
actions and buttons with the command actions.

There are 4 ways for a particular button, actions or function to perform a task in
Lotus Notes and Lotus Designer. They are: -

                               1.      Simple Actions
                               2.      Formula
                               3.      LotusScript
                               4.      JavaScript

These 4 ways will actually help you to create and customize a system that will
manipulate data and perform functions to meet the requirements of the system. For
Formula@Commands, you will observe that there is a small window on the left-
bottom of the screen where it contains object and reference. Click on reference,
there is a combo box, which contains 3 values:

                               1.      Database Fields
                               2.      Formula@Commands
                               3.      Formula@Functions




Copyright Alan Cheah Kah Hoe & Lim Lian Tze 2002                                3
Under Formula@Commands, you will see a list of commands there that can be used
to customize your actions and buttons

For example:

FilePageSetup                  - Format your page size and alignment
FilePrintSetup                 - Format your printing options
FilePrint                      - Print your documents that are in your form
FileSave                       - Save your document to a new document
FileExit                       - Exit the application
OpenView                       - Open an existing View
OpenPage                       - Open an existing Page
OpenNavigator                  - Open an existing Navigator

These are only some of the commands in the list. Try to explore more of the
commands and know each of their functionality.

Now you will have to try to link the Formula@Commands with the buttons and
actions. The exercise below will help you. (I will provide the answer later in the labs)




Copyright Alan Cheah Kah Hoe & Lim Lian Tze 2002                                     4
EXERCISE

Create 2 actions: FileSave and FileSaveNewVersion.
Try to find what is the difference between the two commands.
These 2 actions must be operational (working properly) by customize / choosing it
with the correct command from Formula@Commands.

IMPORTANT: (Do this first before attempting the exercise)

You need to change the Form Properties, right-click anywhere in the form. The
Form Properties window will appear and under Versions, Versioning choose new
versions become siblings and under Create Versions, choose Manual –File, New
Version.
Please refer to the figure below.




Please check the option ‘Automatically enable Edit Mode’.




Copyright Alan Cheah Kah Hoe & Lim Lian Tze 2002                              5

				
DOCUMENT INFO
Shared By:
Categories:
Tags:
Stats:
views:1
posted:7/6/2011
language:English
pages:5