DatasheetElement.validateViewInfo (Method)

Validates a datasheet's view information to determine if the current user can create or edit this view. This method throws an error if the view information is not valid.

Returns:

Void

Arguments:

Name Type Required Description
pageID RealPageID_NonBaseTemplate Required A page's ID.
elementID ControlID Required The datasheet element's control ID.
viewID DatasheetViewID_0 Required A data sheet's view's ID or 0.
viewName PlainText_NonNull_255 Required The name of the view for which CommonSpot sets information.
viewDescription PlainText_2000 Optional. Defaults to an empty string. The view's description.

Context:

License Requirements Datasheet
Permission Requirements Contributor
Deny Context None
Require Context AuthoringEnabled
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
78002 Another view with same name already exists for the specified datasheet element.

Notes:

None