• {!Piyush_soni__c}
  • ALL STAR
  • 11016 Points
  • Member since 2016
  • Salesforce Developer
  • ACS


  • Chatter
    Feed
  • 356
    Best Answers
  • 20
    Likes Received
  • 25
    Likes Given
  • 2
    Questions
  • 1327
    Replies
I have Used jQuery DataTable Plugin In Salesforce Lightning Component . Now i want to remove unwanted sorting symbols in my table  from the loaded scripts.
So any one help me on this. Thanks in advance...

Ref Image:

User-added image
User-added image

Thanks
Venkat

 
I have Used jQuery DataTable Plugin In Salesforce Lightning Component . Now i want to remove unwanted css clases from the loaded scripts.
So any one help me on this. Thanks in advance...

User-added image

I Want to remove the highlighted css classes from the loaded scripts.
================================================================

Code Snippet:

.This  .dataTables_length {
    color: white!important;
}


User-added image

But in select option also i am getting white color, due to that i am unable to see the size of the paze like 10, 25, 50, 100. So i want to give another background color for select option only.This is all because of my page background color is black but it is mandatory.

Thanks 
Venkat


 
Hi Gurus, 

I have writen a very short apex code to be able redirect from one Visualforce page to another however, I now have to write a test class, which i am awful at :D 

So it would be great if someone could please assist me :)  

This is my short apex code for the redirection:
 
public with sharing class CustomerSatisfaction
 { public String currentRecordId {get;set;}

  public CustomerSatisfaction (ApexPages.StandardController controller)
    { this.currentRecordId = ApexPages.CurrentPage().getparameters().get('id');}
  
  public PageReference UK_Flag () {                   
           PageReference pageref = new 
                     PageReference('/apex/CustomerSatisfaction_EN?Id='+currentRecordId); 
                     pageref.setRedirect(true);
                     return pageref;}
 
      public PageReference France_Flag () {                   
           PageReference pageref = new 
                     PageReference('/apex/CustomerSatisfaction_FR?Id='+currentRecordId); 
                     pageref.setRedirect(true);
                     return pageref;}
 
}

If someone know how I could write the test then please let me know! Thanks!!
User-added image

i want display lightning:helpText along with lable of lighting:input field.
<aura:component>
    <lightning:helptext content="Your Name will be your login name" />
	<lightning:input label="Name" name="myname" required="true"/>
</aura:component>



Thanks in advance
Hi Team,

I am accessing the image in to my component  from the static resource. Now i want to implement the onMouseover event on that image.
When onMouseover on that image the background color should change to some other color.
Please help me on this. 
                                     Thanks in advance...
Code Snippet:

<aura:component implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,forceCommunity:availableForAllPageTypes,force:lightningQuickAction" access="global" >
    <lightning:layout >

                                    <lightning:layoutItem size="3" padding="around-small">
                                        <div >
                                            <img style="height: 500px;" src="/resource/Mouseover/" /></div>
                                            
                                        
                                    </lightning:layoutItem>
    </lightning:layout>
</aura:component>
===================================
Reference Image:

User-added image
ChildComponent
--------------
<aura:component >
    <ui:button label="click me" press="{!c.hanldeClick}"/>
    <aura:registerEvent name="componentevent" type="c:SimpleComponentEvent"/>
</aura:component>

SimpleComponentEvent.evt
------------------------
<aura:event type="component" description="component" >
 <aura:attribute name="message" type="string"/>
    </aura:event>
    
    controller
    ------------
    ({
    hanldeClick : function(component, event, helper) {
        var v1=component.get("componentevent");
        v1.setParams({
            "message":'Welcome to sfdcscenarios.blogspot.com'
        });
        v1.fire();
        
        
    }
})


ParentComponent
---------------
<aura:component >
    <aura:attribute name="EventMessage" type="String"/>
    <aura:handler name="componentevent" event="c:SimpleComponentEvent" action="{!c.hanldeParent}"/>
    <c:ChildComponent/>
    {!v.EventMessage}
</aura:component>




Controller
-----------
({
    handleParent: function(component, event, helper) {
        var message = event.getParam("message"); 
        cmp.set("v.EventMessage", message + 'brahmanaidu');         
    } 
    
    
})

Hi All, 

I was wondering if there is any way of updating an account field in APEX if i have the account ID in the Triggered Object. Right now i am running into the issue that I can not do the following (Trigger is on the Opportunity).

