NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: jorgemir on March 30, 2011, 10:25:50 PM

Title: Confused with server side value sent
Post by: jorgemir on March 30, 2011, 10:25:50 PM
Hi.
This code I put into send value to server:

Det:Total=Det:Cantidad*Det:PVP
                       /\                   /\
These are file fields.
Do I have to use p_web.gsv('Det:cantidad') in order to get the real valu? I already have this fields primed and I see they are written to file, but the Det:Total, which is not touched at all. In this case, what  is the correct construction of the statement¿
Thanks
Jorge
Title: Re: Confused with server side value sent
Post by: kevin plummer on March 30, 2011, 10:33:01 PM
Yes you must use p_web unless you move your code to the Validate Embed on Save it should work without p_web.
Title: Re: Confused with server side value sent
Post by: Bruce on March 30, 2011, 11:49:35 PM
The key is to save the Det:Total in the session queue after the calculation.
ie

Det:Total=Det:Cantidad*Det:PVP
p_web.SetSessionValue('Det:Total',DetTotal)

Cheers
Bruce