NetTalk Central

Author Topic: SetSessionValue  (Read 1629 times)

broche

  • Sr. Member
  • ****
  • Posts: 336
    • View Profile
    • Email
SetSessionValue
« on: May 06, 2014, 10:29:01 AM »
Hi All,

NT 8.1
CL 9.0

On a form I have a check box (CVF:EditCommitt)
When this check box is clicked I do a bunch of stuff like calculating the value of the document and checking some other fields to make sure all is well.
Bruce showed me how in last webinar but still not getting it quite right (slow learner)
It might be what I am expecting that is wrong:

do ValidateValue::CVF:EditCommitt  ! copies value to session value if valid.
  ! Start of "After Validate New Value"
  ! [Priority 5000]
  ! Calculate Values and Check Status
        Loc:HowBilled         = p_web.GSV('CVF:HowBilled')

The above is the embed I am using
I assign all the fields I want using p_web.GSV(.....

I do the calculations and I know they all work I have checked the results.
When I have completed all the calcs and checks I do the following

                       p_web.SSV('CVF:PayValue',Loc:PayValue)
                        p_web.SSV('CVF:LinesPaid',Loc:LinesPaid)
                        p_web.SSV('CVF:DocValue',Loc:DocValue)
                        p_web.SSV('CVF:CalcLine',Loc:CalcLines)
                        p_web.SSV('CVF:PayValue',Loc:PayValue)

Not sure if these lines are correctly formatted?
None of the fields on the form reflect the new values either, so not sure what else I need to do here?
Tried this just putting numbers (p_web.SSV('CVF:PayValue',200), no joy.
Tried it with inverted comma's on the last field?

What I expected was that the new values would show on the form.


Brian.

Brian

rainerwallenius

  • Jr. Member
  • **
  • Posts: 70
    • View Profile
    • Email
Re: SetSessionValue
« Reply #1 on: May 06, 2014, 10:43:57 AM »
Hello Brian,

Have You remembered to add the fields CVF:PayValue etc in the Reset -table on the Client-Side Tab on your check-box?
I usually forget...

:: rainer

broche

  • Sr. Member
  • ****
  • Posts: 336
    • View Profile
    • Email
Re: SetSessionValue
« Reply #2 on: May 06, 2014, 03:55:03 PM »
That was it - Thanks a bunch Rainer
Now I know ...
Brian