Skip to Content
0
Mar 06, 2015 at 08:35 PM

Force Reload

303 Views

Hi All,

I have a problem with dynamic View.

I have a Page with list when select an item go to a second page to show some fields.

The second Page fields is create dynamic, so before I do .to(secondpage) I destroy the page (if its created).

The problem is: when I destroy the page and create its again, the controller is load twice, the sapui5 pass through onInit(), onBeforeRenderer(), onAfterRender() twice, and I have some problems because I create the fields dynamic.

One problem is with Table, on second call the table gets smaller, like this pics:

First Call:

http://i.imgur.com/AGoe9Dy.png

Second Call:

http://i.imgur.com/k9fcUjY.png

How I can force reload/re-render the Page without problems?

Thank You