• Zachary Cohan
  • NEWBIE
  • 5 Points
  • Member since 2019

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 3
    Replies
Hi I have a following lightning component code.
============My Component =============
<aura:component implements="forceCommunity:availableForAllPageTypes" access="global" controller="MyClass">
    <aura:handler name="init" value="{!this}" action="{!c.doInit}"/>
    <aura:attribute name="myMap" type="Map" />
</aura:component>
======================================

The map 'myMap' is loaded with some data through the controller.
Im not getting how will I access the value from the map "myMap" inside the component.

I dont want to iterate over the map
Just need to access a value from It something like myMap.get('Key1') inside the component;

=========MyComponentController==========
({
   doInit: function(component, event, helper) {      

       var action = component.get('c.getMap');
        
        action.setCallback(this,function(result){
            component.set('v.myMap',result.getReturnValue());
        });
        $A.enqueueAction(action);
     }
})
============================

==========MyClass=============
public with sharing class MyClass
{
      public static MAP<String,String> getMap()
      {
          Map<String,String> map = new Map<String,String>();
          map.put('key1','value1');
          map.put('key2','value2');
          return map;
      }
}
=================================

Hi

 

 Why the salesforce is not having "before undelete" event in triggers?

any one could you please explain?

  • April 30, 2013
  • Like
  • 0

Hi All,

 

I have created a Record Type for Opportunities. I have decided against using a Record Type so I now want to delete it.

I clicked Del and it lists the profiles that are using the RT. I have edited each profile, resetting the Record Type back to Master.

 

This works except for Standard Platform User. This profile does not have an option to set the RT for the Opportunities object. Opportunities is not listed at all for this profile.

 

I am now stuck with an unwanted RT. I can't delete it as SF says the profile is using it as the default.

 

Any ideas?

 

Thanks.

 

 

- Andy