NetTalk Central

Author Topic: How call Edit form for dynamically calculated record id  (Read 3344 times)

kashiash

  • Newbie
  • *
  • Posts: 48
    • View Profile
    • Email
How call Edit form for dynamically calculated record id
« on: December 12, 2010, 12:56:46 PM »
I have memory based form procedure, where user enetr few data values and have button next.
On button NEXT i want call my function :

WznawianyWniosek = myfunction(locparam1,locparam2)
 p_web.SetSessionValue('WznawianyWniosek,WznawianyWniosek')

This function return id record to be edited, and should open another for for edit record with calculated ID

URL should be look like below:

FormKalkulacjeTAB?&WSK:IDWNIOSKU='& p_web.GetSessionValue('WznawianyWniosek')& '&Change_btn=Change&

I put code as ServerCode for Next button, but where/how call next page with updated URL ?

terryd

  • Hero Member
  • *****
  • Posts: 759
    • View Profile
    • Davcomm
    • Email
Re: How call Edit form for dynamically calculated record id
« Reply #1 on: December 12, 2010, 08:51:15 PM »
I don't know about the rest of your question but your set session value should look like this;
p_web.SetSessionValue('WznawianyWniosek',WznawianyWniosek)
Terry Davidson
Windows 10 64 bit/Windows7 64bit
Clarion 9.1.11529/Clarion10 12567
Nettalk 913
Nettalk 1015
StringTheory267/Winevent515/XFiles298/MessageBox239/Cryptonite186

kashiash

  • Newbie
  • *
  • Posts: 48
    • View Profile
    • Email
Re: How call Edit form for dynamically calculated record id
« Reply #2 on: December 12, 2010, 09:38:47 PM »
i wrote this code in message (not copy from clarion) and make mistake, in original code in clarion is ok. There is no problem ;)

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: How call Edit form for dynamically calculated record id
« Reply #3 on: December 13, 2010, 12:11:29 AM »
Maybe you can rename the save button to Next and then intercept the URL via _Sendfile in the webhandler.

Bruce covers the above in his new book "Developing Web Applications"