NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: rjolda on May 01, 2010, 11:11:53 AM

Title: Browse with different forms for insert and for change
Post by: rjolda on May 01, 2010, 11:11:53 AM
Hi,
Can I have a different form for inserts and for changes and deletes?
Where would I get into the code for inserts and changes to call different forms?
thanks,
Ron Jolda
Title: Re: Browse with different forms for insert and for change
Post by: kevin plummer on May 02, 2010, 01:52:07 AM
If you embed your browse on a form you can then add your own insert/change/delete buttons with different URL's
Title: Re: Browse with different forms for insert and for change
Post by: kashiash on May 02, 2010, 02:00:58 PM
i have similrar question:
how to call different form for change for specific condition ?
Title: Re: Browse with different forms for insert and for change
Post by: Bruce on May 02, 2010, 09:58:41 PM
Hi Ron,

I presume the change is really between Insert and Change, since for Delete you don't really see the form.
There's no easy way to do this using the template, but I'll see if I can add an advanced override for that to the next build.

cheers
Bruce
Title: Re: Browse with different forms for insert and for change
Post by: Rene Simons on May 02, 2010, 10:30:33 PM
Hi,
When the difference consists of just leaving out or including some fields I use the loc:act variable in the field condition.

Rene
Title: Re: Browse with different forms for insert and for change
Post by: kevin plummer on May 03, 2010, 05:13:25 AM
to answer your question kashiash I have done it but only by adding my own buttons. I set a variable as the URL and then if a condition changes I just refresh my button which updates the URL.
Title: Re: Browse with different forms for insert and for change
Post by: kashiash on May 12, 2010, 01:57:49 PM
Kevin
Can you explain what exactly you change and where in embeds ?
Title: Re: Browse with different forms for insert and for change
Post by: kevin plummer on May 13, 2010, 11:21:48 PM
1) Add your own buttons for insert change etc
2) on those buttons make add your own URL. Check out the FAQ in Docs as you need to add some stuff at the end of the URL

That's it. Nothing needed in embeds unless you want to dynamically change the URL which in that case just set the URL as a GSV, update that value eg if a user clicks a checkbox etc and then refresh the button.