Guest User

Untitled

a guest
Feb 21st, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 0 0
  1. <aura:attribute type="List" name="filterCriteriaList"/>
  2.  
  3. getOperator : function(component, event, helper){
  4. var fieldName = component.find("fieldSelect").get("v.value");
  5. var index = component.find("hiddenIndex").get("v.value");
  6. console.log(' >>>>> ' + JSON.stringify(component.get('v.filterCriteriaList')));
  7. var action = component.get("c.fetchOperators");
  8. action.setParams({ "index" : index, "fieldName" : fieldName, "filterCriteriaItemJson" : JSON.stringify(component.get('v.filterCriteriaList'))});
  9.  
  10. action.setCallback(this, function(response) {
  11.  
  12. @auraEnabled
  13. public static void fetchOperators(Integer currentIndex, String fieldName, String filterCriteriaItemJson){
  14. //System.debug('***filterCriteriaItemJson='+filterCriteriaItemJson);
  15. List<FilterCriteria> filterCriteriaItems = (List<FilterCriteria>)JSON.deserializeStrict(filterCriteriaItemJson,List<FilterCriteria>.class);
  16. for(FilterCriteria f : filterCriteriaItems){
  17. if (f.index == currentIndex && f.fieldName.equalsIgnoreCase(fieldName)){
  18. f.operatorsList = Utility.getOperator(f.mapFieldTypes.get(fieldName));
  19. }
  20. }
  21. }
  22.  
  23. FATAL_ERROR System.UnexpectedException: Salesforce System Error: 1803375914-142009 (577092351) (577092351)
  24. FATAL_ERROR Class.System.JSON.deserializeStrict: line 19, column 1
  25. FATAL_ERROR Class.PaginationFilterController.fetchOperators: line 61, column 1
Add Comment
Please, Sign In to add comment