Page 1 of 1

(RDMLX) Hide the Back Button

Posted: Tue Feb 04, 2014 3:49 am
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.

Re: (RDMLX) Hide the Back Button

Posted: Tue Feb 04, 2014 8:59 am
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.

Re: (RDMLX) Hide the Back Button

Posted: Tue Feb 04, 2014 6:02 pm
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.