Reuseable Part positioning

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
soa
Posts: 339
Joined: Mon Dec 07, 2015 3:15 pm

Reuseable Part positioning

Post 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?
tsupartono

Re: Reuseable Part positioning

Post by tsupartono »

Would you be able to provide a sample webpage that demonstrates this behaviour?
User avatar
Stewart Marshall
Posts: 417
Joined: Thu Nov 05, 2015 5:25 pm

Re: Reuseable Part positioning

Post by Stewart Marshall »

The Initialize event is fired AFTER the UI is first rendered.

Try putting the processing in CreateInstance which is fired before.
Stewart Marshall

Independent IT Consultant
www.marshallfloyd.com.au
soa
Posts: 339
Joined: Mon Dec 07, 2015 3:15 pm

Re: Reuseable Part positioning

Post 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.
User avatar
Stewart Marshall
Posts: 417
Joined: Thu Nov 05, 2015 5:25 pm

Re: Reuseable Part positioning

Post 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.
Stewart Marshall

Independent IT Consultant
www.marshallfloyd.com.au
tsupartono

Re: Reuseable Part positioning

Post 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.
soa
Posts: 339
Joined: Mon Dec 07, 2015 3:15 pm

Re: Reuseable Part positioning

Post 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.
tsupartono

Re: Reuseable Part positioning

Post 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.
soa
Posts: 339
Joined: Mon Dec 07, 2015 3:15 pm

Re: Reuseable Part positioning

Post by soa »

It now says 12:51pm on the web but mobile is unchanged.
tsupartono

Re: Reuseable Part positioning

Post 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.
tsupartono

Re: Reuseable Part positioning

Post 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?
soa
Posts: 339
Joined: Mon Dec 07, 2015 3:15 pm

Re: Reuseable Part positioning

Post 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.
soa
Posts: 339
Joined: Mon Dec 07, 2015 3:15 pm

Re: Reuseable Part positioning

Post by soa »

I've setup my page in Longrange as well in case further investigation is required,
Post Reply