Questions tagged [init]
For questions related to the Init event used in lightning component development. Init is a predefined event sent to every component when component it is initialised.
11 questions
0
votes
0
answers
33
views
Kakao JS SDK Calls in Salesforce
I'm trying to develop a Salesforce component that makes a request to KAKAO API using the KAKAO JavaScript SDK.
this is my lwc Javascript code to initiate Kakao App
import {LightningElement} from 'lwc'...
0
votes
0
answers
1k
views
How to clear the sessionstorage on browser refresh in Aura component?
I am using sessionStorage.clear() to clear the sessionStorage in Init method, but this one is clearing after clicking 2 times on refresh button of the browser, is there a way we can clear after ...
0
votes
1
answer
276
views
Custom App does not refresh when passed URL in Summer 21
We have two custom apps: a Search app and a Custom360 app.
The Search app provides a list of customers and their opportunities to the agent. Selecting a customer creates a custom URL in code which ...
0
votes
1
answer
2k
views
init method of Visualforce page on standard object layout doesn't render in lightning experience
Basically, I've got a pretty simple setup here, I need to register an event listener, so I did that on init. This works really well in Salesforce classic. In lightning experience, the init method ...
2
votes
1
answer
4k
views
How do I clear a selected onchange value from an aura component on reload?
I have an aura component with 3 dropdowns which are dependent on each other.
Dropdown 1 is loaded on init.
Dropdown 2 is loaded on a selection in 1.(image below blue section 1)
Dropdown 3 is loaded ...
0
votes
1
answer
561
views
How to pass parameter to recordEditForm on init
I have 2 child components in a wizard the first on the first page the second on the second page. I pass a recordtype Id from the first component to the second component trough an event how do I pass ...
0
votes
0
answers
2k
views
Using promises with aura component callbacks
I noticed there a number of questions listed regarding this topic but I don't have the time to parse through all of them and look for the relevant information. I was hoping someone could quickly ...
0
votes
1
answer
783
views
On change of designer attribute, init() handler is called again
We are using lightning components in a community. We drag drop the components into a template and configure through designer attributes. For one of such lightning component, there is an init() handler ...
1
vote
1
answer
2k
views
Custom Lightning Component not getting refreshed under Utility Bar
I have a component under Utility Bar. When the owner is changed in the case detail. The component needs to pick the latest update and it will show number of cases that logged in user owns.
When i ...
0
votes
1
answer
39
views
Component attribute set by one method coming as null in second method
I am calling two functions in my lightning bundle init in the following order
helper.fetchAccountRequestAddressDetailsHelper(component, event, helper);
console.log('before fetch'+component.get("v....
1
vote
1
answer
595
views
can parent handle Childs event fired by child during init?
I have a child component
<aura:component controller="campingController">
<aura:handler name="init" value="{!this}" action="{!c.doInit}" />
<aura:registerEvent name="add" type="...