Skip to main content
replaced http://salesforce.stackexchange.com/ with https://salesforce.stackexchange.com/
Source Link

I can see 2 things:

I can see 2 things:

  • Your WrapperCriteria class has a Components attribute, whereas your JS Controller is using myObj.components (lower case). Be careful as JavaScript is case sensitive
  • This same Components attribute is a list of SelectOption which is not @AuraEnabled. You'll need to create your own SelectOption class as described here: @AuraEnabled Support for Apex Class Return Types?

I can see 2 things:

  • Your WrapperCriteria class has a Components attribute, whereas your JS Controller is using myObj.components (lower case). Be careful as JavaScript is case sensitive
  • This same Components attribute is a list of SelectOption which is not @AuraEnabled. You'll need to create your own SelectOption class as described here: @AuraEnabled Support for Apex Class Return Types?
Source Link
Fabien Taillon
  • 8.7k
  • 2
  • 40
  • 60

I can see 2 things:

  • Your WrapperCriteria class has a Components attribute, whereas your JS Controller is using myObj.components (lower case). Be careful as JavaScript is case sensitive
  • This same Components attribute is a list of SelectOption which is not @AuraEnabled. You'll need to create your own SelectOption class as described here: @AuraEnabled Support for Apex Class Return Types?