NetTalk Central

Author Topic: calling update form without browse problem  (Read 1677 times)

kashiash

  • Newbie
  • *
  • Posts: 48
    • View Profile
    • Email
calling update form without browse problem
« 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 ?


Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11191
    • View Profile
Re: calling update form without browse problem
« Reply #1 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