DatasheetElement.updateViewInfo (Method)
Updates view details; for example, the view's name, is it the default, and so on.
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 | Required | The view's ID. |
viewName | PlainText_NonNull | Required | The view's name. |
viewDescription | PlainText_2000 | Optional. Defaults to an empty string. | The view's description. |
isDefaultView | Boolean | Optional. Defaults to '0'. | Boolean flag which when set to true indicates that this is the default datasheet view. |
isPublic | Boolean | Optional. Defaults to '1'. | Boolean flag which when set to true indicates that this view is public. |
Context:
License Requirements | Datasheet |
Permission Requirements | element:Author |
Deny Context | None |
Require Context | AuthoringEnabled |
Author Lock | 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:
Code | Error Message |
---|---|
78019 | The specified view is private; only a public view can become a default view. |
Notes:
None