function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
SFDC Forum 9SFDC 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
SFDC Forum 9SFDC Forum 9
Please reply as soon as possible.

Render is running many times, some times it gives null and sometimes it gives recordId as exptected