listCaseTypes
Retrieve the list of all case types for the provided case model.
Parameters
Parameter | Type | Description |
---|---|---|
model | CaseManagementModel | The caseModel to be passed to the $scope object in a
selectedCaseModel object.
You must provide a caseModel and assign it to an object named selectedCaseModel on the scope and pass the scope to the service. This service requires: The response returns an array CaseManagementModel.CaseClassInfo objects. This array is assigned to an object named caseTypes on the scope. |
callback | Function | Callback function to handle success or failure results from the request. |
Sample Usage
$scope.selectedCaseModel={}; $scope.selectedCaseModel.caseModelID=$scope.obj.id; //accept id from user / assign it from a selected caseModel $scope.selectedCaseModel.appName=$scope.obj.appName; //accept appName from user / assign it from a selected caseModel $scope.selectedCaseModel.majorVersion=$scope.obj.version; //accept majorVersion from user / assign it from a selected caseModel //Actual Service call CaseManagementService.listCaseTypes($scope,{onSuccess: function() { console.log("Case Types of case Model "+$scope.selectedCaseModel.appName+" are : "+$scope.caseTypes); //Service call assigns caseTypes to a $scope.caseTypes object } });
Copyright © Cloud Software Group, Inc. All rights reserved.