Please contact the server administrator at

More information about this error may be available and the actions you performed just before this error.

your request.

admin@emsdetten05.de to inform them of the time this error occurred,

Internal Server Error

in the server error log.

misconfiguration and was unable to complete 500 Internal Server Error

The server encountered an internal error or

Home Forum Download/Upload Links Search

NetTalk User Group

NetTalk User Group Meeting!
Live Webinar!
Saturday Nov. 16 
7am PST
Click Here To Register!
Home arrow Forum arrow NetTalk Web Serverarrow Web Server - Ask For Helparrow Copy Entire Record to Session Variables?
NetTalk Central
July 01, 2016, 06:07:15 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to the NetTalk Central Forums!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Copy Entire Record to Session Variables?  (Read 640 times)
charl99
Full Member
***
Posts: 185


View Profile Email
« on: May 04, 2012, 05:38:00 AM »

Hi,

I tried to figure this out (by looking at the PreCopy Routines and stuff), I simply don't understand it Smiley.

I am updating a record, with lots and lots of tabs and fields on it.  Almost every tab or field is dependent on the values of fields in related files (Hide/Unhide, Read Only).

Now I know I can open these files and then p_web.SSV() all the fields one by one in the Pre-Routine, and then in the Post-Routine go and set all of them to be blank again just to make sure they have no impact somewhere else.  But I know someday I will forget to keep this list updated.

So my question (or wish if you like), is there a simple way of setting a _whole_ record to Session Values and then to Clear it again at a later stage.

Thanks

Charl
Logged
Bruce
Global Moderator
Hero Member
*****
Posts: 8171



View Profile
« Reply #1 on: May 04, 2012, 06:06:31 AM »

to copy the file record to the session queue;

p_web.FileToSessionQueue(customers)

to copy the session queue back to the file record

p_web.SessionQueuetoFile(customers)

to clear all the session fields for a table;

clear(cus:record)
p_web.FileToSessionQueue(customers)

Cheers
Bruce
Logged
charl99
Full Member
***
Posts: 185


View Profile Email
« Reply #2 on: May 04, 2012, 06:17:45 AM »

Thanks.  I'm now thinking of working tomorrow!
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!

Login Form

Welcome Guest.






Lost Password?
No account yet? Register
home contact search contact search