NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Alan Telford on June 19, 2008, 04:43:10 PM

Title: Suggestion for prime on form
Post by: Alan Telford on June 19, 2008, 04:43:10 PM
I was using the PRIME field values for insert on a netwebform.
This generates the following code

ProSub:rowguid = getNewId()
p_web.SetSessionValue('ProSub:rowguid', getNewId())


But ... the problem is that my function GetNewId() returns a unique value everytime it is called. Therefore the 2nd call when using p_web.ssv() returns a different value than the 1st call.

I suggest that the template should generate code:

PRE:field = <user-entered-value>
p_web.SetSessionValue('PRE:field ', PRE:field )


This would prevent the double call of a function.

Alan
Title: Re: Suggestion for prime on form
Post by: Bruce on June 20, 2008, 03:17:58 AM
I agree Alan. Done for the next build.

Cheers
Bruce