NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Robert Iliuta on March 11, 2011, 02:47:39 AM

Title: Link to call a form and open on tab4
Post by: Robert Iliuta on March 11, 2011, 02:47:39 AM
Hallo,


I call a form from a link and this form has 6 tabs. How can I call and open tab 4?

This is the link I call the form:
U_Membri?MEM__Nr=778&Change_btn=Change&

now after the form open on tab1 it I select tab4 this is the link:
U_Membri?MEM__Nr=778&Change_btn=Change&#tab_u_membri4_div

now if I call directly this link it will open the same on tab1.... Is there a way to open on tab4?

Thank you,
Robert
Title: Re: Link to call a form and open on tab4
Post by: Bruce on March 13, 2011, 01:04:21 AM
are you using "tabs" or "xp-tabs" as your tab style?
Title: Re: Link to call a form and open on tab4
Post by: Robert Iliuta on March 13, 2011, 09:00:20 AM
Hallo Bruce,

I use "tabs"

Robert
Title: Re: Link to call a form and open on tab4
Post by: Bruce on March 13, 2011, 10:55:39 PM
The "tab to start on" is stored in a session variable.

p_web.setsessionvalue('showtab_MailboxesFormControl',0)

Tabs are numbered from left to right, with the leftmost one being Tab number 0.

You can set this at the top of the GenerateForm routine. So in your case a URL something like;

U_Membri?MEM__Nr=778&Change_btn=Change&tab=2

And code like this;

  if p_web.IfExistsValue('tab')
    p_web.SSV('showtab_procedurename',p_web.GetValue('tab'))
  end

Cheers
Bruce
Title: Re: Link to call a form and open on tab4
Post by: Robert Iliuta on March 14, 2011, 02:56:05 AM
Hallo Bruce,

You are the best!!!
Works perfect! Thank you very much for help.

Regards,
Robert