NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: rupertvz on October 24, 2011, 06:37:53 AM

Title: Hiding a tab based on drop-down condition
Post by: rupertvz on October 24, 2011, 06:37:53 AM
Hi Guys,

On a wizard-form;

Is it possible to hide a tab based on a drop-down value selected on a previous tab?
I notice in some earlier posts that the dynamic option was not yet supported, not sure if it is supported already?
I am trying p_web.c002:field = 1 as a condition, but doesn't work.
Not sure where I am going wrong ...
Title: Re: Hiding a tab based on drop-down condition
Post by: Bruce on October 24, 2011, 07:20:50 AM
try

p_web.GSV('c002:field') = 1

cheers
Bruce
Title: Re: Hiding a tab based on drop-down condition
Post by: rupertvz on October 24, 2011, 07:44:25 AM
Thanks Bruce,

Should I use the "Tab Condition" or the "Tab Hide IF" rather?

I tried both options, but can't get it to work.

Should I do something on the drop-down box to make the tab "refresh"?
Title: Re: Hiding a tab based on drop-down condition
Post by: Rene Simons on October 24, 2011, 01:29:13 PM
Hi Rupert,


Keep in mind that sending values to the server and resetting fields (equates) can be a bit delayed.

Kind regards,
Rene
Title: Re: Hiding a tab based on drop-down condition
Post by: Bruce on October 24, 2011, 11:16:28 PM
what Rene said plus;

>> Should I use the "Tab Condition" or the "Tab Hide IF" rather?

Tab hide IF.

cheers
Bruce
Title: Re: Hiding a tab based on drop-down condition
Post by: rupertvz on October 25, 2011, 12:49:24 AM
Thanks Rene, Bruce,

I am on version 5.37
I still can't get it to work, what is the command to manually reset / refresh the "tab"?

What I've done;
1.  Gave the tab an equate label;  Tab1a
2.  Clicked the box "send new value to server"
3.  Entered the Server Code to set the new session variable value
4.  Upon changing tabs, I tested and the new session value is correctly set
5.  I added the "Tab1a" equate to my reset list (unchecked the prompt, value and comment boxes)

I've tried various conventions, but can't get the tab to hide / unhide according to the session value set on the previous tab.

I suspect the problem is with "refreshing" the tab ...


Title: Re: Hiding a tab based on drop-down condition
Post by: Bruce on October 25, 2011, 12:57:11 AM
I recommend going to 5.38 since it contains (amongst other things) the following fix;

>> Fix: Problem hiding and unhiding tabs, if tabs are not currently in the order they were created in.

Cheers
Bruce
Title: Re: Hiding a tab based on drop-down condition
Post by: rupertvz on October 26, 2011, 07:13:31 AM
Thanks for the help Rene, Bruce,

I downloaded  5.38 and now seems to be sorted.
Still had some difficulty making it work with the drop-down box, but changed to radio buttons with success :-)