Posts

Showing posts from September, 2022

Manipulate Records with DML

  public class AccountHandler {      public static Account insertNewAccount(String accountName){         try{         Account newAccount = new Account(Name=accountName);         insert newAccount;             return newAccount;                      }catch(DmlException e){             System.debug('A DML exception has occured:'+                          e.getMessage());             return null;         }              } } Apex Code AccountHandler.insertNewAcount('');

ACCOUNT HANDLER TASK

 public class AccountHandler {         public static void AccoutRepUpdate(List<Account> acclist)     {     set<id>owrid=new set<id>();     for(Account acc:acclist)     {         owrid.add(acc.OwnerId);         system.debug('Owenrid##'+owrid);     }     list<user> userlist=new list<user>();     userlist=[select id,name from user where id=:owrid];     system.debug('userlist##'+userlist);     for(User us:userlist)         {            for(Account acc:acclist)            {                acc.Account_Rep__c=us.Name;            }         }     }         public static void AnnualrevUpdate(List<Account> annualr...

Gather Essential Tools

  Quiz +100 points 1 What's the advantage of using Chrome as a Lightning component development environment? A . It's faster than Firefox or Safari B . It provides comprehensive web development tools C . You can use the Lightning Inspector extension with Chrome D . A and C E . B and C 2 What makes VS Code a better tool than Developer Console for developing Aura components? A . It has syntax highlighting B . It has Aura-components specific features C . It has a Preview button D . A and B E . B and C

Review Fundamental Skills

  Quiz +100 points 1 At least how comfortable should you be developing in JavaScript before you take on writing your own Aura components? A . Novice. You have surface-deep knowledge of the language. B . Passing familiarity. You've written at least one JavaScript function in your career. C . Proficient. You're comfortable with the language's quirks, and have written a decent amount of JavaScript in the past. D . You know it better than you know yourself. You're a veritable JavaScript wizard. 2 What's the largest difference between an Aura component and an SLDS component? A . There is no difference. B . SLDS components come with CSS built in, while Aura components do not. C . There's no executable aspect to any SLDS component. D . SLDS components must be part of a Lightning page, while Aura components can stand alone. 3 What's one fundamental difference between Visualforce and Aura components? A . JavaScript is necessary to write Visualforce, while it's op...

Use the Navigation Service and Reuse Visualforce

  Quiz +100 points 1 What does the Navigation Service do? A . Navigate inside or outside Salesforce B . Retrieve Salesforce records C . Open files D . A and B E . A and C 2 Users complain a lot about a Visualforce page performance. Additionally, they would like to make the page accessible on mobile. Which is the recommended solution? A . Use SLDS styles in the page so that it looks nicer. B . Reimplement the page with Lightning Web Components. C . Reimplement the page with a third-party front-end framework. D . Use Lightning Components for Visualforce to extend the page functionality using LWC.

Learn How Coding Concepts Apply to Lightning Web Components

  Quiz +100 points 1 How does rerendering work for a Lightning web component? A . The Lightning Web Components engine re-renders the component on the server only when needed. B . You initiate re-rendering by calling the rerender() function in JavaScript. C . When an observed property changes, the component re-renders automatically on the client. D . The component re-renders on the server the first time you request the page, and on the client thereafter 2 How do components pass information up to a parent component? A . By firing DOM events B . By changing the value of a public property in the parent C . By calling a public method in the parent D . B and C E . A and C