• ajithM
  • NEWBIE
  • 28 Points
  • Member since 2015


  • Chatter
    Feed
  • 0
    Best Answers
  • 2
    Likes Received
  • 0
    Likes Given
  • 5
    Questions
  • 6
    Replies
I am trying to create a VF page on which custom components are displayed which are stored in Custom setting or metadata object. So that I can give controll to end user which component they want to see. 

To achieve this I choosed to work with apex:DynamicComponent, I tried different ways but the only i am succesfull when I user {!piechart} for component value. 

<apex:page controller="DashboardCTRL" sidebar="false" >


    
    <apex:repeat value="{!count}" var="i" >
      
        <apex:dynamicComponent componentValue="{!cmps[i]}"/>
      
    </apex:repeat>

*********** or ******************

  <apex:repeat value="{!cmps}" var="cmp" >
      
        <apex:dynamicComponent componentValue="{!cmp}"/>
      
    </apex:repeat>

*************************************

    
</apex:page>


********************* Controller ******************************************

public class DashboardCTRL {

   
    public  ApexPages.Component piechart { get; set; }
    public Map<String,ApexPages.Component> cmps{get;set;}
    
    public List<integer> count{get;set;}

    public DashboardCTRL() {
      cmps = new Map<String, ApexPages.Component>();
      count = new list<integer>();  
    /*    Type t = Type.forName('PieChartCtrl');
        
        System.debug('t is :'+ t);
        
        if(t != null) {
          IComponentProvider cprovider = (IComponentProvider)t.newInstance();
        
        
         nudebt__Dashboard_Settings__c usersettings = nudebt__Dashboard_Settings__c.getInstance(UserInfo.getUserId());
        
       Map<string,Schema.SObjectField> settingFields = Utility.getsObjectFieldMap('nudebt__Dashboard_Settings__c');
        
       List<ApexPages.Component> DashboardList = new List<ApexPages.Component>(); 
        
        integer i = 0; 
        for(string k: settingFields.keySet()){
            
            string fname = settingFields.get(k).getDescribe().getName();
            System.debug('fieldname '+ fname);
            if(fname.startsWith('nudebt__cmp')){
                
                System.debug('component name is'+ usersettings.get(fname));
                
                Type t1 = Type.forName((string)usersettings.get(fname));
        
                System.debug('t is :'+ t1);
        
                if(t1 != null) {
                  IComponentProvider cprovider = (IComponentProvider)t1.newInstance();
                   DashboardList.add(cprovider.provideComponent());
                    this.piechart = cprovider.provideComponent();
                   cmps.put(String.valueOf(i),this.piechart);
                    count.add(i);
                    i++;
                }
            }
        }
    }
    
 
   
}
  • January 15, 2016
  • Like
  • 0
Hi All, 

I am trying to create Object Home page similar to Salesforce lightning object home page. I am not able to use "force" components to achieve this because they are only supported in salesforce1 app but not in standalone apps. 

To create List view I am trying to make a REST API calls to salesforce to get listview information. But Lightning components are restrictive and not allowing to use UserInfo.sessionId to authenticate and there are several other restrictions. 

Do anyone of you recently developed any other solution to overcome this? Can I user other authentication methods like Oauth refresh token to access Salesforce data ?
  • December 11, 2015
  • Like
  • 0
Hi, 

I am trying to create a from dynamically from a field set, to do so I am using the apexcontroller method to create a json string for schema.FieldSetmember and using that to create a new component using $A.createComponent which is working for ui markups of type ui:inputText and ui:inputEmail etc... but not with force:inputField


Test.cmp

<aura:component controller="FormController">
    
    <aura:handler name="init" value="{!this}" action="{!c.doInit}" />
   <!-- <aura:attribute name="contact" type="Contact"   default="{ 'sobjectType': 'Contact'}"/> -->
    <form aura:id="form">
        
    
        {!v.body} 
        
    </form>

</aura:component>


TestController.js


    doInit : function(cmp,event) {
    
      //  helper.creatFormElements(cmp);
      //  
       var action = cmp.get("c.getFieldSet");
        
       action.setParams({
            
            "ObjectName": "Contact",
            "FieldSetName" : "New_Contact"
            
        });
        
        action.setCallback(this,function(results){
         
            var fields = JSON.parse(results.getReturnValue());
            
            console.log('label'+fields[0].isRequired);
            console.log('label'+fields[0].fieldLabel);
          
          

            $A.createComponents([
            ["aura:attribute",
            {
                "name":"contact", 
                "type":"Contact",
                "default":"{ 'sobjectType': 'Contact'}"
            }],
            ["ui:inputText",
            {
                "class":"form-control", 
                "aura:id":fields[0].fieldLabel+0,
                "value" : fields[0].fieldLabel
            }],
            ["force:inputField", /* if i replace this with ui:inputfield it works fine */
            {
                "class":"form-control", 
                "aura:id":fields[1].fieldLabel+1,
                "value" : "{!v.contact.lastName}"
            }]
            ],
            function(inputText){
                console.log(inputText);
                //Add the new button to the body array
                if (cmp.isValid()) {
                    console.log('cmp is valid');
                    var body = cmp.get("v.body");
                    body.push(inputText[0]);
                    body.push(inputText[1]);
                     body.push(inputText[2]);
                    cmp.set("v.body", body);
                }
            }
        );
            
        });
        
        $A.enqueueAction(action);
    },


Please let me know if there is a easy way to use FieldSets in Lightning components. 
  • November 23, 2015
  • Like
  • 2
Hi, 
I am trying to build a component int Aura lightning framework and I found out that there is a know issue with "force:inputField" tag. force:inputfiled tag for picklist values is disabled by default and I saw some work around to activate it by removing attribute "disabled", but for some reason my not able to achieve it. Need your help to find out  the issue.  here is my Code. 
**************

test.cmp code: 

<div class="form-group">
              
                <div id="contact_Type" class="col-sm-10">
                    <force:inputField aura:id="contactType" value="{!v.contact.Contact_Type__c}" />
               </div>
           </div>

