NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: kashiash on December 12, 2010, 12:56:46 PM

Title: How call Edit form for dynamically calculated record id
Post by: kashiash 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 ?
Title: Re: How call Edit form for dynamically calculated record id
Post by: terryd 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)
Title: Re: How call Edit form for dynamically calculated record id
Post by: kashiash 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 ;)
Title: Re: How call Edit form for dynamically calculated record id
Post by: kevin plummer 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"