List <Account> AccountsInHierarchy = [SELECT Field_A, Field_B, Field_C
                                      FROM     Account
                                      WHERE  Ultimate_Parent_ID__c = Trigger.new.Account.Ultimate_Parent_Id__c
                                     ];

Whenever I do this I get the following error: 
System.LimitException: Too many query rows: 50001
 

I have already tried limiting the numbers returned by my SOQL Query but the error persisted. Any help would be much appreciated. 

Best, 

FD


 

what is the advantages of querying data withing the for loop itself like below

for(Account a:[select name from Account])
{
***logic***
}
Hi Guys,

I have created a data table for custom sobject(test__c) list view.
I used SOQL query to get all the required fields (some are standard fields - Account and contact name) related to test__C.

But the issue here is, when the user clicks the standard fields, they should be able to navigate the Account and contact name pages respectively. For that, I need to make these as hyperlink fileds.

I am not sure how to proceed for this. Any help is appreciated.

Thanks!!
 
  • April 25, 2018
  • Like
  • 0
Hello All,
                 I am new to salesforce. I dont have any idea about soap api, REST api. but i have to learn it. 
Anybody please suggest,where i can learn api and how??
I have a lightning component and it has an apex controller. I would like to call a @InvocableMethod of an another class from the ligtning component conroller @auraenble method. Is this possible? If so could you please provide an example

Thanks 
Gopinath
Hello,

i have made only 5 tabs as Default on.All other tabs have been made as Tab hidden.

Haing said that,all the 5 tabs are visible.Apart from that + button is also visible.My client does not need + button after the 5 tabs.

Is there any way I can hide the + button in Salesforce classic.

Any help is highly appreciated.

Thanks & Regards,
Harsha BR

Thanks & Regards,
Harsha BR
public class Map_Opportunities {
    public Map<string,List<Opportunity>> oppMap        {set;get;}    
    public List<Account> accList                    {set;get;}
    
    public Map_Opportunities(){
        oppMap = new Map<string,List<Opportunity>>();  
        accList=new List<Account>();
        
        accList = [SELECT name,(SELECT Name,stageName FROM Opportunities)FROM Account];
        for (Account a :accList){
            oppMap.put(a.Name, a.Opportunities);
        }                    
    }
}
-------------------------------------------
Test Class
--------------------------------------------
@isTest
    static void mapOpportunits(){
        Map_Opportunities mp = new Map_Opportunities();
        List<Opportunity> optyList = new List<Opportunity>();
        account acc = new Account();
        acc.name = 'Ravi';
        insert acc;
        
        opportunity op = new Opportunity();
        op.Name = 'Xyz';
        op.AccountId = acc.id;
        op.CloseDate = system.today();
        op.StageName ='Closed Won';    
        optyList.add(op);
        insert optyList;
        mp.oppMap.put(acc.Name, optyList);
    }
85% code is covered and Displaying Error : oppMap.put(a.Name, a.Opportunities);
public class Map_Accounts {   
    public Map<Id,Account> accMap        {set;get;}
    public List<Account> accList         {set;get;}
    public Account a                    {set;get;}    
    // Constructor
    public Map_Accounts(){
        accMap = new Map<id,Account>();         
        accList=[Select Id, Name from Account limit 5];
        accMap.putAll(accList);
              
        for (Id idKeys : accMap.keySet()){
            a = accMap.get(idKeys);
        }        
    }  
}
<aura:component controller="ListAccounts">
  <aura:attribute name="accounts" type="List" />
  <aura:handler name="init" value="{!this}" action="{!c.doInit}" />
    <aura:attribute name="accList" type="list"/>
  <!--
    Use a data table from the Lightning Design System:
    https://www.lightningdesignsystem.com/components/data-tables/
  -->
  <table class="slds-table slds-table--bordered slds-table--striped slds-table--cell-buffer slds-table--fixed-layout">
    <thead>
      <tr class="slds-text-heading--label">
                  <th scope="col"><div class="slds-truncate" title="Select">Select</div></th>

        <th scope="col"><div class="slds-truncate" title="ID">ID</div></th>
        <th scope="col"><div class="slds-truncate" title="Name">Name</div></th>
        <th scope="col"><div class="slds-truncate" title="Site">Site</div></th>
       
      </tr>
    </thead>
    <tbody>
      <!-- Use the Apex model and controller to fetch server side data -->
      <aura:iteration items="{!v.accounts}" var="account">
        <tr>
          <th scope="row">
              <ui:inputCheckbox />
            </th>

          <th scope="row"><div class="slds-truncate" title="{!account.Id}">{!account.Id}</div></th>
          <td><div class="slds-truncate" title="{!account.Name}">{!account.Name}</div></td>
          <td><div class="slds-truncate" title="{!account.Site}">{!account.Site}</div></td>
          
          <td>
            
          </td>
        </tr>
      </aura:iteration>
        <ui:button label="Aprove" press="{!c.approve}"/>
    </tbody>
  </table>