testController.js : 
({
    init : function(component, event, helper) {
        
              
 
        console.log(' in init : ');
        
    },
    
    newContact : function(component, event,helper){
        
        console.log("in newcontact");
        
        var contact = component.get("v.contact");
        var contactType = component.find("contactType");
        
        contact["Contact_Type__c"] = contactType.get("v.value") ;
        
        console.log("contact firstname : "+contact["firstName"]);
        console.log("contact Type "+ contact["Contact_Type__c"]);
        
        helper.insertContact(component, contact);
        
    }
    
    
})


TestRenderer.js


({
    // Your renderer method overrides go here
    // 
    render : function(cmp){
        
         var ret = this.superRender();
        
         var element = cmp.find("contactType");
        
        
        var contactType = element.getElement();
        
        console.log('contactType has disabled attr ?  '+  contactType.hasAttribute("disabled"));
        
         contactType.removeAttribute("disabled");
       
        return ret; 
    }
})



In the browser console contactType.hasAttribute('disabled'); is comming up as False. So contactType (element) doesnot have that attribute at the time of render. I think the issue is with the order of running "render()" and actual compnent rendering. 
 
  • November 18, 2015
  • Like
  • 0
How to Preselect a radio button? I am saving the selected value to Opportunity.PaymentType__c text field.. On page load I want to preselect the radio button which was selected before. 


Here is the code: 

apex:pageBlockSection >
               <apex:actionRegion >
                 <apex:selectRadio value="{!currentOpportunity.PaymentType__c}" id="paymentType" required="true" style="required">
                           <apex:selectOptions value="{!PaymentMethods}" id="paymentMethods" />
                            <apex:actionSupport event="onclick" reRender="paymentDetails" status="status" immediate="false" />

                       </apex:selectRadio>
                </apex:actionRegion>
             </apex:pageBlockSection>

 public List<SelectOption> getPaymentMethods(){
        
        List<SelectOption> options = new List<SelectOption>();
        options.add(new SelectOption('VISA','VISA'));
        options.add(new SelectOption('MASTER','MASTER'));
        options.add(new SelectOption('ACH','ACH'));

        return options; 

    }
    
  • September 23, 2015
  • Like
  • 0
Hi, 

I am trying to create a from dynamically from a field set, to do so I am using the apexcontroller method to create a json string for schema.FieldSetmember and using that to create a new component using $A.createComponent which is working for ui markups of type ui:inputText and ui:inputEmail etc... but not with force:inputField


Test.cmp

<aura:component controller="FormController">
    
    <aura:handler name="init" value="{!this}" action="{!c.doInit}" />
   <!-- <aura:attribute name="contact" type="Contact"   default="{ 'sobjectType': 'Contact'}"/> -->
    <form aura:id="form">
        
    
        {!v.body} 
        
    </form>

</aura:component>


TestController.js


    doInit : function(cmp,event) {
    
      //  helper.creatFormElements(cmp);
      //  
       var action = cmp.get("c.getFieldSet");
        
       action.setParams({
            
            "ObjectName": "Contact",
            "FieldSetName" : "New_Contact"
            
        });
        
        action.setCallback(this,function(results){
         
            var fields = JSON.parse(results.getReturnValue());
            
            console.log('label'+fields[0].isRequired);
            console.log('label'+fields[0].fieldLabel);
          
          

            $A.createComponents([
            ["aura:attribute",
            {
                "name":"contact", 
                "type":"Contact",
                "default":"{ 'sobjectType': 'Contact'}"
            }],
            ["ui:inputText",
            {
                "class":"form-control", 
                "aura:id":fields[0].fieldLabel+0,
                "value" : fields[0].fieldLabel
            }],
            ["force:inputField", /* if i replace this with ui:inputfield it works fine */
            {
                "class":"form-control", 
                "aura:id":fields[1].fieldLabel+1,
                "value" : "{!v.contact.lastName}"
            }]
            ],
            function(inputText){
                console.log(inputText);
                //Add the new button to the body array
                if (cmp.isValid()) {
                    console.log('cmp is valid');
                    var body = cmp.get("v.body");
                    body.push(inputText[0]);
                    body.push(inputText[1]);
                     body.push(inputText[2]);
                    cmp.set("v.body", body);
                }
            }
        );
            
        });
        
        $A.enqueueAction(action);
    },


Please let me know if there is a easy way to use FieldSets in Lightning components. 
  • November 23, 2015
  • Like
  • 2
I am trying to create a VF page on which custom components are displayed which are stored in Custom setting or metadata object. So that I can give controll to end user which component they want to see. 

To achieve this I choosed to work with apex:DynamicComponent, I tried different ways but the only i am succesfull when I user {!piechart} for component value. 

<apex:page controller="DashboardCTRL" sidebar="false" >


    
    <apex:repeat value="{!count}" var="i" >
      
        <apex:dynamicComponent componentValue="{!cmps[i]}"/>
      
    </apex:repeat>

*********** or ******************

  <apex:repeat value="{!cmps}" var="cmp" >
      
        <apex:dynamicComponent componentValue="{!cmp}"/>
      
    </apex:repeat>

*************************************

    
</apex:page>


********************* Controller ******************************************

public class DashboardCTRL {

   
    public  ApexPages.Component piechart { get; set; }
    public Map<String,ApexPages.Component> cmps{get;set;}
    
    public List<integer> count{get;set;}

