TASK: Assigned by field populated with logged in username

hairyjimhairyjim Member Posts: 99
edited 2004-09-27 in Navision Attain
Hi all,

My users have grumbled anout not being able to see who assigned them a particular task, would it be possible to define a new "assigned by" field and auto populate this with the logged in users code?

If so, where do I look to start on this?

Cheers
Give a man a fish and he will eat for a day, teach a man to fish and he will drink beer allday.

Comments

  • SteveOSteveO Member Posts: 164
    you could use the command USERID. This returns the current user's login ID.

    You could do something like this:

    Rec - OnInsert;
    "Assigned By" := USERID;

    Rec - OnModify;
    "Assigned By" := USERID;

    (Use whichever of them you need) OnInsert would be when a user inserts the record, on modify would be when a user modifies any field on the record.

    You might want to do this:

    "Assigned To" - OnValidate
    "Assigned By" := USERID;

    Hope this all helps
    This isn't a signature, I type this at the bottom of every message
  • hairyjimhairyjim Member Posts: 99
    Great.

    Will do just the job.

    Cheers
    Give a man a fish and he will eat for a day, teach a man to fish and he will drink beer allday.
Sign In or Register to comment.