DatasheetElement.getViews (Method)

Returns zero or more structures, each containing information on that datasheet instance's view.

Returns:

DatasheetElement_GetViews_Result (query)

Each row of the returned query results has the following fields:

Field Name Type Description
Description PlainText_2000 The view's description.
isDefaultView Boolean Boolean flag which when set to true indicates that this view is the default.
isPublic Boolean Boolean flag which when set to true indicates that the view is public.
Name PlainText_NonNull_255 The datasheet's view.
Source DatasheetElementSource The datasheet's source.
SourceFormID CustomElement_SimpleForm_ID_0 The ID of the source form to which the datasheet is bound if the source is a custom element or a simple form. If it is neither, this value is 0.
SourceFormName PlainText The name of the custom element or simple form to which the datasheet is bound. This is an empty string if the datasheet is bound to a custom query's results.
ViewID PositiveInteger The view's ID.

Arguments:

Name Type Required Description
pageID RealPageID_NonBaseTemplate Required A page's ID.
elementID ControlID Required The datasheet element's control ID.
versionID VersionID_NEG1_NEG2 Optional. Defaults to '-1'. The version ID of the datasheet element. The default for this argument is the current version.

Context:

License Requirements Datasheet
Permission Requirements (none)
Deny Context None
Require Context None
Author Lock (not required)
Transaction Logging Transaction logging is disabled for this method
Customization This method may be customized at the site level

Error Codes:

Code Error Message
78000 The specified view does not exist in the specified datasheet element.

Notes:

None