I have an activity , which calls Load-Datapage D_ABC. A new requestor runs the datapage as a background process. D_ABC is a complex datapage and takes long time to execute. Main thread finishes processing and waits for D_ABC to finish loading. UI freezes till the loading is completed.
1. Is there a way to avoid UI freeze and load the data while the background requestor is still executing ?
If I use connect-wait after load-datapage , main thread keeps waiting. With out connect-wait after Load-Datapage method , D_ABC runs in the background.
2. I would like to know if Is there a possibility to merge this data back to main thread with out connect-wait and show it in UI ?
Well you don't need anything in UI. You can just a reference to the data page in a pre activity to set any parameter and the data page will be loaded even if you have nothing to do with said fake parameter
Using "Defer Load Contents" in the section will enable you to load the DataPage asynchronously,It will not freeze the UI but it will show the data what it has loaded and remaining parts will be shown as "Loading ..."