NetTalk Central

Author Topic: Set a parameter and the refresh the complete form with different visible tabs  (Read 4900 times)

hkalmbach

  • Jr. Member
  • **
  • Posts: 81
    • View Profile
    • Email
Hello,

is there a way to solve the following problem in a net web form:

I have several tabs on my form, at start some are hidden some not.
Now by pressing a button the conditions for the tabs should be changed (Send new value to server, serverside code), the form should be refreshed and according to the conditions other tabs should be shown.

Can I do this by some kind of refresh or does the form itself should be called by URL again?

Thanks for every hint.

Cheers
Heinz

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
The tabs can be refreshed (and hence displayed, or hidden) anytime a field completes.

Let's say you have a checkbox field, called Daisy. Is Daisy is true then CustomerTab appears, if it is false then CustomerTab disappears.
The works in 2 parts;

a) The Hide condition for the Customertab is set to something like
p_web.GSV('daisy') = true

b) On the Daisy field, on the client side tab, add CustomerTab to the Reset List.

So the checkbox "resets" the tab, and the tab is dependent on the value in Daisy.

cheers
Bruce