Assigning user name to a field when saving
  • Eddie
    Assigning user name to a field when saving

    by Eddie » Wed Jul 15, 2009 5:12 pm

    Is there any way I can fill this field automatically with the name of the person that was logged on that actually raised the job, rather than selecting from a list? Ie: if I’m logged on and add a job to service manager, can it automatically put my name in there? If not, I can live with that.
  • COBS Tech Support
    Joined:Fri Sep 09, 2005 8:23 am

    by COBS Tech Support » Wed Jul 15, 2009 5:15 pm


    Make sure the field you add to your screen is set as an Editable List Item or Character field.


    Inside Screen Builder, from the menu select File|Screen Script and then type:

    Code: Select all

    If Mode = 3
       SCRWrite("USER", UserName())

    The above assumes you have called your field "USER". If it is called something else, change "USER" to whatever you have called it.

    Using the above approach the user name will be assigned when the operator presses the Save button.

Who is online

Users browsing this forum: No registered users and 1 guest