NetTalk Central
Toggle navigation
Login
Register
×
Welcome,Guest
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
NetTalk Central
»
NetTalk Web Server
»
Web Server - Ask For Help
»
Form not saving fields
« previous
next »
Print
Pages: [
1
]
Author
Topic: Form not saving fields (Read 6246 times)
broche
Sr. Member
Posts: 336
Form not saving fields
«
on:
April 19, 2019, 01:56:17 AM »
Cl 11
NT 11.07
Regular form coming from a browse
On Update I do some calculations within the form and the correct numnbers are generated and the fields refreshed. See the image.
When I save the the form the two calculated fields revert to zero? Using debugview++ I have checked the fields and they all look correct. Looked at ValidateRecord in case there was something going on there but there is not.
Looks like saomething is happening after I click the Save button but I have no ideas what?
Brian.
Logged
Brian
Robert Iliuta
Sr. Member
Posts: 472
Re: Form not saving fields
«
Reply #1 on:
April 19, 2019, 02:25:42 AM »
Hallo Brian!
After calculated fields did you put the results on sessions?
Example:
TBL:LinesPaid = TBL:Tax+100
p_web.SSV('TBL:LinesPaid',TBL:LinesPaid)
To understand how it works, see the source code on validate.
Robert
Logged
broche
Sr. Member
Posts: 336
Re: Form not saving fields
«
Reply #2 on:
April 19, 2019, 06:41:20 AM »
Thanks Robert,
Here is what I did
Loc:LinesPaid = Billing.PayLines(pChrs,pChrsPerLine)
p_web.SSV('CVF:LinesPaid',Loc:LinesPaid)
Billing is a little class I wrote to learn, it just returns lines paid.
Brian.
Logged
Brian
DonRidley
Don Ridley
Global Moderator
Hero Member
Posts: 729
donaldridley2011@gmail.com
Re: Form not saving fields
«
Reply #3 on:
April 21, 2019, 02:07:39 AM »
You probably need to do a refresh on the calculated field to display the new value.
Loc:LinesPaid = Billing.PayLines(pChrs,pChrsPerLine)
p_web.SSV('CVF:LinesPaid',Loc:LinesPaid)
Do Refresh::CVF:LinesPaid
Logged
"Eliminate the impossible, whatever remains, however unlikely, must be the truth."
NetTalk 12.55
Clarion 11
Bruce
Global Moderator
Hero Member
Posts: 11250
Re: Form not saving fields
«
Reply #4 on:
April 23, 2019, 06:31:31 AM »
what are the field names on the form?
ie - what fields are you using on the form for the two calculated fields?
Logged
broche
Sr. Member
Posts: 336
Re: Form not saving fields
«
Reply #5 on:
April 24, 2019, 06:59:37 AM »
That was it Bruce, I was getting too fancy using Local fields.
When I called the class that I was using and used the form fields then used SSV - All worked fine.
Thanks all.
Logged
Brian
Print
Pages: [
1
]
« previous
next »
NetTalk Central
»
NetTalk Web Server
»
Web Server - Ask For Help
»
Form not saving fields