(RDMLX) Hide the Back Button

Please do not use to report errors- use your regional help desk.
Please mark posts as being for RPG or RDMLX (LANSA) developer.
To subscribe by email, display this forum, scroll to the end and select ‘Subscribe Forum’.
Post Reply
MarcusLancaster
Posts: 48
Joined: Wed Nov 06, 2013 1:28 am

(RDMLX) Hide the Back Button

Post by MarcusLancaster »

Hi all.

Is there any way to hide the back button that appears in the top bar alongside the "home" icon.

I'm providing a logon form to the user. They log on, perform work on several different forms most of the form transitions use STACK. Then they log off.

Logging off takes the user back to the logon form (via a Set_Op_Form_Open with a presentmode of REPLACE) but the back button still appears (because I guess various STACK form opens were performed whilst the user was online??) and allows the user to go back to the previous screen and effectively "logon" without having entered a password.

I've had a look through the documentation and example, but can't find anything obvious. Anybody out there done this? If they can't use the back button, then they will have to logon normally.

Cheers!

Marcus.
MarkDuignan
Posts: 346
Joined: Wed Apr 18, 2012 10:33 am

Re: (RDMLX) Hide the Back Button

Post by MarkDuignan »

I think if you go into LongRange Studio and define you own back button you can do that.

Once you have you own back button you can try having it do nothing - or cause it to invoke your sign on logic.

Since it can have the text “Log On” it could possibly replace your current sign on button.

See http://www.longrangemobile.com/docs/LRP ... andsar.htm for command button (item) positioning.
MarcusLancaster
Posts: 48
Joined: Wed Nov 06, 2013 1:28 am

Re: (RDMLX) Hide the Back Button

Post by MarcusLancaster »

Hi Mark,

Thanks for that... so, on my "login" page I've overridden the back button, so that it just runs a form refresh;

#com_owner.Set_Op_Form_Refresh Event('/System.Menus.OverrideBackButtonMenuItemV2.Onclick')

and that works... however... if I've already logged on and am progressing around the app (where the normal BACK menu option appears) and I issue a;

#com_Owner.Set_Op_Form_Open Event('PHBN_LOGOUT.ONCLICK') Name(MYLOGONFORM)

to log me out (by returning me to the logon page) then the back button shown on the logon form isn't my override back button, its the default back, which obviously works as normal.

I've confirmed this by changing the text of my override back button to something obviously different. Its like the form open isn't picking up my custom menu when I use Set_Op_Form_Open to go there...

I'll have a play with it to see if I can isolate what happening... but have you any ideas what I might be doing wrong?

Cheers.

Marcus.
Post Reply