If you need to create a bunch of fields in a hurry, the fastest way is to use the Construct Multiple Fields dialog. This dialog can be accessed from the Field>Construct Multiple Fields menu item, and also from the File>New>New Database from Template command. Just open the dialog and type in the list of fields you want to create, then BAM – Panorama creates the fields for you.

If the field name is one of the hundred or so that Panorama knows about (all of these are), Panorama will automatically set up the width, type, and other attributes for you – your fields are ready to go. Otherwise you can customize the fields after they are created using the Field Properties Panel. You can also add tags to the field names to customize them as they are created, as described below on this page.

Note: The data sheet is normally limited to 150 visible columns at a time. If you need to use more than 150 fields, see Limiting the Maximum Number of Data Sheet Columns.

Inserting Multiple Fields

If the database already contains existing fields, you can use this dialog to insert multiple fields instead of adding them on the end. Simply check the Insert Before Current Field checkbox. (In this example, I am right-clicking on the field name to access the Field menu, instead of accessing it from the menu bar.)

Field Property Tags

Each field can be customized with one or more tags. Each tag begins with < and ends with >. Most tags are followed with a colon and a value, for example <width:25>. Here is an example that will construct six customized fields.

Remember, you don’t have to customize the fields with tags, you can do so after the fact with the Field Properties Panel. Also, Panorama tries to be smart about constructing fields, so for example it assumes that an Amount field is for money even if you don’t explicitly tell it.

Here is the database created by the template above.

There are over a dozen different tags available. You can type them in manually, but there is also a pop-up menu to assist. Simply click on the tag icon in the upper left, then choose the tag you want and it will be inserted into the current spot.

Field Type Tags

There are five tags for setting the field type: <text>, <integer>, <float>, <money> and <date>.

The <text> tag is almost always unneccessary, because Panorama defaults to this type for most field names.

The <integer> tag specifies that this should be a numeric field containing integers (see Numeric Data). This tag can optionally include an output pattern, for example <integer:#°> for a temperature field (see Numeric Patterns). Note: Panorama will automatically construct the following field names as integers: Age, Check, Count, Days, Duration, Hours, Minutes, Months, Num, Number, Population, Qty, Quantity, Quarters, Score, Seconds, Years.

The <float> tag specifies that this should be a numeric field containing real numbers (see Numeric Data). This tag can optionally include an output pattern, for example <float:#.###e#> for a scientific value. Note: Panorama will automatically construct the following field names as floating point numbers: Angle, Average, Bearing, Depth, Deviation, Distance, Height, Latitude, Length, Longitude, Mass, Max, Maximum, Min, Minimum, Rate, TaxRate, Temp, Temperature, Variance, Weight, Width.

The <money> tag specifies that this should be a floating point numeric field formatted as numeric values (preceded by a currency symbol and with two significant digits after the decimal point). Note: Panorama will automatically construct the following field names as money fields: Amount, Balance, Cost, Credit, Debit, Money, Price, Shipping, SubTotal, Tax, Total, Value.

The <date> tag specifies that this should be a date field (see Dates). This tag can optionally include an output pattern, for example <date:Month dd, yyyy> (see Date Patterns). Note: Panorama will automatically construct the following field names as dates: Arrival, Birthday, Date, Departure, Due, Expires, Purchased, Sold.

Field Geometry Tags

There are two tags for adjusting the geometry of the field: <width:characters> and <align:left/center/right>.

The <width:characters> tag specifies the width of the field in the data sheet. This width is specified in characters, not an absolute dimension like points or inches. If you specify a width of 12, there will be approximately enough space to display 12 characters (some characters are wider than others, so this is not exact). The absolute width depends on the font size being used.

If you don’t include a <width> tag, the default width is 10 characters for text fields, 3 characters for integer fields, and 6 characters for date and floating point fields. Panorama also has a list of default widths for about a hundred common fields, for example a City field defaults to 12 characters while a State field defaults to 3 characters. Of course it’s easy to adjust the width later, so in most cases it may not be worth bothering with an explicit width tag.

The <align> tag specifies the alignment of the field. If the field being constructed is numeric (see above), the alignment is automatically set to right, so you rarely need to use this tag.

Data Editing Tags

These tags customize how the field behaves when being edited.

The <caps> tag controls automatic capitalization. The options are all (everything capitalized), word (first letter of each word is capitalized) and sentence (first letter of each sentence is capitalized). Note: Panorama will automatically set the capitilization option for the following common field names, though you can override with an explicit <caps> tag if necessary: Account, Address, Agency, Apartment, City, Company, Country, Department, First, Gender, Item, Last, Middle, Name, Office, Organization, Pay, Payee, PayTo, Position, PostalCode, Prefix, Province, Room, School, Spouse, State, Street, Suffix, Suite, Title, Zip.

The <clairvoyance> tag enables Panorama’s auto-complete Clairvoyance® feature (see Field Properties). There’s no value for this tag, just leave the tag off if you don’t want Clairvoyance enabled. Note: Panorama will automatically enable Clairvoyance for the following common field names: Account, Agency, City, Company, Country, Department, First, Gender, Item, Last, Middle, Name, Office, Organization, Pay, Payee, PayTo, Position, Prefix, School, Spouse, Suffix, Title.

The <tab> tag enables Panorama’s Space Bar Tab feature (see Field Properties), which allows the space bar to be used to tab to the next field. The value should start with 1 (pressing the space bar once is the same as pressing tab) or 2 (pressing the space bar twice is the same as pressing tab). Note: Panorama will automatically enable the Space Bar Tab feature (requiring two space bar actions) for the following common field names: Account, Address, Age, Agency, Amount, Apartment, Arrival, Balance, Birthday, Check, City, Company, Cost, Count, Country, Credit, Date, Days, Department, Departure, Due, Duration, Email, Expires, First, Gender, Hours, Item, Last, Middle, Minutes, Money, Months, Name, Num, Number, Office, Organization, Pay, Payee, PayTo, Population, Position, Prefix, Price, Province, Purchased, Qty, Quantity, Quarters, Room, School, Score, Seconds, Sold, State, Street, Suffix, Suite, Title, Years, Zip.

The <default:value> tag sets the default value for the field when a new record is created. For example, for a shipping field you might say <default:UPS Ground>.

The <formula:formula> tag sets up a formula that will calculate the value of this field when other fields change, for example <formula:Quantity*Price>. The <code:code> tag is used to define a program that will run when the field is modified. To learn more about these features, see Automatic Field Calculations and Automatic Field Code.

Repeating Line Item Fields

Use the <lineitem:count> and <endlineitem> tags to define one or more fields that should repeat with a numeric suffix. In this example, the four lines Qty, Item, Price and Amount will actually generate 24 fields – Qty1, Item1, Price1, Amount1, Qty2, Item2, Price2, Amount2, etc.

See Line Item Fields for more information on this feature.

Complete Database Templates

Click the star icon for a list of templates for constructing complete databases.

You can use the template as-is or modify it as necessary.


See Also


History

VersionStatusNotes
10.0NewNew in this version.