NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: skyong38 on May 14, 2018, 10:38:46 PM
-
Hi,
I have search the forum, and knowing that the Postinsert/postupdate is the place to embed code before save.
LocUserID = p_web.GetSessionValue('LoginName')
I want to assign some value to field, I tried :-
1) p_web.SetSessionValue('JSDW:CreatedUserID', LocUserID)
Or
2) JSDW:CreatedUserID = LocUserID
Both doesn't write the value to file.
Where am I goes wrong?
Thank you.
Regards,
Nelson
-
>> and knowing that the Postinsert/postupdate is the place to embed code before save.
no, those embeds are for code _after_ the save is made.
For _before_ the record is saved use ValidateRecord, ValidateInsert, ValidateChange and so on.
Cheers
Bruce
-
Hi Bruce,
Thanks for advice. I manage to get it done.
Regards,
Nelson