NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: skyong38 on May 14, 2018, 10:38:46 PM

Title: How Postupdate works? I really confuse about it
Post 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


Title: Re: How Postupdate works? I really confuse about it
Post by: Bruce on May 15, 2018, 03:16:33 AM
>>  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
Title: Re: How Postupdate works? I really confuse about it
Post by: skyong38 on May 15, 2018, 06:10:54 AM
Hi Bruce,

Thanks for advice. I manage to get it done.

Regards,
Nelson