• Zachary Alexander 22
  • NEWBIE
  • 0 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 4
    Replies
I am unable to save the component LTNG_Access_Control_Challenge_Wrapper.cmp at all. This is also true of the wrapper file in the demo. Any time I make any change and attempt to save either file, I receive this error:

Failed to save LTNG_Access_Control_Challenge_Wrapper.cmp: An unexpected error occurred. Please include this ErrorId if you contact support: 510282782-23865 (167693694)

Thanks for any help / suggestions
I am trying to achieve Autosave of the record every 5 minutes in Lightning.

Here is the code for Common component which can be included any page that record has to be auto-saved without user intervention

Everything works as expected. Only issue is that I can't kill autosave recursion loop when I move to other lightning page. Is there a way to clear the autosave loop , I am using cleartimeout in the code.


autoSave : function(component,event)
    {
        
        var thisHelper=this;
        var windowHelper=window;
        var timeValue=component. get("v. timer"); 
                
        component. set("v. timerValue", window. setTimeout(     
            
            $A. getCallback(function(){
                // To avoid auto save method call if component becomes invalid
                if(component. isValid()){
                    //Fire component event to access child component methods
                    var autoSaveEventValue = component. getEvent("autoSaveEvent");
                    autoSaveEventValue. fire();               
                    
                    thisHelper. autoSave(component);
                }
                // Clear the timer if component becomes invalid
                else{
                    windowHelper. clearTimeout( component. get("v. timerValue") );
                    
                }
                
                
            }
                          ),timeValue));
        
        
        
    },
I have a lightning component that implements lightning:actionOverride how do I get the recordId of the parent when the action is triggered from a related list?

Hello everybody, This is my first Salesforce post.

 

In my controller, I use a query to get the field related to a rich text area.

My need is to get, for example, 200 first character of a rich text area without HTML markup.

 

I don't know if a method already exists to perform this because when I try to change the field type from rich text area to text area, Salesforce propose if I want to keep or not the HTML markup of rich text area contents.

 

Thank you

M.

  • March 11, 2011
  • Like
  • 0