Stylesheets.saveStyleSheetSet (Method)

Updates or creates a style sheet set.

Returns:

StyleSheetSetID (integer)

Arguments:

Name Type Required Description
pageID RealPageID Required A page's ID.
styleSheetSetID StyleSheetSetID_0 Required The ID of the style sheet set to which the style sheet is associated. If this value is 0, CommonSpot creates a new style sheet set.
name PlainText_NonNull_255 Required The style sheet set's name.
description PlainText Required The style sheet set's description.
userGroupList UserGroupIDList_EmptyString Optional. Defaults to an empty string. A comma-delimited list of user and group IDs or an empty string.
beginDate Date_EmptyString Optional. Defaults to an empty string. The earliest date that the style sheet set can be used. Enter the date using the following format: 'yyyy-mm-dd'. If this argument is an empty string, the set is immediately available. This is one of the style sheet set's scheduling properties.
endDate FutureDate_EmptyString Optional. Defaults to an empty string. The latest date that the style sheet set can be used. Enter the date using the following format: 'yyyy-mm-dd'. If this argument is an empty string, the set is always available. This is one of the style sheet set's scheduling properties.
pageCategoriesIDList PageCategoryIDList_EmptyString Optional. Defaults to an empty string. A comma-delimited list of page category IDs or an empty string, which indicates no categories are saved.
subSitesIDList SubsiteIDList_EmptyString Optional. Defaults to an empty string. A comma-delimited list of subsite IDs. If a page is located in one of the these subsites, the style sheet set can be used. If this is an empty string, the style sheet set is not associated with this page. This is one of the style sheet set's scheduling properties.
levelList LevelList_EmptyString Optional. Defaults to an empty string. A comma-delimited list of the levels at which a style sheet set is saved or an empty string. This is one of the style sheet set's scheduling properties.
beginTime Time_EmptyString Optional. Defaults to an empty string. The earliest time that the style sheet set can be used on the date specified in the 'beginDate' argument. Enter the time using the following format: 'hh:mm:ss' (24 hour). If this argument is an empty string, CommonSpot does not set a time.
endTime Time_EmptyString Optional. Defaults to an empty string. The time after which the style sheet set can no longer be used on the date specified in the 'endDate' argument. Enter the time using the following format: 'hh:mm:ss' (24 hour). If this argument is an empty string, CommonSpot does not set a time.
weekDays Weekdays_EmptyString Optional. Defaults to an empty string. A week day or an empty string.
browserTypesList BrowserTypes_EmptyString Optional. Defaults to an empty string. A comma-delimited list of browser types.
variableName PlainText Optional. Defaults to an empty string. If the name of this variable exists on a page, CommonSpot associates this style sheet set with the page. This is one of the style sheet set's scheduling properties.
variableValue PlainText Optional. Defaults to an empty string. If the comparison between this value and a variable on a page is true, CommonSpot associates this style sheet set with the page. (The comparison operator CommonSpot uses is set using the 'variableOperator' argument.) This is one of the style sheet set's scheduling properties.
variableOperator PlainText Optional. Defaults to an empty string. Sets the operator that CommonSpot uses when it compares the value of a variable on a page to the value within the 'variableValue' argument. This is one of the style sheet set's scheduling properties.

Context:

License Requirements None
Permission Requirements page:Style
Deny Context None
Require Context AuthoringEnabled
Author Lock If available

Error Codes:

Code Error Message
52005 The page ID and style sheet set ID do not correspond with each other.
52010 Both BeginDate and EndDate are required if either of them is specified.
52011 The begin date must be less than the end date.
52012 Both BeginTime and EndTime are required if either of them is specified.
52013 Both VariableName and VariableOperator are required if either of them is specified.
52014 Another style sheet set with the name '$1' already exists for the specified page.

Notes:

None