    public DashboardCTRL() {
      cmps = new Map<String, ApexPages.Component>();
      count = new list<integer>();  
    /*    Type t = Type.forName('PieChartCtrl');
        
        System.debug('t is :'+ t);
        
        if(t != null) {
          IComponentProvider cprovider = (IComponentProvider)t.newInstance();
        
        
         nudebt__Dashboard_Settings__c usersettings = nudebt__Dashboard_Settings__c.getInstance(UserInfo.getUserId());
        
       Map<string,Schema.SObjectField> settingFields = Utility.getsObjectFieldMap('nudebt__Dashboard_Settings__c');
        
       List<ApexPages.Component> DashboardList = new List<ApexPages.Component>(); 
        
        integer i = 0; 
        for(string k: settingFields.keySet()){
            
            string fname = settingFields.get(k).getDescribe().getName();
            System.debug('fieldname '+ fname);
            if(fname.startsWith('nudebt__cmp')){
                
                System.debug('component name is'+ usersettings.get(fname));
                
                Type t1 = Type.forName((string)usersettings.get(fname));
        
                System.debug('t is :'+ t1);
        
                if(t1 != null) {
                  IComponentProvider cprovider = (IComponentProvider)t1.newInstance();
                   DashboardList.add(cprovider.provideComponent());
                    this.piechart = cprovider.provideComponent();
                   cmps.put(String.valueOf(i),this.piechart);
                    count.add(i);
                    i++;
                }
            }
        }
    }
    
 
   
}
  • January 15, 2016
  • Like
  • 0
Hi,

  I need a suggestion in this requirement there is a contact lookup created in opportunity page this field should be updated automatically.

  When a lead is converted in salesforce it gets converted into Account, Opportunity and Contact my requirement is to update the contact information to opportunity lookup please suggest me can i create a trigger and update will this be a good approach or there is any alternative way like workflow we to update please suggest

Thanks
Sudhir
I have received over 123,000 (yes 123 thousand) emails stating I have a flow error and I am not sure where to start on the problem. Here is copy of the language on an email from earlier today. Any help would be much appreciated!

From: FlowApplication <info@salesforce.com>
Sent: Monday, November 23, 2015 8:33 AM
To: John Gross
Subject: Error Occurred During Flow "UpdateLeadAndContactDateModified": cloudswarm.leadSwarm: System.LimitException...
 
An error occurred at element myRule_2_A1 (FlowActionCall).
cloudswarm.leadSwarm: System.LimitException: cloudswarm:Too many SOQL queries: 101
This report lists the elements that the flow interview executed. The report is a beta feature.
We welcome your feedback on IdeaExchange.

Ideas - Salesforce Success Community
Impact the Salesforce roadmap by sharing your ideas and voting on others. Learn about recently released features and enhancements.
Read more...
 
Flow Details
Flow Name: UpdateLeadAndContactDateModified
Type: Workflow
Version: 1
Status: Active
Flow Interview Details
Interview Label:
Current User: John Gross (00580000001ilfE)
Start time: 11/23/2015 8:33 AM
Duration: 11 seconds
How the Interview Started
John Gross (00580000001ilfE) started the flow interview.
Some of this flow's variables were set when the interview started.
myVariable_old = null
myVariable_current = 00T8000004vTI8hEAG
DECISION: myDecision
Executed this outcome: myRule_2
Outcome conditions: or
1. {!myVariable_current.WhoId} (00Q8000000wNclrEAC) Starts with 00Q
Logic: One condition must be true (OR)
LEAD.UPDATERECORDLEAD (QUICK ACTIONS): myRule_2_A1
Inputs:
contextId = {!myVariable_current.WhoId} (00Q8000000wNclrEAC)
Outputs:
None.
LEAD.UPDATERECORDLEAD (QUICK ACTIONS): myRule_2_A1
Inputs:
contextId = {!myVariable_current.WhoId} (00Q8000000wNclrEAC)
Error Occurred: cloudswarm.leadSwarm: System.LimitException: cloudswarm:Too many SOQL queries: 101
This report lists the elements that the flow interview executed. The report is a beta feature.
We welcome your feedback on IdeaExchange.
Flow Details
Flow Name: UpdateLeadAndContactDateModified
Type: Workflow
Version: 1
Status: Active
Flow Interview Details
Interview Label:
Current User: John Gross (00580000001ilfE)
Start time: 11/23/2015 8:33 AM
Duration: 11 seconds
How the Interview Started
John Gross (00580000001ilfE) started the flow interview.
Some of this flow's variables were set when the interview started.
myVariable_old = null
myVariable_current = 00T8000004vTI8iEAG
DECISION: myDecision
Executed this outcome: myRule_2
Outcome conditions: or
1. {!myVariable_current.WhoId} (00Q8000001Ero5VEAR) Starts with 00Q
Logic: One condition must be true (OR)
LEAD.UPDATERECORDLEAD (QUICK ACTIONS): myRule_2_A1
Inputs:
contextId = {!myVariable_current.WhoId} (00Q8000001Ero5VEAR)
Outputs:
None.
LEAD.UPDATERECORDLEAD (QUICK ACTIONS): myRule_2_A1
Inputs:
contextId = {!myVariable_current.WhoId} (00Q8000001Ero5VEAR)
Error Occurred: cloudswarm.leadSwarm: System.LimitException: cloudswarm:Too many SOQL queries: 101
This report lists the elements that the flow interview executed. The report is a beta feature.
We welcome your feedback on IdeaExchange.
Flow Details
Flow Name: UpdateLeadAndContactDateModified
Type: Workflow
Version: 1
Status: Active
Flow Interview Details
Interview Label:
Current User: John Gross (00580000001ilfE)
Start time: 11/23/2015 8:33 AM
Duration: 11 seconds
How the Interview Started
John Gross (00580000001ilfE) started the flow interview.
Some of this flow's variables were set when the interview started.
myVariable_old = null
myVariable_current = 00T8000004vTI8jEAG
DECISION: myDecision
Executed this outcome: myRule_2
Outcome conditions: or
1. {!myVariable_current.WhoId} (00Q8000001CGv8BEAT) Starts with 00Q
Logic: One condition must be true (OR)
LEAD.UPDATERECORDLEAD (QUICK ACTIONS): myRule_2_A1
Inputs:
contextId = {!myVariable_current.WhoId} (00Q8000001CGv8BEAT)
Outputs:
None.
LEAD.UPDATERECORDLEAD (QUICK ACTIONS): myRule_2_A1
Inputs:
contextId = {!myVariable_current.WhoId} (00Q8000001CGv8BEAT)
Error Occurred: cloudswarm.leadSwarm: System.LimitException: cloudswarm:Too many SOQL queries: 101
This report lists the elements that the flow interview executed. The report is a beta feature.
We welcome your feedback on IdeaExchange.
Flow Details
Flow Name: UpdateLeadAndContactDateModified
Type: Workflow
Version: 1
Status: Active
Flow Interview Details
Interview Label:
Current User: John Gross (00580000001ilfE)
Start time: 11/23/2015 8:33 AM
Duration: 11 seconds
How the Interview Started
John Gross (00580000001ilfE) started the flow interview.
Some of this flow's variables were set when the interview started.
myVariable_old = null
myVariable_current = 00T8000004vTI8lEAG
DECISION: myDecision
Executed this outcome: myRule_2
Outcome conditions: or
1. {!myVariable_current.WhoId} (00Q8000000sOxP7EAK) Starts with 00Q
Logic: One condition must be true (OR)
LEAD.UPDATERECORDLEAD (QUICK ACTIONS): myRule_2_A1
Inputs:
contextId = {!myVariable_current.WhoId} (00Q8000000sOxP7EAK)
Outputs:
None.
LEAD.UPDATERECORDLEAD (QUICK ACTIONS): myRule_2_A1
Inputs:
contextId = {!myVariable_current.WhoId} (00Q8000000sOxP7EAK)
Error Occurred: cloudswarm.leadSwarm: System.LimitException: cloudswarm:Too many SOQL queries: 101
This report lists the elements that the flow interview executed. The report is a beta feature.
We welcome your feedback on IdeaExchange.
Flow Details
Flow Name: UpdateLeadAndContactDateModified
Type: Workflow
Version: 1
Status: Active
Flow Interview Details
Interview Label:
Current User: John Gross (00580000001ilfE)
Start time: 11/23/2015 8:33 AM
Duration: 11 seconds
How the Interview Started
John Gross (00580000001ilfE) started the flow interview.
Some of this flow's variables were set when the interview started.
myVariable_old = null
myVariable_current = 00T8000004vTI8qEAG
DECISION: myDecision
Executed this outcome: myRule_2
Outcome conditions: or
1. {!myVariable_current.WhoId} (00Q8000000wPIgpEAG) Starts with 00Q
Logic: One condition must be true (OR)
LEAD.UPDATERECORDLEAD (QUICK ACTIONS): myRule_2_A1
Inputs:
contextId = {!myVariable_current.WhoId} (00Q8000000wPIgpEAG)
Outputs:
None.
LEAD.UPDATERECORDLEAD (QUICK ACTIONS): myRule_2_A1
Inputs:
contextId = {!myVariable_current.WhoId} (00Q8000000wPIgpEAG)
Error Occurred: cloudswarm.leadSwarm: System.LimitException: cloudswarm:Too many SOQL queries: 101
This report lists the elements that the flow interview executed. The report is a beta feature.
We welcome your feedback on IdeaExchange.
Flow Details
Flow Name: UpdateLeadAndContactDateModified
Type: Workflow
Version: 1
Status: Active
Flow Interview Details
Interview Label:
Current User: John Gross (00580000001ilfE)
Start time: 11/23/2015 8:33 AM
Duration: 11 seconds
How the Interview Started
John Gross (00580000001ilfE) started the flow interview.
Some of this flow's variables were set when the interview started.
myVariable_old = null
myVariable_current = 00T8000004vTI8rEAG
DECISION: myDecision
Executed this outcome: myRule_2
Outcome conditions: or
1. {!myVariable_current.WhoId} (00Q8000000wNcmoEAC) Starts with 00Q
Logic: One condition must be true (OR)
LEAD.UPDATERECORDLEAD (QUICK ACTIONS): myRule_2_A1
Inputs:
contextId = {!myVariable_current.WhoId} (00Q8000000wNcmoEAC)
Outputs:
None.
LEAD.UPDATERECORDLEAD (QUICK ACTIONS): myRule_2_A1
Inputs:
contextId = {!myVariable_current.WhoId} (00Q8000000wNcmoEAC)
Error Occurred: cloudswarm.leadSwarm: System.LimitException: cloudswarm:Too many SOQL queries: 101
This report lists the elements that the flow interview executed. The report is a beta feature.
We welcome your feedback on IdeaExchange.
Flow Details
Flow Name: UpdateLeadAndContactDateModified
Type: Workflow
Version: 1
Status: Active
Flow Interview Details
Interview Label:
Current User: John Gross (00580000001ilfE)
Start time: 11/23/2015 8:33 AM
Duration: 11 seconds
How the Interview Started
John Gross (00580000001ilfE) started the flow interview.
Some of this flow's variables were set when the interview started.
myVariable_old = null
myVariable_current = 00T8000004vTI8sEAG
DECISION: myDecision
Executed this outcome: myRule_2
Outcome conditions: or
1. {!myVariable_current.WhoId} (00Q8000001Ero58EAB) Starts with 00Q
Logic: One condition must be true (OR)
LEAD.UPDATERECORDLEAD (QUICK ACTIONS): myRule_2_A1
Inputs:
contextId = {!myVariable_current.WhoId} (00Q8000001Ero58EAB)
Outputs:
None.
LEAD.UPDATERECORDLEAD (QUICK ACTIONS): myRule_2_A1
Inputs:
contextId = {!myVariable_current.WhoId} (00Q8000001Ero58EAB)
Error Occurred: cloudswarm.leadSwarm: System.LimitException: cloudswarm:Too many SOQL queries: 101
This report lists the elements that the flow interview executed. The report is a beta feature.
We welcome your feedback on IdeaExchange.
Flow Details
Flow Name: UpdateLeadAndContactDateModified
Type: Workflow
Version: 1
Status: Active
Flow Interview Details
Interview Label:
Current User: John Gross (00580000001ilfE)
Start time: 11/23/2015 8:33 AM
Duration: 11 seconds
How the Interview Started
John Gross (00580000001ilfE) started the flow interview.
Some of this flow's variables were set when the interview started.
myVariable_old = null
myVariable_current = 00T8000004vTI8tEAG
DECISION: myDecision
Executed this outcome: myRule_2
Outcome conditions: or
1. {!myVariable_current.WhoId} (00Q800000177zNSEAY) Starts with 00Q
Logic: One condition must be true (OR)
LEAD.UPDATERECORDLEAD (QUICK ACTIONS): myRule_2_A1
Inputs:
contextId = {!myVariable_current.WhoId} (00Q800000177zNSEAY)
Outputs:
None.
LEAD.UPDATERECORDLEAD (QUICK ACTIONS): myRule_2_A1
Inputs:
contextId = {!myVariable_current.WhoId} (00Q800000177zNSEAY)
Error Occurred: cloudswarm.leadSwarm: System.LimitException: cloudswarm:Too many SOQL queries: 101
This report lists the elements that the flow interview executed. The report is a beta feature.
We welcome your feedback on IdeaExchange.
Flow Details
Flow Name: UpdateLeadAndContactDateModified
Type: Workflow
Version: 1
Status: Active
Flow Interview Details
Interview Label:
Current User: John Gross (00580000001ilfE)
Start time: 11/23/2015 8:33 AM
Duration: 11 seconds
How the Interview Started
John Gross (00580000001ilfE) started the flow interview.
Some of this flow's variables were set when the interview started.
myVariable_old = null
myVariable_current = 00T8000004vTI8vEAG
DECISION: myDecision
Executed this outcome: myRule_2
Outcome conditions: or
1. {!myVariable_current.WhoId} (00Q8000001Ycq3DEAR) Starts with 00Q
Logic: One condition must be true (OR)
LEAD.UPDATERECORDLEAD (QUICK ACTIONS): myRule_2_A1
Inputs:
contextId = {!myVariable_current.WhoId} (00Q8000001Ycq3DEAR)
Outputs:
None.
LEAD.UPDATERECORDLEAD (QUICK ACTIONS): myRule_2_A1
Inputs:
contextId = {!myVariable_current.WhoId} (00Q8000001Ycq3DEAR)
Error Occurred: cloudswarm.leadSwarm: System.LimitException: cloudswarm:Too many SOQL queries: 101
This report lists the elements that the flow interview executed. The report is a beta feature.
We welcome your feedback on IdeaExchange.
Flow Details
Flow Name: UpdateLeadAndContactDateModified
Type: Workflow
Version: 1
Status: Active
Flow Interview Details
Interview Label:
Current User: John Gross (00580000001ilfE)
Start time: 11/23/2015 8:33 AM
Duration: 11 seconds
How the Interview Started
John Gross (00580000001ilfE) started the flow interview.
Some of this flow's variables were set when the interview started.
myVariable_old = null
myVariable_current = 00T8000004vTI90EAG
DECISION: myDecision
Executed this outcome: myRule_2
Outcome conditions: or
1. {!myVariable_current.WhoId} (00Q8000000xTQHwEAO) Starts with 00Q
Logic: One condition must be true (OR)
LEAD.UPDATERECORDLEAD (QUICK ACTIONS): myRule_2_A1
Inputs:
contextId = {!myVariable_current.WhoId} (00Q8000000xTQHwEAO)
Outputs:
None.
LEAD.UPDATERECORDLEAD (QUICK ACTIONS): myRule_2_A1
Inputs:
contextId = {!myVariable_current.WhoId} (00Q8000000xTQHwEAO)
Error Occurred: cloudswarm.leadSwarm: System.LimitException: cloudswarm:Too many SOQL queries: 101
This report lists the elements that the flow interview executed. The report is a beta feature.
We welcome your feedback on IdeaExchange.
Flow Details
Flow Name: UpdateLeadAndContactDateModified
Type: Workflow
Version: 1
Status: Active
Flow Interview Details
Interview Label:
Current User: John Gross (00580000001ilfE)
Start time: 11/23/2015 8:33 AM
Duration: 11 seconds
How the Interview Started
John Gross (00580000001ilfE) started the flow interview.
Some of this flow's variables were set when the interview started.
myVariable_old = null
myVariable_current = 00T8000004vTI91EAG
DECISION: myDecision
Executed this outcome: myRule_2
Outcome conditions: or
1. {!myVariable_current.WhoId} (00Q8000001Ero5DEAR) Starts with 00Q
Logic: One condition must be true (OR)
LEAD.UPDATERECORDLEAD (QUICK ACTIONS): myRule_2_A1
Inputs:
contextId = {!myVariable_current.WhoId} (00Q8000001Ero5DEAR)
Outputs:
None.
LEAD.UPDATERECORDLEAD (QUICK ACTIONS): myRule_2_A1
Inputs:
contextId = {!myVariable_current.WhoId} (00Q8000001Ero5DEAR)
Error Occurred: cloudswarm.leadSwarm: System.LimitException: cloudswarm:Too many SOQL queries: 101
This report lists the elements that the flow interview executed. The report is a beta feature.
We welcome your feedback on IdeaExchange.
Flow Details
Flow Name: UpdateLeadAndContactDateModified
Type: Workflow
Version: 1
Status: Active
Flow Interview Details
Interview Label:
Current User: John Gross (00580000001ilfE)
Start time: 11/23/2015 8:33 AM
Duration: 11 seconds
How the Interview Started
John Gross (00580000001ilfE) started the flow interview.
Some of this flow's variables were set when the interview started.
myVariable_old = null
myVariable_current = 00T8000004vTI92EAG
DECISION: myDecision
Executed this outcome: myRule_2
Outcome conditions: or
1. {!myVariable_current.WhoId} (00Q80000017APmtEAG) Starts with 00Q
Logic: One condition must be true (OR)
LEAD.UPDATERECORDLEAD (QUICK ACTIONS): myRule_2_A1
Inputs:
contextId = {!myVariable_current.WhoId} (00Q80000017APmtEAG)
Outputs:
None.
LEAD.UPDATERECORDLEAD (QUICK ACTIONS): myRule_2_A1
Inputs:
contextId = {!myVariable_current.WhoId} (00Q80000017APmtEAG)
Error Occurred: cloudswarm.leadSwarm: System.LimitException: cloudswarm:Too many SOQL queries: 101
This report lists the elements that the flow interview executed. The report is a beta feature.
We welcome your feedback on IdeaExchange.
Flow Details
Flow Name: UpdateLeadAndContactDateModified
Type: Workflow
Version: 1
Status: Active
Flow Interview Details
Interview Label:
Current User: John Gross (00580000001ilfE)
Start time: 11/23/2015 8:33 AM
Duration: 11 seconds
How the Interview Started
John Gross (00580000001ilfE) started the flow interview.
Some of this flow's variables were set when the interview started.
myVariable_old = null
myVariable_current = 00T8000004vTI95EAG
DECISION: myDecision
Executed this outcome: myRule_2
Outcome conditions: or
1. {!myVariable_current.WhoId} (00Q8000000sOxOwEAK) Starts with 00Q
Logic: One condition must be true (OR)
LEAD.UPDATERECORDLEAD (QUICK ACTIONS): myRule_2_A1
Inputs:
contextId = {!myVariable_current.WhoId} (00Q8000000sOxOwEAK)
Outputs:
None.
LEAD.UPDATERECORDLEAD (QUICK ACTIONS): myRule_2_A1
Inputs:
contextId = {!myVariable_current.WhoId} (00Q8000000sOxOwEAK)
Error Occurred: cloudswarm.leadSwarm: System.LimitException: cloudswarm:Too many SOQL queries: 101
This report lists the elements that the flow interview executed. The report is a beta feature.
We welcome your feedback on IdeaExchange.
Flow Details
Flow Name: UpdateLeadAndContactDateModified
Type: Workflow
Version: 1
Status: Active
Flow Interview Details
Interview Label:
Current User: John Gross (00580000001ilfE)
Start time: 11/23/2015 8:33 AM
Duration: 11 seconds
How the Interview Started
John Gross (00580000001ilfE) started the flow interview.
Some of this flow's variables were set when the interview started.
myVariable_old = null
myVariable_current = 00T8000004vTI96EAG
DECISION: myDecision
Executed this outcome: myRule_2
Outcome conditions: or
1. {!myVariable_current.WhoId} (00Q8000000wNE61EAG) Starts with 00Q
Logic: One condition must be true (OR)
LEAD.UPDATERECORDLEAD (QUICK ACTIONS): myRule_2_A1
Inputs:
contextId = {!myVariable_current.WhoId} (00Q8000000wNE61EAG)
Outputs:
None.
LEAD.UPDATERECORDLEAD (QUICK ACTIONS): myRule_2_A1
Inputs:
contextId = {!myVariable_current.WhoId} (00Q8000000wNE61EAG)
Error Occurred: cloudswarm.leadSwarm: System.LimitException: cloudswarm:Too many SOQL queries: 101
This report lists the elements that the flow interview executed. The report is a beta feature.
We welcome your feedback on IdeaExchange.
Flow Details
Flow Name: UpdateLeadAndContactDateModified
Type: Workflow
Version: 1
Status: Active
Flow Interview Details
Interview Label:
Current User: John Gross (00580000001ilfE)
Start time: 11/23/2015 8:33 AM
Duration: 11 seconds
How the Interview Started
John Gross (00580000001ilfE) started the flow interview.
Some of this flow's variables were set when the interview started.
myVariable_old = null
myVariable_current = 00T8000004vTI9AEAW
DECISION: myDecision
Executed this outcome: myRule_2
Outcome conditions: or
1. {!myVariable_current.WhoId} (00Q800000177zG8EAI) Starts with 00Q
Logic: One condition must be true (OR)
LEAD.UPDATERECORDLEAD (QUICK ACTIONS): myRule_2_A1
Inputs:
contextId = {!myVariable_current.WhoId} (00Q800000177zG8EAI)
Outputs:
None.
LEAD.UPDATERECORDLEAD (QUICK ACTIONS): myRule_2_A1
Inputs:
contextId = {!myVariable_current.WhoId} (00Q800000177zG8EAI)
Error Occurred: cloudswarm.leadSwarm: System.LimitException: cloudswarm:Too many SOQL queries: 101
This report lists the elements that the flow interview executed. The report is a beta feature.
We welcome your feedback on IdeaExchange.
Flow Details
Flow Name: UpdateLeadAndContactDateModified
Type: Workflow
Version: 1
Status: Active
Flow Interview Details
Interview Label:
Current User: John Gross (00580000001ilfE)
Start time: 11/23/2015 8:33 AM
Duration: 11 seconds
How the Interview Started
John Gross (00580000001ilfE) started the flow interview.
Some of this flow's variables were set when the interview started.
myVariable_old = null
myVariable_current = 00T8000004vTI9BEAW
DECISION: myDecision
Executed this outcome: myRule_2
Outcome conditions: or
1. {!myVariable_current.WhoId} (00Q8000000wNcm1EAC) Starts with 00Q
Logic: One condition must be true (OR)
LEAD.UPDATERECORDLEAD (QUICK ACTIONS): myRule_2_A1
Inputs:
contextId = {!myVariable_current.WhoId} (00Q8000000wNcm1EAC)
Outputs:
None.
LEAD.UPDATERECORDLEAD (QUICK ACTIONS): myRule_2_A1
Inputs:
contextId = {!myVariable_current.WhoId} (00Q8000000wNcm1EAC)
Error Occurred: cloudswarm.leadSwarm: System.LimitException: cloudswarm:Too many SOQL queries: 101
This report lists the elements that the flow interview executed. The report is a beta feature.
We welcome your feedback on IdeaExchange.
Flow Details
Flow Name: UpdateLeadAndContactDateModified
Type: Workflow
Version: 1
Status: Active
Flow Interview Details
Interview Label:
Current User: John Gross (00580000001ilfE)
Start time: 11/23/2015 8:33 AM
Duration: 11 seconds
How the Interview Started
John Gross (00580000001ilfE) started the flow interview.
Some of this flow's variables were set when the interview started.
myVariable_old = null
myVariable_current = 00T8000004vTI9CEAW
DECISION: myDecision
Executed this outcome: myRule_2
Outcome conditions: or
1. {!myVariable_current.WhoId} (00Q8000001Ero5WEAR) Starts with 00Q
Logic: One condition must be true (OR)
LEAD.UPDATERECORDLEAD (QUICK ACTIONS): myRule_2_A1
Inputs:
contextId = {!myVariable_current.WhoId} (00Q8000001Ero5WEAR)
Outputs:
None.
LEAD.UPDATERECORDLEAD (QUICK ACTIONS): myRule_2_A1
Inputs:
contextId = {!myVariable_current.WhoId} (00Q8000001Ero5WEAR)
Error Occurred: cloudswarm.leadSwarm: System.LimitException: cloudswarm:Too many SOQL queries: 101
This report lists the elements that the flow interview executed. The report is a beta feature.
We welcome your feedback on IdeaExchange.
Flow Details
Flow Name: UpdateLeadAndContactDateModified
Type: Workflow
Version: 1
Status: Active
Flow Interview Details
Interview Label:
Current User: John Gross (00580000001ilfE)
Start time: 11/23/2015 8:33 AM
Duration: 11 seconds
How the Interview Started
John Gross (00580000001ilfE) started the flow interview.
Some of this flow's variables were set when the interview started.
myVariable_old = null
myVariable_current = 00T8000004vTI9DEAW
DECISION: myDecision
Executed this outcome: myRule_2
Outcome conditions: or
1. {!myVariable_current.WhoId} (00Q8000001793u6EAA) Starts with 00Q
Logic: One condition must be true (OR)
LEAD.UPDATERECORDLEAD (QUICK ACTIONS): myRule_2_A1
Inputs:
contextId = {!myVariable_current.WhoId} (00Q8000001793u6EAA)
Outputs:
None.
LEAD.UPDATERECORDLEAD (QUICK ACTIONS): myRule_2_A1
Inputs:
contextId = {!myVariable_current.WhoId} (00Q8000001793u6EAA)
Error Occurred: cloudswarm.leadSwarm: System.LimitException: cloudswarm:Too many SOQL queries: 101
This report lists the elements that the flow interview executed. The report is a beta feature.
We welcome your feedback on IdeaExchange.
Flow Details
Flow Name: UpdateLeadAndContactDateModified
Type: Workflow
Version: 1
Status: Active
Flow Interview Details
Interview Label:
Current User: John Gross (00580000001ilfE)
Start time: 11/23/2015 8:33 AM
Duration: 11 seconds
How the Interview Started
John Gross (00580000001ilfE) started the flow interview.
Some of this flow's variables were set when the interview started.
myVariable_old = null
myVariable_current = 00T8000004vTI9HEAW
DECISION: myDecision
Executed this outcome: myRule_2
Outcome conditions: or
1. {!myVariable_current.WhoId} (00Q8000001GFXUtEAP) Starts with 00Q
Logic: One condition must be true (OR)
LEAD.UPDATERECORDLEAD (QUICK ACTIONS): myRule_2_A1
Inputs:
contextId = {!myVariable_current.WhoId} (00Q8000001GFXUtEAP)
Outputs:
None.
LEAD.UPDATERECORDLEAD (QUICK ACTIONS): myRule_2_A1
Inputs:
contextId = {!myVariable_current.WhoId} (00Q8000001GFXUtEAP)
Error Occurred: cloudswarm.leadSwarm: System.LimitException: cloudswarm:Too many SOQL queries: 101
This report lists the elements that the flow interview executed. The report is a beta feature.
We welcome your feedback on IdeaExchange.
Flow Details
Flow Name: UpdateLeadAndContactDateModified
Type: Workflow
Version: 1
Status: Active
Flow Interview Details
Interview Label:
Current User: John Gross (00580000001ilfE)
Start time: 11/23/2015 8:33 AM
Duration: 11 seconds
How the Interview Started
John Gross (00580000001ilfE) started the flow interview.
Some of this flow's variables were set when the interview started.
myVariable_old = null
myVariable_current = 00T8000004vTI9IEAW
DECISION: myDecision
Executed this outcome: myRule_2
Outcome conditions: or
1. {!myVariable_current.WhoId} (00Q80000010bfVIEAY) Starts with 00Q
Logic: One condition must be true (OR)
LEAD.UPDATERECORDLEAD (QUICK ACTIONS): myRule_2_A1
Inputs:
contextId = {!myVariable_current.WhoId} (00Q80000010bfVIEAY)
Outputs:
None.
LEAD.UPDATERECORDLEAD (QUICK ACTIONS): myRule_2_A1
Inputs:
contextId = {!myVariable_current.WhoId} (00Q80000010bfVIEAY)
Error Occurred: cloudswarm.leadSwarm: System.LimitException: cloudswarm:Too many SOQL queries: 101
This report lists the elements that the flow interview executed. The report is a beta feature.
We welcome your feedback on IdeaExchange.
Flow Details
Flow Name: UpdateLeadAndContactDateModified
Type: Workflow
Version: 1
Status: Active
Flow Interview Details
Interview Label:
Current User: John Gross (00580000001ilfE)
Start time: 11/23/2015 8:33 AM
Duration: 11 seconds
How the Interview Started
John Gross (00580000001ilfE) started the flow interview.
Some of this flow's variables were set when the interview started.
myVariable_old = null
myVariable_current = 00T8000004vTI9JEAW
DECISION: myDecision
Executed this outcome: myRule_2
Outcome conditions: or
1. {!myVariable_current.WhoId} (00Q80000010bfV7EAI) Starts with 00Q
Logic: One condition must be true (OR)
LEAD.UPDATERECORDLEAD (QUICK ACTIONS): myRule_2_A1
Inputs:
contextId = {!myVariable_current.WhoId} (00Q80000010bfV7EAI)
Outputs:
None.
LEAD.UPDATERECORDLEAD (QUICK ACTIONS): myRule_2_A1
Inputs:
contextId = {!myVariable_current.WhoId} (00Q80000010bfV7EAI)
Error Occurred: cloudswarm.leadSwarm: System.LimitException: cloudswarm:Too many SOQL queries: 101
This report lists the elements that the flow interview executed. The report is a beta feature.
We welcome your feedback on IdeaExchange.
Flow Details
Flow Name: UpdateLeadAndContactDateModified
Type: Workflow
Version: 1
Status: Active
Flow Interview Details
Interview Label:
Current User: John Gross (00580000001ilfE)
Start time: 11/23/2015 8:33 AM
Duration: 11 seconds
How the Interview Started
John Gross (00580000001ilfE) started the flow interview.
Some of this flow's variables were set when the interview started.
myVariable_old = null
myVariable_current = 00T8000004vTI9LEAW
DECISION: myDecision
Executed this outcome: myRule_2
Outcome conditions: or
1. {!myVariable_current.WhoId} (00Q8000000o8M7gEAE) Starts with 00Q
Logic: One condition must be true (OR)
LEAD.UPDATERECORDLEAD (QUICK ACTIONS): myRule_2_A1
Inputs:
contextId = {!myVariable_current.WhoId} (00Q8000000o8M7gEAE)
Outputs:
None.
LEAD.UPDATERECORDLEAD (QUICK ACTIONS): myRule_2_A1
Inputs:
contextId = {!myVariable_current.WhoId} (00Q8000000o8M7gEAE)
Error Occurred: cloudswarm.leadSwarm: System.LimitException: cloudswarm:Too many SOQL queries: 101
This report lists the elements that the flow interview executed. The report is a beta feature.
We welcome your feedback on IdeaExchange.
Flow Details
Flow Name: UpdateLeadAndContactDateModified
Type: Workflow
Version: 1
Status: Active
Flow Interview Details
Interview Label:
Current User: John Gross (00580000001ilfE)
Start time: 11/23/2015 8:33 AM
Duration: 11 seconds
How the Interview Started
John Gross (00580000001ilfE) started the flow interview.
Some of this flow's variables were set when the interview started.
myVariable_old = null
myVariable_current = 00T8000004vTI9MEAW
DECISION: myDecision
Executed this outcome: myRule_2



 
Hi, 

I am trying to create a from dynamically from a field set, to do so I am using the apexcontroller method to create a json string for schema.FieldSetmember and using that to create a new component using $A.createComponent which is working for ui markups of type ui:inputText and ui:inputEmail etc... but not with force:inputField


Test.cmp

<aura:component controller="FormController">
    
    <aura:handler name="init" value="{!this}" action="{!c.doInit}" />
   <!-- <aura:attribute name="contact" type="Contact"   default="{ 'sobjectType': 'Contact'}"/> -->
    <form aura:id="form">
        
    
        {!v.body} 
        
    </form>

</aura:component>


TestController.js


    doInit : function(cmp,event) {
    
      //  helper.creatFormElements(cmp);
      //  
       var action = cmp.get("c.getFieldSet");
        
       action.setParams({
            
            "ObjectName": "Contact",
            "FieldSetName" : "New_Contact"
            
        });
        
        action.setCallback(this,function(results){
         
            var fields = JSON.parse(results.getReturnValue());
            
            console.log('label'+fields[0].isRequired);
            console.log('label'+fields[0].fieldLabel);
          
          

            $A.createComponents([
            ["aura:attribute",
            {
                "name":"contact", 
                "type":"Contact",
                "default":"{ 'sobjectType': 'Contact'}"
            }],
            ["ui:inputText",
            {
                "class":"form-control", 
                "aura:id":fields[0].fieldLabel+0,
                "value" : fields[0].fieldLabel
            }],
            ["force:inputField", /* if i replace this with ui:inputfield it works fine */
            {
                "class":"form-control", 
                "aura:id":fields[1].fieldLabel+1,
                "value" : "{!v.contact.lastName}"
            }]
            ],
            function(inputText){
                console.log(inputText);
                //Add the new button to the body array
                if (cmp.isValid()) {
                    console.log('cmp is valid');
                    var body = cmp.get("v.body");
                    body.push(inputText[0]);
                    body.push(inputText[1]);
                     body.push(inputText[2]);
                    cmp.set("v.body", body);
                }
            }
        );
            
        });
        
        $A.enqueueAction(action);
    },


