Try OpenEdge Now
skip to main content
Basic Database Tools
Schema Menu Reference : Field Editor option : View As
 

View As

Choose View As from the Field Editor to define the View-As phrase for the type of field widget. When you choose this option, the View-As Phrase dialog box appears, as shown in the following figure:
Figure 32. View-As Phrase dialog box
The list of available widgets depends on the data type of the field. The following table lists which widgets you can use for each data type. The numeric data type refers to the decimal, integer, INT64, and date data types.
Table 22. View As widgets
Widget type
Data type
Character
Numeric
Logical
Combo-box
Yes
Yes
Yes
Editor
Yes
Fill-in
Yes
Yes
Yes
Radio-set
Yes
Yes
Yes
Selection-list
Yes
Text
Yes
Yes
Yes
When you select a widget type, the appropriate View-As phrase syntax for the field appears. Choose the Copy Syntax button to copy the syntax to and overwrite any existing text in the editor area of the dialog box. After you edit the View-As phrase, press GO to compile the code. If there are errors in your code, the Data Dictionary displays the code and lists the errors. If the code is syntactically correct, the Data Dictionary stores the value and returns you to the Field Editor. When you use this field in an application, it appears as the specified widget type.