</aura:component>



({
  // Fetch the accounts from the Apex controller
  doInit: function(component,event,helper) {
    var action = component.get('c.getAccounts');
    // Set up the callback
    var self = this;
    action.setCallback(this, function(actionResult) {
     component.set('v.accounts', actionResult.getReturnValue());
    });
    $A.enqueueAction(action);
  },
    approve: function(component,event,helper) {
    var a = component.get('c.getApproved');
        console.log('checking the status');
        a.setCallback(this, function(response) {
     component.set('v.accList', response.getReturnValue());
    });
    $A.enqueueAction(a);
    
    },
    
})









public class ListAccounts {
  @AuraEnabled
  public static List<Account> getAccounts() {
    return [SELECT Id, name,site from Account Limit 6];
  }
    @AuraEnabled
    public static  void getApproved(){
        List<Account> accs=[select Id,Name,Site from Account];
        for(Account a:accs){
            a.Site='Approved';
        }
        
        
        
    }
    
}












 
I am creating lightning page for inserting record .In Page , i am using lookup field for inserting .Please anyone provide syntax
public class triggerHelperClass {
public static void updatePostal(List<account> triggerNewList){
   for (Account a: triggerNewList)
   {
   if(a.Match_Billing_Address__c==True)
   {
   a.ShippingPostalCode=a.BillingPostalCode;
   }
   }
}
}
Hi All,
i need small help in CSS. I have four images i need to align them in horizontally, images coming into horizontally to left side only  but i need proper alignment to that div with same gap image to image , i tried a lot but no use could anyone  please help me on this.
 <lightning:layout horizontalAlign="spread" verticalAlign="center" multipleRows="true" >
         
          <div class=" dvContent">
               <div class="slds-list_horizontal slds-wrap">
                <div class="img " ><img   src="/resource/My_Images/Assets/img1.png"  />   
                <h1>TEXT</h1></div> 
              
                <div class="img1" ><img  src="/resource/My_Images/Assets/img2.png"  />  
                    
                <h1>TEXT</h1></div> 
                
                <div class="img2" ><img  src="/resource/My_Images/Assets/img3.png" align="middle" />  
                    
                <h1>TEXT</h1></div> 
                
                <div class="img3"  style="text-align: left"><img src="/resource/My_Images/Assets/img4.png"  />  
                    
                <h1>ComTEXT</h1></div>
               
           
            </div>
                </div>   
             
             
       
        
    </lightning:layout>
    
My CSS

.THIS .img1{
     padding-top: 60px;
height: 30%;
width : 100px;

 margin: 0px 0px 80px 90px;

   
    }
.THIS .img2{
padding-top: 60px;
height: 30%;
width : 100px;

 margin: 0px 0px 80px 90px;
   
    }
.THIS .img3{
   
padding-top: 60px;
height: 30%;
width : 100px;

 margin: 0px 0px 80px 90px;
    }
.THIS .img{
padding-top: 60px;
height: 30%;
width : 100px;

 margin: 0px 0px 80px 90px;   
    }

                                                                     Thanks in Advaance

Thanks
Venkat
Best Practice : When someone takes the time/effort to repspond to your question, you should take the time/effort to either mark the question as "Solved", or post a Follow-Up with addtional information.

User-added image


      That way people with a similar question can find the Solution without having to re-post the same question again and again. And the people who reply to your post know that the issue has been resolved and they can stop working on it. 

Thanks #Copy_Steve Molis
Best Practice : When someone takes the time/effort to repspond to your question, you should take the time/effort to either mark the question as "Solved", or post a Follow-Up with addtional information.

User-added image


      That way people with a similar question can find the Solution without having to re-post the same question again and again. And the people who reply to your post know that the issue has been resolved and they can stop working on it. 

