As per the link - http://ift.tt/1LP9q9K
It's working now. Thank you very much.
Now i have another requirement based on this.
How to get the selected values in array and need to perform filtration, below the source code for each selected value i am checking manually but i need to check dynamically.
Please any one help to achieve this.
$scope.objectFilterSubmit = function () {
$scope.selectedObject = [];
if($scope.selected.length>1) {
$scope.IsActive = "";
$scope.selectedObjectDatas = $scope.getCustomObjectsBasedOnObjectTypeSelection($scope.IsActive);
clearPartialElement();
$scope.objectCreationPage();
} else {
angular.forEach($scope.selected, function(value,key){
if(angular.equals(value, "Show Activated")) {
$scope.IsActive = "true";
$scope.selectedObjectDatas = $scope.getCustomObjectsBasedOnObjectTypeSelection($scope.IsActive);
clearPartialElement();
$scope.objectCreationPage();
}
else if(angular.equals(value, "Show InActivated")) {
$scope.IsActive = "false";
$scope.selectedObjectDatas = $scope.getCustomObjectsBasedOnObjectTypeSelection($scope.IsActive);
clearPartialElement();
$scope.objectCreationPage();
}
else {
$scope.IsActive = "";
$scope.selectedObjectDatas = $scope.getCustomObjectsBasedOnObjectTypeSelection($scope.IsActive);
clearPartialElement();
$scope.objectCreationPage();
}
});
}
};
Aucun commentaire:
Enregistrer un commentaire