• Vireak Ren
  • NEWBIE
  • 10 Points
  • Member since 2020

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 1
    Likes Given
  • 2
    Questions
  • 4
    Replies
event.getParam('row');
I get Row Name 
but now I want to Get Column Name 
How to do ?
How to get All Objects and Their Field? Please help me thank before<.^.>
event.getParam('row');
I get Row Name 
but now I want to Get Column Name 
How to do ?
How to get All Objects and Their Field? Please help me thank before<.^.>
Hi All,

I have an object(standar/custom) and need to identify all the related objects(lookup) of that object.
Let's say I have Account object and this object might be related as lookup to many other objects, how can I find all those objects ?

Thanks,
D
component:
<aura:component implements="force:appHostable" controller="FetchRegistrations" >
    <aura:attribute name="reg" type="Registration__c[]"/>
    <ui:button label="Get Registrations" press="{!c.myAction}"/>
    <aura:iteration var="r" items="{!v.reg}" >
    <p>{!r.name}</p>
    </aura:iteration>
</aura:component>


Controller:
({
   myAction : function(component, event, helper) {
        var action = component.get("c.getAllregistrations");
        action.setCallback(this, function(response){
            var name = response.getState();
            if (name === "SUCCESS") {
                component.set("v.reg", response.getReturnValue());
            }
        });
     $A.enqueueAction(action);
    }
})

Apex:
global with sharing class FetchRegistrations {
@auraEnabled
    public static List<Registration__c> getAllregistrations()
    {
     List<Registration__c> reg=new LIST<Registration__c>();  
        reg=[select id,name,Email__c from Registration__c];
        return reg;
    } 
    public Registration__c getSelectedregistrations(Id id)
    {    
      Registration__c  reg=[select id,name,Email__c from Registration__c where id=:id];
        return reg;
    } 
   
}
Hi all ,
I have 1 query .When the object's New button is overridden by lightning component  and the object has multiple record types the selection layout uses the classic layout, not the lightning layout in Salesforce 1 Mobile App .Image is given below
Classic Image


but when the New button is not override with any lightning component then the Record type selection page in lightning is 

Lightning layout

Can anyone know, If I override my standard New button with lightning so I need lightning type of layout for Record type Page for Mobile Salesforce 1 App.Is it possible????
Thanks in Advance.