NetTalk Central

Author Topic: How to save memory forms fields values between sessions  (Read 4374 times)

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
How to save memory forms fields values between sessions
« on: June 04, 2019, 02:21:28 PM »
Hi, having a memory form with some fields that, by ex, define a browse filter...
Which is the better way of save this fields to have the same values the next time the user opens the form?

Im using :
p_web.SetCookie('wFIles__Status',p_web.gsv('wFIles:Status'),today()+30)

in the SetFilter of the browse

« Last Edit: June 04, 2019, 02:31:32 PM by michelis »
-----------
Regards
Alberto

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: How to save memory forms fields values between sessions
« Reply #1 on: June 05, 2019, 01:29:30 AM »
>> to have the same values the next time the user opens the form?

next time, as in "next time this session" or as in "next time they login a week from now" ?

If the "next week" option then I recommend storing it in a server side table, and loading that into a session value when the user next logs in. ie keep it all on the server, don't use a cookie. This way it works regardless of where they log in from.

cheers
Bruce