View As
- Last Updated: March 30, 2020
- 1 minute read
- OpenEdge
- Version 12.2
- Documentation
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:

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.
| 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.