Reference > Script steps reference > Windows script steps > View As
 
View As
Purpose 
Displays data in the specified format.
See also 
Format 
View As [View as Form/View as List/View as Table/Cycle]
Options 
View as Form tells FileMaker Pro to display records page by page in the format determined by the database designer.
View as List tells FileMaker Pro to display records as records in a list, so they can be browsed without clicking the backward and forward buttons in the status toolbar.
View as Table tells FileMaker Pro to display the records on screen in a grid, so that many fields and records may be viewed at one time in a format similar to a spreadsheet.
Cycle switches from the current view to the next view.
Compatibility 
 
Where the script step runs 
Supported 
FileMaker Pro 
Yes 
FileMaker Server 
Yes 
FileMaker Go 
Yes 
Custom Web Publishing 
Yes 
FileMaker WebDirect 
Partial 
Runtime solution 
Yes 
Originated in 
FileMaker Pro 6.0 or earlier
Description 
You can choose View as Form, View as List, View as Table, or you can choose Cycle to switch from the current format to the next format.
Notes 
FileMaker WebDirect does not support the View as Table option.
Example 1 
Imports records, sorts, and switches to Table View.
Import Records [With dialog: On]
Sort Records [Restore; With dialog: Off]
View As [View as Table]
Example 2 
Performs a find, then changes view depending on the number of records in the found set.
Enter Find Mode [Pause: On]
If [Get (FoundCount) = 1]
View As [View as Form]
Else If [Get ( FoundCount ) > 1]
View As [View as List]
End If
Related topics 
Script steps reference (alphabetical list)
Script steps reference (category list)