NetTalk Central

Author Topic: Link to call a form and open on tab4  (Read 3823 times)

Robert Iliuta

  • Sr. Member
  • ****
  • Posts: 472
    • View Profile
    • Email
Link to call a form and open on tab4
« 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

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11245
    • View Profile
Re: Link to call a form and open on tab4
« Reply #1 on: March 13, 2011, 01:04:21 AM »
are you using "tabs" or "xp-tabs" as your tab style?

Robert Iliuta

  • Sr. Member
  • ****
  • Posts: 472
    • View Profile
    • Email
Re: Link to call a form and open on tab4
« Reply #2 on: March 13, 2011, 09:00:20 AM »
Hallo Bruce,

I use "tabs"

Robert

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11245
    • View Profile
Re: Link to call a form and open on tab4
« Reply #3 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

Robert Iliuta

  • Sr. Member
  • ****
  • Posts: 472
    • View Profile
    • Email
Re: Link to call a form and open on tab4
« Reply #4 on: March 14, 2011, 02:56:05 AM »
Hallo Bruce,

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

Regards,
Robert