Please let me know if there is a easy way to use FieldSets in Lightning components. 
  • November 23, 2015
  • Like
  • 2
Hi, 
I am trying to build a component int Aura lightning framework and I found out that there is a know issue with "force:inputField" tag. force:inputfiled tag for picklist values is disabled by default and I saw some work around to activate it by removing attribute "disabled", but for some reason my not able to achieve it. Need your help to find out  the issue.  here is my Code. 
**************

test.cmp code: 

<div class="form-group">
              
                <div id="contact_Type" class="col-sm-10">
                    <force:inputField aura:id="contactType" value="{!v.contact.Contact_Type__c}" />
               </div>
           </div>

testController.js : 
({
    init : function(component, event, helper) {
        
              
 
        console.log(' in init : ');
        
    },
    
    newContact : function(component, event,helper){
        
        console.log("in newcontact");
        
        var contact = component.get("v.contact");
        var contactType = component.find("contactType");
        
        contact["Contact_Type__c"] = contactType.get("v.value") ;
        
        console.log("contact firstname : "+contact["firstName"]);
        console.log("contact Type "+ contact["Contact_Type__c"]);
        
        helper.insertContact(component, contact);
        
    }
    
    
})


TestRenderer.js


({
    // Your renderer method overrides go here
    // 
    render : function(cmp){
        
         var ret = this.superRender();
        
         var element = cmp.find("contactType");
        
        
        var contactType = element.getElement();
        
        console.log('contactType has disabled attr ?  '+  contactType.hasAttribute("disabled"));
        
         contactType.removeAttribute("disabled");
       
        return ret; 
    }
})



In the browser console contactType.hasAttribute('disabled'); is comming up as False. So contactType (element) doesnot have that attribute at the time of render. I think the issue is with the order of running "render()" and actual compnent rendering. 
 
  • November 18, 2015
  • Like
  • 0
Hey,

In VisualForce you can specify a HTML5 data attribute by adding a html tag to the front - e.g.
<apex:input html-data-attribute-name="some data"/>

We are looking at trying a lightning implementation, but similar functionality is cruitial if we are to proceed.  Is there a way to append a HTML5 data attribute to a lightning component - e.g.
<ui:inputText data-attribute-name="some data"/>

Cheers!