Thanks #Copy_Steve Molis
I have Used jQuery DataTable Plugin In Salesforce Lightning Component . Now i want to remove unwanted sorting symbols in my table  from the loaded scripts.
So any one help me on this. Thanks in advance...

Ref Image:

User-added image
User-added image

Thanks
Venkat

 
I have Used jQuery DataTable Plugin In Salesforce Lightning Component . Now i want to remove unwanted css clases from the loaded scripts.
So any one help me on this. Thanks in advance...

User-added image

I Want to remove the highlighted css classes from the loaded scripts.
================================================================

Code Snippet:

.This  .dataTables_length {
    color: white!important;
}


User-added image

But in select option also i am getting white color, due to that i am unable to see the size of the paze like 10, 25, 50, 100. So i want to give another background color for select option only.This is all because of my page background color is black but it is mandatory.

Thanks 
Venkat


 
I am having my component 
  

           
<aura:attribute name="persAccountList" type="Map" default="" />
     <table class="slds-table slds-table_bordered slds-table_cell-buffer">
              <thead>
                  <tr class="slds-text-title_caps">
                      <th>{!$Label.c.ACC_Select}</th>
               <th>{!$Label.c.Rforce_PersAcc_Lastname}</th>
                      <th>{!$Label.c.ACC_First_name}</th>
                      <th>{!$Label.c.ACC_Postal_Code}</th>
                      <th>{!$Label.c.ACC_City}</th>
                        <th>{!$Label.c.ACC_Email}</th>
                  <th>{!$Label.c.ACC_Last_Mobile}</th>
                  </tr>
                  </thead>
                  <tbody>
                  <aura:iteration items="{!v.persAccountList}" var="accountResult">
                      
                      <tr>
                          <td>  
      
              <input type="radio" name="select" value="" data-value="{!accountResult}" onclick="{!c.radioclick}"/></td>
                          <td>{!accountResult.lastName} </td>
                          <td>{!accountResult.firstName} </td>
                       <td>{!accountResult.zip} </td>
                           <td>{!accountResult.city} </td>
                           <td>{!accountResult.email} </td>
                           <td>{!accountResult.phoneNumber} </td>
                      </tr>
                      </aura:iteration>
                  </tbody>
              </table>



Here on the radio button with the onclick event I am trying to pass the record as a whole to my controller side. But I am not able to do so. Can anyone help me in this?
Hi,

We are trying to develop a Lightning application. Following link tells Professional edition doesn't support Lightning component development. https://releasenotes.docs.salesforce.com/en-us/summer15/release-notes/rn_lightning.htm 

I created a 30 day trial version of Enterprise edition using the following link https://www.salesforce.com/in/editions-pricing/sales-cloud/ but in company details it say as 'Professional edition' yet I was able to create Lightning component but not apex class.

Both are contradicting. Please guide me. 
Hi Gurus, 

I have writen a very short apex code to be able redirect from one Visualforce page to another however, I now have to write a test class, which i am awful at :D 

So it would be great if someone could please assist me :)  

This is my short apex code for the redirection:
 
public with sharing class CustomerSatisfaction
 { public String currentRecordId {get;set;}

  public CustomerSatisfaction (ApexPages.StandardController controller)
    { this.currentRecordId = ApexPages.CurrentPage().getparameters().get('id');}
  
  public PageReference UK_Flag () {                   
           PageReference pageref = new 
                     PageReference('/apex/CustomerSatisfaction_EN?Id='+currentRecordId); 
                     pageref.setRedirect(true);
                     return pageref;}
 
      public PageReference France_Flag () {                   
           PageReference pageref = new 
                     PageReference('/apex/CustomerSatisfaction_FR?Id='+currentRecordId); 
                     pageref.setRedirect(true);
                     return pageref;}
 
}

If someone know how I could write the test then please let me know! Thanks!!
Hello,

When i try the trailhead named 'customize your login process with my domain'. I encoutered a error.

After changed the url name in setup > domain > My domain, the brower give me the following error: 'too many redirect'

Anybody knows how to fix ?

Thanks per advance,

Yannick

url: https://trailhead.salesforce.com/en/modules/identity_login/units/identity_login_my_domain#

 
User-added image

i want display lightning:helpText along with lable of lighting:input field.
<aura:component>
    <lightning:helptext content="Your Name will be your login name" />
	<lightning:input label="Name" name="myname" required="true"/>
