Page 1 of 1

Reuseable Part positioning

Posted: Mon Mar 20, 2017 10:18 am
by soa
I have a web page which contains two reusable parts panels both set to fitboth. In the Initialize event for the page I'm setting one to be visible and one invisible. The first panel, a log on page, has another panel centered within it (a box containing a user id, password and a button).

The issue I'm having is when I show this page within the LANSA Mobile app on my ipad the centered panel appears first on the right of the screen and then jumps to its correct position a fraction of a second later which doesn't look good. It seems as if it making the adjustment from the design time position to run time position while I'm looking. This doesn't happen in the browser.

Any ideas?

Re: Reuseable Part positioning

Posted: Mon Mar 20, 2017 10:58 am
by tsupartono
Would you be able to provide a sample webpage that demonstrates this behaviour?

Re: Reuseable Part positioning

Posted: Mon Mar 20, 2017 11:11 am
by Stewart Marshall
The Initialize event is fired AFTER the UI is first rendered.

Try putting the processing in CreateInstance which is fired before.

Re: Reuseable Part positioning

Posted: Mon Mar 20, 2017 11:39 am
by soa
Stewart I've trioed tour fix but I cannot see if it helps because nothing I do will update the copies of the page and reusable parts on LANSA mobile. I've cleared the Safari cache and deleted and re-added the webpage to LANSA mobile and I still get the old one.

In the following url

https://bosho.boardofstudies.nsw.edu.au ... eloper=yes

the caption is NESAmobile!, on the ipad the ! mark is missing even though I've checked it in to the iSeries half a dozen times.

Re: Reuseable Part positioning

Posted: Mon Mar 20, 2017 11:52 am
by Stewart Marshall
I can see the exclamation mark, and the positioning of the sign on seems fine on Chrome on the PC and LANSA Mobile on my iPhone.

Re: Reuseable Part positioning

Posted: Mon Mar 20, 2017 11:56 am
by tsupartono
Can you go to the Settings >> Development, then tap the Clear Cache button.
Then restart the LANSA Mobile app.
See if this fixes the issue.

I haven't been able to replicate this caching behaviour you are experiencing (when I closed the webpage session by tapping the X mark and reopen it, I will get the latest HTML). If you continue to have this issue, let us know and we'll investigate further.

Re: Reuseable Part positioning

Posted: Mon Mar 20, 2017 12:12 pm
by soa
I've tried clearing the cache from the developer menu and can see the message at the top of the screen and have restarted the LANSA mobile app but I'm still seeing the old version of the page. The latest version has a caption of NESAmobile 12:06pm. This is what I see in the browser but app still shows a version from hours ago.

Re: Reuseable Part positioning

Posted: Mon Mar 20, 2017 12:38 pm
by tsupartono
When you have a moment, can you alter the screen (e.g. change the 12.06 timestamp) so I can test this out on my end?
Thanks.

Re: Reuseable Part positioning

Posted: Mon Mar 20, 2017 12:52 pm
by soa
It now says 12:51pm on the web but mobile is unchanged.

Re: Reuseable Part positioning

Posted: Mon Mar 20, 2017 12:55 pm
by tsupartono
On my LANSA Mobile app, I can see the new page (now it says 12.51) when I reopen the page (without having to clear the cache, or closing the app).
I have tested on my iPhone running iOS 9 and iPad running iOS 10 - both seemed OK to me.

Can you verify that your version of LANSA Mobile is 1.25.0.3?

The only thing I can recommend at this stage is uninstall your LANSA Mobile app and re-install it, see if that fixes the issue.
Try also on a different device if possible.

If the issue remains, we might need to run some tracing on your traffic.

Re: Reuseable Part positioning

Posted: Mon Mar 20, 2017 1:05 pm
by tsupartono
If nothing works, to help us troubleshoot this, one thing I can recommend to try right now is to open your webpage in LongRange (you can easily create a new menu item from LongRange Studio, from the new menu, choose Web View, and put your URL there).
Make sure you tick the box that says "Attached the form view to a form session", this will give you the "close page" button (the X mark at the top right corner).
Does it show your changes when you update your VL webpage?

Re: Reuseable Part positioning

Posted: Mon Mar 20, 2017 2:20 pm
by soa
My version is LANSA Mobile is 1.25.0.3?

I have removed the app and re-installed it and it now seems to be working OK. I had a few weeks away from development and I didn't experience this before.

Thanks for your help.

Re: Reuseable Part positioning

Posted: Mon Mar 20, 2017 2:32 pm
by soa
I've setup my page in Longrange as well in case further investigation is required,