DatasheetElement.addView (Method)
Creates a datasheet view for displaying the results for a custom element or a simple form.
Returns:
Void
Arguments:
Name | Type | Required | Description |
---|---|---|---|
pageID | RealPageID_NonBaseTemplate | Required | A page's ID. |
elementID | DatasheetElementInstanceID | Required | The datasheet element's control ID. |
viewName | PlainText_NonNull | Required | The name of the view for which CommonSpot saves information. |
formID | CustomElement_SimpleForm_ID_0 | Required | The ID of a custom element or simple form or 0,. |
selectedColumnList | PlainText_NonNull_List | Required | A comma-delimited list of the columns CommonSpot displays in a datasheet. |
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 view is the default. |
isPublic | Boolean | Optional. Defaults to '1'. | Boolean flag which when set to true indicates that the 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 |
---|---|
78002 | Another view with same name already exists for the specified datasheet element. |
78021 | Private views cannot be set as the default view. |
Notes:
None