NetTalk Central

Author Topic: Calling form without browse  (Read 3285 times)

wasatchconsulting

  • Jr. Member
  • **
  • Posts: 72
    • View Profile
    • Email
Calling form without browse
« 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

Robert Iliuta

  • Sr. Member
  • ****
  • Posts: 472
    • View Profile
    • Email
Re: Calling form without browse
« Reply #1 on: July 16, 2013, 08:52:34 PM »
Hallo Ken,


The answer is on the docs :o)
http://www.capesoft.com/docs/NetTalk7/NetTalkWebFAQ.htm#W4

Robert

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11263
    • View Profile
Re: Calling form without browse
« Reply #2 on: July 16, 2013, 09:28:08 PM »
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