Search Support
-
Pavan KumarJune 22, 2020 at 4:37 am #5775
Hi Team,
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:
- bpmext.ui.loadView(this)
– add an unload Event Handler containing
- bpmext.ui.unloadView(this)
– This will workaround the addressing issue.
SPARK SupportJune 25, 2020 at 7:50 am #5779Hi Pavan,
Are you trying to reference a control inside the Deferred Section before it is lazy loaded?
Regards,
Stephen P.
Pavan KumarAugust 4, 2020 at 11:22 pm #5795HI Stephen,
Yes am trying to access before it is loaded.SPARK SupportAugust 15, 2020 at 3:38 pm #5800Hi Pavan,
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.
Regards,
Stephen P.
-
|
You must be logged in to reply to this topic.