Component markup Controller/Helper Java script var upOptions = [{ label: ‘Please Select’, value:” }]; upOptions.push({ label: ‘Account Upload’, value:’Account Upload’ }); cmp.set(“v.uploadOptions”, uploadOptions);
Author: doozyspot
Edge Browser / Windows 11 Edge Trusted Sites – Adding Trusted Sites
Search in the Start Menu for the Control Panel.Click or double-click the Internet Options icon.In the Internet Properties window, click the Security tab.Select the Trusted sites entry and click the Sites button.Enter the address for the trusted website in the Add this website to the zone text field.Click the Add button, then click OK to […]
Salesforce Aura Component Refresh View
To refresh a view in both custom and standard component use below $A.get(‘e.force:refreshView’).fire();Ex: From the below table Child details are multiple child records, when adding/deleting/updating child records costs Parent summary table top one should get update with totals. This can be done with simple refresh call which will update parent.
Salesforce Apex/Standard REST API Response Suppresses Null Values for where not required
Removing null values in REST API response / Beautify Response / Suppresses null values / JSON Serialize There is an out of box method available to remove all the null values from the JSON response it suppresses null values when serializing Apex objects into JSON content. Syntax:public static String serialize(Object objectToSerialize, Boolean suppressApexObjectNulls) Parameters objectToSerializeType: ObjectThe Apex object to serialize.suppressApexObjectNullsType: BooleanIf true, remove null values before […]