DatasheetElement.setViewState (Method)

Sets the state (either public or private) for a specified view.

Returns:

Void

Arguments:

Name Type Required Description
pageID RealPageID_NonBaseTemplate Required A page's ID.
elementID ControlID Required The datasheet element's control ID.
viewName PlainText_NonNull Required The name of the view for which CommonSpot sets information.
state PublicPrivateState Required The view's state: 'Public' or 'Private'.

Context:

License Requirements Datasheet
Permission Requirements element:Author
Deny Context None
Require Context AuthoringEnabled
Author Lock (not required)
Transaction Logging If transaction logging is enabled at the site level, calls to this method will be logged
Customization This method may be customized at the site level

Error Codes:

None

Notes:

None