TaxonomyTreeServicesGetCategoryAncestorIds Method
|
Retrieves the list of all ancestor Category Node Ids for a given Category Node
Namespace:
IngeniuxCMService
Assembly:
IngeniuxCMService (in IngeniuxCMService.dll) Version: 10.3.169
Syntax public XHRServiceResponseGeneric<string[][]> GetCategoryAncestorIds(
CategoryGetAncestorsPathInput data
)
Public Function GetCategoryAncestorIds (
data As CategoryGetAncestorsPathInput
) As XHRServiceResponseGeneric(Of String()())
public:
virtual XHRServiceResponseGeneric<array<array<String^>^>^>^ GetCategoryAncestorIds(
CategoryGetAncestorsPathInput^ data
) sealed
abstract GetCategoryAncestorIds :
data : CategoryGetAncestorsPathInput -> XHRServiceResponseGeneric<string[][]>
override GetCategoryAncestorIds :
data : CategoryGetAncestorsPathInput -> XHRServiceResponseGeneric<string[][]>
Parameters
- data
- Type: CategoryGetAncestorsPathInput
Object containing the current Category Node Id, and whether to return error status if Category doesn't exist.
Examples
Sample JSON input
{
"data": {
"searchIds": "CategoryNodes/34",
"alertMissingCategory": false
}
}
Remarks If "alertMissingCategory" is set to false, returns empty array if Category doesn't exist.
Return Value
Type:
XHRServiceResponseGenericStringArray of all ancestor Category Node Ids. Starting from the Root Category.
Examples
Sample JSON return
{
"code": 0,
"error": null,
"message": [["CategoryNodes\/3", "CategoryNodes\/4", "CategoryNodes\/34"]]
}
See Also