Hi, I'm trying to save the User Id of the user running NAS on insert and modify triggers on a table field.
I use this simple code
FIELD:=USERID
but it seems to work only on the insert trigger.
Anyone had the same problem?
How I can view the content of a global variable like
USERID?
Thanks for your help
Answers
In code this only happens by doing a INSERT(TRUE) or MODIFY(TRUE). If you don't specify TRUE or specify FALSE, the triggers are not launched.
To show USERID:
MESSAGE('USERID=%1',USERID);
If you put it in the NAS (and the NAS is a service), you will find this message in the eventlog of Windows.
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
Maybe there is an error in the XML passed to NAS.
Thank You for yor reply
You probably already know this, it is not enough to write "Field := USERID", you also have to MODIFY the record for the value to be written to the database.
RIS Plus, LLC
Solved it setting the cache to zero.
Thanks to all for the help
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
When the development is finished everything came as normal.
For development purposes though you should consider running your NAS code from a regular client for testing and using NAS itself only when you reach milestones in your development.
RIS Plus, LLC
I will follow your directions and install one for testing purpose.
It is my fault that I didn't explained the architecture in advance.
Sorry
Thanks for your help