</aura:component>



Thanks in advance
Hi Team,

I am accessing the image in to my component  from the static resource. Now i want to implement the onMouseover event on that image.
When onMouseover on that image the background color should change to some other color.
Please help me on this. 
                                     Thanks in advance...
Code Snippet:

<aura:component implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,forceCommunity:availableForAllPageTypes,force:lightningQuickAction" access="global" >
    <lightning:layout >

                                    <lightning:layoutItem size="3" padding="around-small">
                                        <div >
                                            <img style="height: 500px;" src="/resource/Mouseover/" /></div>
                                            
                                        
                                    </lightning:layoutItem>
    </lightning:layout>
</aura:component>
===================================
Reference Image:

User-added image
ChildComponent
--------------
<aura:component >
    <ui:button label="click me" press="{!c.hanldeClick}"/>
    <aura:registerEvent name="componentevent" type="c:SimpleComponentEvent"/>
</aura:component>

SimpleComponentEvent.evt
------------------------
<aura:event type="component" description="component" >
 <aura:attribute name="message" type="string"/>
    </aura:event>
    
    controller
    ------------
    ({
    hanldeClick : function(component, event, helper) {
        var v1=component.get("componentevent");
        v1.setParams({
            "message":'Welcome to sfdcscenarios.blogspot.com'
        });
        v1.fire();
        
        
    }
})


ParentComponent
---------------
<aura:component >
    <aura:attribute name="EventMessage" type="String"/>
    <aura:handler name="componentevent" event="c:SimpleComponentEvent" action="{!c.hanldeParent}"/>
    <c:ChildComponent/>
    {!v.EventMessage}
</aura:component>




Controller
-----------
({
    handleParent: function(component, event, helper) {
        var message = event.getParam("message"); 
        cmp.set("v.EventMessage", message + 'brahmanaidu');         
    } 
    
    
})
trigger Lead_Update on Lead (before insert,before update) {
    String dam ='';
    String jub='';
    String west1 ='';
    String west2 = '';
    String central = '';
    String Gcc = '';
    for(Lead lt : trigger.new){
        if(String.isNotBlank(lt.Dammam__c)){
            
            dam = 'Dammam\n';
            
        }   
        
        if(String.isNotBlank(lt.Jubail__c)){
           
            jub = 'Jubail\n';
            
        }
        
        if(String.isNotBlank(lt.West_North__c)){
             
            west1 = 'West North\n';

        }
        
        if(String.isNotBlank(lt.West_South__c)){
            
            west2 = 'West South\n';
            
        }
       
        if(String.isNotBlank(lt.Central_Region__c)){
            
            central = 'Central\n';
        }
        
        If(String.isNotBlank(lt.GCC__c)){
            
            Gcc = 'GCC';
        }
        
       lt.Region__c = dam+ jub+ west1+west2 +central +Gcc;
        
    }

}

Hi All, 

I was wondering if there is any way of updating an account field in APEX if i have the account ID in the Triggered Object. Right now i am running into the issue that I can not do the following (Trigger is on the Opportunity).

List <Account> AccountsInHierarchy = [SELECT Field_A, Field_B, Field_C
                                      FROM     Account
                                      WHERE  Ultimate_Parent_ID__c = Trigger.new.Account.Ultimate_Parent_Id__c
                                     ];

Whenever I do this I get the following error: 
System.LimitException: Too many query rows: 50001
 

I have already tried limiting the numbers returned by my SOQL Query but the error persisted. Any help would be much appreciated. 

Best, 

FD


 

Hi,
I'm getting following error in "Build a Lightning App with the Lightning Design" Trailhead ..anyone tried it?   Error: SystemChallenge Not yet complete... here's what's wrong:  AccountList's JS Controller doesn't contain a call to the helper's 'getAccountList' method.
what is the advantages of querying data withing the for loop itself like below

for(Account a:[select name from Account])
{
***logic***
}
i am stuck on one problem. i have created dyamic field in lightning . now i want to get the input value? how can i get .

 
Hi Guys,

I have created a data table for custom sobject(test__c) list view.
I used SOQL query to get all the required fields (some are standard fields - Account and contact name) related to test__C.

But the issue here is, when the user clicks the standard fields, they should be able to navigate the Account and contact name pages respectively. For that, I need to make these as hyperlink fileds.

