NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: kashiash on May 12, 2010, 05:52:17 AM

Title: calling update form without browse problem
Post by: kashiash on May 12, 2010, 05:52:17 AM
i try to call update form like here:

'FormKalkulacjeTAB?<!-- Net:s:SID -->&Klk_IDKalkulacji='& p_web.GetSessionValue('Wyl:FkKalkulacja')& '&Change_btn=Change&'
in html source this looks like :
onclick="document.PokazKalkulacje_frm.action='FormKalkulacjeTAB?SessionID=1158396632&Klk_IDKalkulacji=1&Change_btn=Change&'

form is opened but i receive error:

record not found: (5) Error 0: from key Klk:KeyKalkulacja

record with idkalkulacji = 1 exist !
what i do wrong ?

Title: Re: calling update form without browse problem
Post by: Bruce on May 12, 2010, 08:55:33 PM
Hi Jacek,

First a small update - the session value in the URL is no longer required. So you can use;
'FormKalkulacjeTAB?Klk_IDKalkulacji='& p_web.GetSessionValue('Wyl:FkKalkulacja')& '&Change_btn=Change&'

Second - it looks like you've got the name wrong - should be
Klk:IDKalkulacji or Klk__IDKalkulacji
not
Klk_IDKalkulacji

Cheers
Bruce