Methods
-
Appearition.Part.Category.AddCategoryToPart (request, requestOptions)Appearition.Part.PartCategoryViewModel static
Will link an existing Category to an existing Part
-
Name Type Description requestAppearition.Part.Category.AddCategoryToPartViewModel Contains the identifiers of the Part and Category
requestOptionsAppearition.RequestOptions Contains the various callback methods for this request
Returns:
Type Description Appearition.Part.PartCategoryViewModel The saved record with the system allocated Id. This is returned as part of the success callback function in the requestOptions param -
Appearition.Part.Category.AddNewCategoryToPart (request, requestOptions)Appearition.Part.PartCategoryViewModel static
Will add a new Category to an existing Part
-
Name Type Description requestAppearition.Part.Category.AddNewCategoryToPartViewModel Contains the details of the new Part being added
requestOptionsAppearition.RequestOptions Contains the various callback methods for this request
Returns:
Type Description Appearition.Part.PartCategoryViewModel The saved record with the system allocated Id. This is returned as part of the success callback function in the requestOptions param -
Will unlink the Category from the part record.
-
Name Type Description requestAppearition.Part.PartCategoryViewModel Contains the details of the part Category
requestOptionsAppearition.RequestOptions Contains the various callback methods for this request
-
Will update the details of an existing Category record. Nothing will be returned unless an error occurs.
-
Name Type Description requestAppearition.Part.PartCategoryViewModel Contains the details of the part Category
requestOptionsAppearition.RequestOptions Contains the various callback methods for this request
Type Definitions
-
This data structure is posted to the server when linking an existing Category to an existing part.
-
Properties:
Name Type Description PartIdnumber Uniquely identifies the part
CategoryIdnumber Uniquely identifies the Category
-
This data structure is posted to the server when adding a new Category to an existing part.
-
Properties:
Name Type Description PartIdnumber Uniquely identifies the part
CategoryNamestring The name of the new Category