I am not sure how to proceed for this. Any help is appreciated.

Thanks!!
 
  • April 25, 2018
  • Like
  • 0
I have a Site User who accesses records through a VF page. I am encountering a strange problem where, Files uploaded in Lightning is visible but not the files those were uploaded in Classic.
When debugged, SOQL query is returning all in Execute Anonymous, but Debug Logs show only limited (uploaded in Lightning). Below is the code used for querying the files.
List<ContentDocumentLink> docList = [select ContentDocumentId, ContentDocument.title from ContentDocumentLink where LinkedEntityId =:recordId]; 
​system.debug('docList: ' + docList);
Any idea how to solve this? More importantly any idea why this is happening?
Hi there,
I want to use showToast and
show message with multiple lines.
I tried as follow but \n is not working well.
({
    fireToastEvent : function(component, event, helper) {
        var toastEvent = $A.get("e.force:showToast");    
        toastEvent.setParams({
            "title": "Title",
            "message": "This is line 1. \n This is line 2. \n This is line 3.",
            "type": "success"
        });
        toastEvent.fire();
    }
})
is there any idea?

Regards,
LinThaw
 
User-added image

i want display lightning:helpText along with lable of lighting:input field.
<aura:component>
    <lightning:helptext content="Your Name will be your login name" />
	<lightning:input label="Name" name="myname" required="true"/>
</aura:component>



Thanks in advance
My apex controller method takes enum as paramer, that method will be called from lightning component java script controller,How Can I access Enum in lightning component?
<aura:iteration items="{! v.fields }" var="field">
           
            <div class="slds-size_5-of-12">
                <lightning:input aura:id="idName"   label="{!field.Label}"  required="{!field.DBRequired}"  type="{!field.Type}" class="slds-p-top_small slds-m-top_medium" />
            </div>
             <div class="slds-size_1-of-12"></div>
            </aura:iteration>
and i want  ,whatever i type in input box of firstname,lastname or whatever  the value of that field should be store in attribute of type Contact otherwise i want all the data as Json in lightning component  Js controller  Please help me to solve this...
  • April 25, 2018
  • Like
  • 1
Challenge Not yet complete... here's what's wrong: 
Could not find a custom field on the Account object with the API Name 'Support_Plan_Start_Date__c'.User-added image
I am pretty new at this and trying to create a lightning component so that community users that can't remember their username are able to enter an email address to retrieve their username. If the email they enter matches an existing user account's listed email address it will kick an email to that address with the username of the account. Anyone have anything or knowledge of an open source resource that might have something similar? Thank you!
Hi ,
I have implemented Digital signature using Visualforce pages and java script. It's working good in desktop and Ipad. I am facing problems in android devices. Can some one suggest the possible solution for this OR share thoughts/implementation using Lightning components please ? 

Regards,
Chethan.S.N
Hi ,

I am getting an issue when uploading jquery script file  to get pagination in lightning component.
Issue is  
Uncaught TypeError: Cannot read property 'expando' of undefined throw

 
I am using a lightning:datatable to display various fields, including a URL field which links to a printable PDF.

In the Spring 18 release, the URL field in the datatable now points to "javascript:void(0)" in the href attribute and the title attribute now contains the url which I am trying to set in the href field. 

Can someone please provide me a code example on how to get the href refrecne to work correctly?
Hi All,  

Just had a query, how can I create a custom tab on accounts page like news, related list, details in lightning? Also, how can that be brought in salesforce1 app?  We had creted such custom tabs in the account page b ut those are  visible only in desktop but not in mobile. What am I missing?

Thanks for the response
Hi 

I have scnerio where I need to capture IP address of current User in Lightning Community, is any way standard way  where I can capture IP address inside Lightning Components.
I have seen third party tools like - https://www.ipify.org/ to get Ip address 
Any recommendations are appreciated 

Thanks 
Hi all,

Im currently facing an issue with the "e.force:createRecord" when trying to pre populate some fields from an object to another one. Im using the "defaultFieldValues" and almost every field is populated correctly (Lookup, text,etc) except Currency and Master-Detail.

For your understanding of the issue, when i query the data and show it on the console its shows completly fine ("234" currency field), but at the moment to pre populate it just dont, it keeps the field blank. Also ive tried to: ParseInt, Integer the value, and nothing.
Also, the fuctionallity on Classic mode it working fine, so its not a permision issue (Profile, FLS,etc).

