Set a detail property in the CustomEvent function Object() { [native code] } to send data to a receiving component. The event listener’s handler function provides access to the data in the detail property for receiving components. The detail property is not subject to any type restrictions or structure thanks to the CustomEvent interface. However,…
Search Results for:
Lifecycle Hooks pt. 2
Flowing from parent to child are both hooks. Because they are not yet created, child components cannot be accessed from callbacks. Use this to gain access to the host element. Use this.template to gain access to a component’s template’s elements. To communicate with the environment of a component, use connectedCallback(). Consider using it for: Communication…
Price Book Entry Bulk Load pt. 2
In a previous blog, we talked about the format that would be required if you were to create a CSV for loading Price Book Entries via a tool such as Workbench. We also walked through the required fields and values that should go in those fields when doing a bulk load of Price Book Entries. …
Lifecycle Hooks pt. 1
When a component instance is created, the constructor() method is called. Avoid adding properties to the host element while it is being built. In any other lifecycle hook, you can provide the host element additional properties. From parent to kid, the function constructor() flows. The function constructor() must adhere to these specifications from the HTML:…
Price Book Entry Bulk Load pt. 1
In a previous blog, we talked about how to create Price Book Entries in your Salesforce instance. During that walk through, the entries were created manually. Oftentimes you may want to bulk load your Price Book Entries so that you are not manually creating them. This saves both time and mistakes as it is much…
How to Set Up Product Records for Scheduling
In a previous blog, we discussed what product schedules are and how to enable them from a system perspective. However, the customizability of product schedules allows you to create unique schedules by product. In order to follow along in this blog, ensure that product schedules are enabled. To do this, navigate to Product Schedule Settings…