You need to sign in to do that
Don't have an account?
SFDC Forum 9
Lightning component on utility items
Hi
I got to place lightning comp in utility items, but v.recordId is throwing null in 'init' function.same works in cmp framework.
As per one of the forums, I was suggsested to use 'afterRender'. i have tried , somehow i did not get exptected result.
So i have done research, and used 'render' as below.I am able to capture recordId in "onRender".
But when I use this "component.set()" to assign some value to one of the attributes in "onRender", it is getting called continuosly (more than 100 times)
<aura:handler name="render" value="{!this}" action="{!c.onRender}"/>
Please suggest ASAP
I got to place lightning comp in utility items, but v.recordId is throwing null in 'init' function.same works in cmp framework.
As per one of the forums, I was suggsested to use 'afterRender'. i have tried , somehow i did not get exptected result.
So i have done research, and used 'render' as below.I am able to capture recordId in "onRender".
But when I use this "component.set()" to assign some value to one of the attributes in "onRender", it is getting called continuosly (more than 100 times)
<aura:handler name="render" value="{!this}" action="{!c.onRender}"/>
Please suggest ASAP
Render is running many times, some times it gives null and sometimes it gives recordId as exptected