Lightning

How to convert attachments to files in salesforce ?

Scenario I have uploaded an attachment (salesfiorce_migration_guide.pdf) to an opportunity record from classic salesforce. The uploaded document record has the following actions where ‘view’ action is a link to download the file. Next, uploading another file (router-sample.pdf) to the same opportunity record using upload file functionality in lightning. The uploaded files in the above and …

How to convert attachments to files in salesforce ? Read More »

Lightning Component for Communicating Server Side Aura Method – Best Practice 1

Aura framework provides a javascript action function to send a request from the lightning component to apex controller and it returns the response back to the client side. Please refer this link to know how the server side action is handled by the client-side controller. In this blog we are explaining the best practices can be …

Lightning Component for Communicating Server Side Aura Method – Best Practice 1 Read More »

Action Function in Salesforce ?

Action Function is an apex component in visual force page. Apex: Form tag enclosed in the action function tag, which can be able to call the controller method. Action function invoked from the JavaScript as XHR (XML Http Request).   For Details <apex:form > <apex:actionFunction action=”{!register}” name=”registerStudent” rerender=”showstate”> <apex:param name=”studentData” value=”” /> </apex:actionFunction> </apex:form>