NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: terryd on July 14, 2013, 10:28:27 PM

Title: Wizarded memory form
Post by: terryd on July 14, 2013, 10:28:27 PM
I have a wizarded memory form with 3 tabs. If I go past the first tab and on the second or 3rd tab I cancel the form and then return to the form it returns to the same tab it was on when I cancelled.
Is there a method of making the form always open on the first tab?
Title: Re: Wizarded memory form
Post by: Bruce on July 15, 2013, 12:29:10 AM
are you going to the form in "change" mode, or "insert" mode?
Title: Re: Wizarded memory form
Post by: terryd on July 15, 2013, 01:31:33 AM
Hi Bruce
Change Mode
Title: Re: Wizarded memory form
Post by: Bruce on July 15, 2013, 02:05:50 AM
ok, right click on procedure, choose source, search for
'ntwiz'
That'll be on the line;
p_web.jQuery('#' & lower('tab_MailboxesFormControl_div'),'ntwiz',loc:options)

in the embed just above that put
loc:options = p_web.SetOption(loc:options,'activeTab',0) ! tabs are numbered from 0

Title: Re: Wizarded memory form
Post by: terryd on July 22, 2013, 11:09:15 PM
NT715 Clarion8
Hi Bruce. Did this. Solved that issue but has created another.
If on the second or third tabs I do a lookup I am now returned to the first tab after each lookup.
 
Title: Re: Wizarded memory form
Post by: Bruce on July 22, 2013, 11:22:00 PM
popup lookup, or page lookup?
Title: Re: Wizarded memory form
Post by: terryd on July 23, 2013, 12:34:45 AM
Hi Bruce
Page lookup and the form is also page
Title: Re: Wizarded memory form
Post by: Bruce on July 24, 2013, 02:05:33 AM
yeah, it's gonna get tricky...
ok - try setting the session value only in the PreChange routine.

p_web.SetSessionValue('showtab_ProcedureName',0)

Cheers
Bruce