Creating and modifying view forms
Use BMC Remedy Developer Studio to create and modify view forms.
In this topic:
The following procedure explains how to create a view form to connect to a database table.
To create a view form
- If the database is remote, set it up as described in Setting up a remote database for view forms.
- In Developer Studio, choose File > New > View Form.
- In the New View Form wizard, select the server on which you want to create the view form, and click Next.
- Enter the name of an existing database table to be associated with the view form (see the following figure).
The formats for table names are as follows. Where two formats are given, the first is for a table in the local database and the second for a table in a remote database:- Oracle — TABLENAME or OWNER.TABLENAME
Oracle defaults to all capital letters for data in its system tables. If the table name uses lower case, make sure that the capitalization for the name is entered correctly. - Microsoft SQL Server — TABLENAME or LINKNAME.DATABASENAME.OWNER.TABLENAME
- Oracle — TABLENAME or OWNER.TABLENAME
- Click Load.
The Available Columns list box is populated with the database column names and default AR System field type mappings for the supported data types.
New View Form wizard, View Form Properties page - In the Key Field list box, choose a column to designate as the key field.
You must choose either a character column or an integer column. - In the Available Columns list, select the columns to appear on the AR System form, and use the arrow buttons to move them to the Selected Columns list.
This method maps the default AR System field type to the database data type. To use a different AR System field type for a database column, do not select the column from the list as described in this step. Instead, follow the steps in Mapping an alternative AR System field type below. - Click Finish.
- Use Developer Studio to make any additional changes to the new form, and then click File > Save.
Mapping an alternative AR System field type
If necessary, you can map an AR System field type that is different than the default type to a column in the external database.
To map an alternate field type to a database column in a view form
- Create the view form as described in To create a view form, but in step 7, do not select the column to which you want to map an alternate field type.
- After saving the form, add a field of the appropriate type to the form.
- In the field properties tab, expand the View Information properties.
Click the Columnproperty and type the database column name.
Modifying view forms
Use BMC Remedy Developer Studio to modify and delete fields from view forms.
To add a new field to a view form using the default field type
- Choose Form > Add Fields From externalDBName from the menu.
- Select the field to add from the Add Field dialog box, and click OK.
To delete a field from a view form
- Click the field and choose Edit > Delete.
Deleted fields return to the Available Columns list box. This action does not remove the column from the database table.
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*