Spa UI screen not refreshed once loaded

This thread was migrated from an old forum. It may contain information that are no longer valid. For further assistance, please post a new question or open a support ticket from the Customer Support portal.

I have a form on post show i was making a service call ..once service call get successful response... i was loading data to the segment inside the form which works perfect in native when i am trying to achieve the same...but it was only getting refreshed after when i touch any UI event...Let me know how to sort this out...

Hi,

Once assign the data to segment call the forceLayout on the parent of segment to reflect the UI changes on the screen.

syntax : If form is the parent of segment then call formID.forceLayout();

Hi,

Thanks, I have tried the above solution but couldn't get any positive result , my Segment is inside a flex container , i have written syntax like formID.flxContainerId.forceLayout(); also i have tried formID.forceLayout(); but UI is not refreshed i need to tap somewhere view the result

Hi,

is the issue still exists? if possible can you share the sample application and plugin version.

Hi @Unv Cvmewon​ ,

No issue is not resolved by the above resolutions , but i did a work around of adding a dummy animation and on animationEnd reload the segment which worked for me to resolve my issue.

Thanks

Hi @Amvndv Allvn​ , in the animationEnd event platform will call the currentform forcelayout, Because of this UI issue is resolved.

Hi @Unv Cvmewon​ ,

I tried with currentformId.forceLayout() but that doesn't seems to help , so as a work around i have followed the approach as i told above, please share if you have sample with fix.

Thanks

Try performing the forceLayout method on the widget's parent container, rather than the root form.

Eg:

this.view.mySegment.parent.forceLayout();