Do you know why is this happenening? Happens to 2 different currency field and also to the master-detail (havent reasearch or even tried anything on this but if you can help also i will appreciate it).

Thanks!!
Hi All,

Getting the below error when i click on quick action containing a lightning component. 
Action failed: forceChatter:lightningComponent$controller$doInit (undefined is not an object (evaluating 'fn-apply')]

quickActionHandlerHelper.js failed to create component - forceChatter:lightningComponent

Let me know what the issue could be.
<aura:component controller="SOWManager_CTL" implements="flexipage:availableForAllPageTypes">

      <aura:attribute name="theaters" type="String[]"/>
      <aura:handler name="init" action="{!c.doInit}" value="{!this}"/>
      <form>      
           <div class="header">
               <div style="margin-left:15%;float: left; margin-top:0.5%;" >
                 SOW ID : <ui:outputText aura:id="sowID"  value="{!v.Name}" />
             </div>
             <div style="margin-left:50%;float: left;margin-top:0.5%;">
                 SOW Status : <ui:outputText aura:id="sowStatus"   value="{!v.SOW_Status__c}" />
             </div>
         </div>     
        <lightning:tabset >
        <lightning:tab label="General Info">
             <fieldset class="slds-form--compound" style="margin-left:15%;margin-right:15%">
               <div class="slds-form-element__group">
                <div class="slds-form-element__row">
                  <div class="slds-form-element slds-size--1-of-2">
                      <lightning:select  name="theaterGeo"  label="Theater/Geography" required="true">
                          <option value="" text="Select Theater/Org"></option>
                          <aura:iteration items="{!v.theaters}" var="theater">
                            <option value="{!theater}" text="{!theater}"></option>
                        </aura:iteration>
                    </lightning:select>
                  </div>
                  <div class="slds-form-element slds-size--1-of-2">
    
                   </div>
                </div>
              </div>
            </fieldset>
        </lightning:tab>
 
    </lightning:tabset>

        
       
    </form>
</aura:component>
HI,
I am working on lightning component where I need progress indicator. I am using slds progress indicator but it is not showing css same as shown in the slds guide.
I have used the same code mentioned in the guide.https://www.lightningdesignsystem.com/components/progress-indicator/#flavor-base-default
But still it is not showing connecting line of two button. please find screenshot of issue.User-added image
According to guide image bar should look likeUser-added image

Please help me on the same

Thanks
Shikha
One approach we have tried is having a Lightning Component with a button and adding the component to the specific record page, however this approach makes the UI inconsistent.
Is there a way for one component to reference the functions in another without embedding?

If I have to embed the component, how do I reference there parent function from a  child component and vice versa?
Hi folks, 

I try to complete the "Build a Battle Station App" -> Modify the User Experience. Trail to complete. I checked everything and did it 3 times but every time I get the error:

Challenge Not yet complete... here's what's wrong: 
The 'Resources' related list was not found on the Page Layout 
Note: you may run into errors if you've skipped previous steps.

The Resources Column is in the Page Layout and I add the needed objects. 

Anybody an Idea?
Hi All,
Is there a way to bookmark a question from this forum?
Suppose a come across a question and I want to bookmark that question for future refrence. Can I do that?
Currently I am commenting on the already answered questions as a way to bookmark it.

Thanks,
Sathwick
Hi,
I was going through practice session about constructors but my program keeps on failing

I used the code:
public class TestObject2{
    private static final Integer DEFAULT_SIZE = 10;

    Integer size;

   //Constructor with no arguments
   public TestObject2() {
       this(DEFAULT_SIZE); // Using this(...) calls the one argument constructor    
   }

   // Constructor with one argument 
   public TestObject2(Integer ObjectSize) {
     size = ObjectSize;  
   }
}


and At Execute Anonymous Window Giving:

TestObject2 myObject1 = new TestObject2(42);
TestObject2 myObject2 = new TestObject2();

I am getting an error:

Line: 1, Column: 25
Constructor not defined: [TestObject2].<Constructor>(Integer)

What is wrong here?

When someone takes the time/effort to repspond to your question, you should take the time/effort to either mark the question as "Solved", or post a Follow-Up with addtional information.  

 

That way people with a similar question can find the Solution without having to re-post the same question again and again. And the people who reply to your post know that the issue has been resolved and they can stop working on it.