Workbench User Guide : Generating Fields from Predefined Templates : How You Can Add a Generated Field to a Frame : The smallint_field Field Template
 
Share this page          
The smallint_field Field Template
The smallint_field field template is used to create an entry field of the type smallint.
Creating a Smallint Field
You can create a smallint field using the smallint_field template in the Frame Editor.
To create a smallint field
1. On the Develop tab, in the Components portlet, open the frame in which you want to create the field from the field template.
2. Click Insert, Field From Field Template.
The Select a Field Template dialog appears.
3. Select the core application and the smallint_field template, and then click OK.
4. Position the field on the frame.
The field is created and displayed on the form.
How a SmallInt Field Works
When you run the frame, an entry field appears, containing a value of type smallint, with a default value of 0:
The field accepts up to 5 numeric characters and the plus (+) and minus (‑) signs. The field accepts only valid integers from -32768 to 32767.