NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: wasatchconsulting on July 16, 2013, 02:39:05 PM
-
I am trying to call a form without a browse. I have the unique record id stored in a session value and so I have placed the following code in the INITFORM embed in the form:
p_web.SetValue('UniqueRecordID',p_web.GSV('SessionValue'))
This just keeps giving me an alert indicating that the record cannot be found (error -2). This is on an MSSQL table.
Thanks for your help.
Ken Watts
Wasatch Consulting Services
-
Hallo Ken,
The answer is on the docs :o)
http://www.capesoft.com/docs/NetTalk7/NetTalkWebFAQ.htm#W4
Robert
-
Hi Ken,
There are 3 ways to do it;
a) As Robert points out, the docs show the "Generic" way to do it. This is the most flexible approach.
b) On the form itself, Advanced tab, you can set the action, and ID fields to default values. In your case set the default action to "Change" and the ID field to p_web.GSV('SessionValue')
c) duplicate the template stuff in hand-code (but there's no point doing it this way.)
Cheers
Bruce