![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Director Tutorials
To learn how to use the Form Designer to:
Before you begin See About exteNd Director Tutorials.
Prerequisites You must complete the exercises in Creating a Database Pageflow.
Before you get started You'll be working with forms that you generated when you did the Creating a Database Pageflow. You'll be working with the following forms:
You can open these forms in the Form Designer by:
Navigating to ExpressPortal-resource.spf\data\form directory (make sure you are viewing the ExpressPortal.spf file using source layout), then selecting the form and:
or
To specify a data type for a bind element:
Navigate to the Property Inspector (in the lower right pane).
TIP: Make sure you select the Output tab of the Property Inspector and not the Output (label) tab.
Change the Format property as follows:
Control name |
Format property value |
---|---|
hiredate |
dd/MM/yyyy |
Navigate to the Property Inspector (in the lower right pane) and make the following changes to the Format property:
Control name |
Format property value |
---|---|
salary |
CURRENCY |
Open TutorialemployeesDetails.xhtml (located in the ExpressPortal project under ExpressPortal-resource.spf\data\form).
Click Edit class style rules. The Edit class styles dialog displays:
The Add new style dialog displays:
(Class name is a generated value, so the value in your dialog might be different.)
Accept the default class name and click OK.
Select the Text tab and supply these values:
Property |
Value |
---|---|
Font family |
Arial, Helvetica, sans-serif |
Font size |
12 pt |
Font weight |
bold |
You can see the changes on the form when you run it in Preview mode (clicking the XForms Preview tab in the Form Designer) or by running the form within the Pageflow.
To test the format and font changes:
Log in as a portal administrator or as a user, then click login or the Enter key.
The default page for the user you specified opens in your browser.
Click View to view a list of employee records for a department (for example, Product Development).
Choose an employee (for example, Duke Ellington) and click View.
To define an instance element as Required
In the Model tab, select the bind:nodeset=record/firstname element.
In the Add Model Item Properties dialog, select Required, then click OK.
In the Property Inspector, change the Required value to true().
Clear the First Name field and click Update.
The first time you do this, you are notified by a dialog that the data is invalid. When you clear the dialog, the field causing the problem is displayed in red. If you click Update again without correcting the problem, you'll see a second dialog indicating a submission error. These message actions are created by default when the forms are created. You can modify the messages in the Model tab of the Form Designer.
Copyright © 2004-2005 Novell, Inc. All rights reserved. Copyright © 1997, 1998, 1999, 2000, 2001, 2002, 2003 SilverStream Software, LLC. All rights reserved. more ...