You use the numeric domain when you want to set up an attribute
with a fixed set of numeric values that the user chooses from. For
example, you want to limit the user to choosing at most 10 boxes for
an office move, so you present only the values 0-10.
Procedure
- Go to .
- Click Add New Domain link
at the bottom right of the screen, and select Add New Numeric
Domain. The Numeric Domain dialog
box is displayed.
- Click New Row to add values.
- Fill in the required fields, and click OK to
save your values and return to the Domains application
screen.
- Click Save.
- Next go to the Offerings application,
and select the Add/Modify Attribute action.
- Click New Row, and fill in the Attribute, Data
Type, Domain, and Organization fields. The data type is "NUMERIC", and the domain is the name of the
domain you just created.
- Place the cursor in the Offering field and type the ID
of the offering you want to add the attribute to, or press 'Enter'
to see the full list of offerings.
- Click the offering ID.
- Click the Change Status action. The Change Status dialog is displayed.
- Change the status to Planning, and select the Roll
New Status to Organizations? check box.
- Click OK.
- Click the Specifications tab, and select the attribute
you just created in by clicking the lookup icon in the Attribute field.
- Click Save to save the offering.
- Change the status of the offering to Active, and select
the Roll New Status to Organizations? check
box.
- Click OK.
- If your offering has a custom dialog, add the lookup="valuelist" parameter
to the application XML for your custom dialog. This must
be done by opening the dialog in Application Designer for
edit, adding a new attribute, and setting the attribute properties
for lookup.
For example: <textbox dataattribute="aln1"
id="id1" label="Attribute 1" lookup='VALUELIST'/>
Note: You
may also change the attribute line to use a combobox instead of a
textbox per the following example:
<combobox dataattribute="aln1"
id="id1" label="Attribute 1" lookup="VALUELIST">