Page 1 of 1

Tab doesn't change colours on return from a called programm

Posted: Fri Apr 20, 2012 10:22 am
by leomoore
We are using tabs instead of a list menu. A simple example is thusly.

The user is at the home tab which turns white with blue lettering.

The user clicks the ChgPassword button.

The Home tab turns blue with white lettering while the ChgPassword dialog is active.

User clicks Exit in the ChgPassword dialog, which returns to the Home tab.

The Home tab remains blue with white lettering until it is clicked although the ChgPassword dialog is gone.

Do you have any advice on how to make a tab return to its colouring when it is the active screen, again?

Re: Tab doesn't change colours on return from a called programm

Posted: Mon Apr 23, 2012 11:04 am
by Brian
Are you setting the Active Tab property before redisplaying the screen?

Re: Tab doesn't change colours on return from a called programm

Posted: Mon Apr 23, 2012 12:46 pm
by leomoore
It does not appear that we are setting when returning from programmes called from a tab panel selection. We use it to determine next programme, but not when we use back or next.

Are you saying that if while on the home tab (0) we click a button that calls another programme, upon return from that programme we should reset the active tab to 0?

What about if we click on Change Password or Logout but exit without changing the password or without logging out?

Re: Tab doesn't change colours on return from a called programm

Posted: Mon Apr 23, 2012 4:15 pm
by Brian
Without knowing your application, it is hard to know what is happening. By binding the Active Tab property to an RPG field, you can explicitly control which tab is selected when the screen is displayed. I would recommend binding both the Active Tab and Tab Response properties to the same field name. This will ensure that your application returns to the same tab on redisplay. If this does not improve your situation, we will need to know more about your application.

Re: Tab doesn't change colours on return from a called programm

Posted: Tue Apr 24, 2012 9:41 am
by leomoore
Sounds reasonable. I will give your suggestion a try. Thanks, again, for all the help you and your compatriots have provided.