Posted in: General Discussion
Pavan KumarJune 22, 2020 at 4:37 am #5775
I would like not to load few tabs based few conditions hence am using deffered section in each tab. but the code written to get control ids of controls in deffered section is derived as undefined (since those are not laoded).
Main CV ->Tabsection->Tabs(each tab has deffered section).
console.log(this.ui.get(“Text1”));– this is undefined
How to access controls which are in deffered section. Please let me know the approach.
I have added the below workaround from the deffered section article but still facing same issue.
If you have a Deferred Section inside a coach view there are potential addressing issues. To avoid these issues you should add a load Event Handler containing the following code:
– add an unload Event Handler containing
– This will workaround the addressing issue.Pavan KumarJune 22, 2020 at 10:48 pm #5776
Can anyone help me on this pleaseSPARK SupportJune 25, 2020 at 7:50 am #5779
Are you trying to reference a control inside the Deferred Section before it is lazy loaded?
Stephen P.Pavan KumarAugust 4, 2020 at 11:22 pm #5795
Yes am trying to access before it is loaded.SPARK SupportAugust 15, 2020 at 3:38 pm #5800
That is the issue. You cannot reference a control that is not loaded. If your use case requires the control to be referenced before it is displayed, then you should set them to a visibility of None instead of using a Deferred Section.
You must be logged in to reply to this topic.