Shows the user name in a field

DarkHorseDarkHorse Member Posts: 389
Hello, I think this's easy. I've created a field in "Comment line" table called User ID, I want that the field shows the user name when someboby writes somenthing.
Thanks in advance.

Comments

  • SVUKSVUK Member Posts: 2
    Hi,

    OnInsert Trigger of Comment Line Table, add below code

    "User ID" := UserID;

    SV
  • DarkHorseDarkHorse Member Posts: 389
    Thanks!!!! =D> , what easy when you know it!...
    Thanks again for help.
  • matttraxmatttrax Member Posts: 2,309
    Don't forget to take into account the case where someone comes in and changes a comment. I don't know what the company you are doing this for is like, so they may not do things like that, but you never know.
  • DarkHorseDarkHorse Member Posts: 389
    Thanks, your're right, good appreciation, I'll try to do something with it.
    Thanks for help.
Sign In or Register to comment.