NetTalk Central

Author Topic: Suggestion for prime on form  (Read 3900 times)

Alan Telford

  • Jr. Member
  • **
  • Posts: 81
    • View Profile
Suggestion for prime on form
« 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

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Suggestion for prime on form
« Reply #1 on: June 20, 2008, 03:17:58 AM »
I agree Alan. Done for the next build.

Cheers
Bruce