0

Have a wrapper and returning a wrapper which contains map. I have to display it in lightning component

    public Class CustomerCentricWrapper{

        @AuraEnabled public Map<String,String> customerCentricDataMap;       
        public CustomerCentricWrapper(Map<String,String> customerCentricDataMap,decimal assortment, decimal availability, decimal convenience,decimal Internationalization){
            this.customerCentricDataMap=customerCentricDataMap;


        }
    }
1
  • 3
    Please take a moment to read How to Ask, then edit your question to show what you've done so far in your Lightning markup and include a specific question the community can answer.
    – David Reed
    Jul 24 '19 at 11:15
1

It will be returned as javascript object (conventional) which will be like key-value pairs.

So you can use either map.key or map['key'] to get the specific value against key

1
  • What about if map contains any blank value with respect to the key and i need to show that too, when i iterate its omit the blank value.
    – Edward
    Jul 24 '19 at 9:35

Not the answer you're looking for? Browse other questions tagged or ask your own question.