AnsweredAssumed Answered

Username Script Help

Question asked by user14040 on Feb 10, 2012
Latest reply on Feb 10, 2012 by user14040

Title

Username Script Help

Post

Hi

I need to be able to have a user log in and it goes to a layout and shows their information on the layout.  I found this script but I need for someone to login and the script knows who logged in.  The script below you have to enter the name I tried removing the name and just using the field name (If [Get(AccountName)="Technician::UserName"])  but when it does a search it shows a error saying The provided find criteria is not valid.  Enter a valid request before proceeding.

 

Any help would be appreciated.  Below is the original script  (the Else If in the script i am not using because i am using two layouts (Main Interface & technician layout).

ORIGINAL SCRIPT

Go to Layout ["Welcome layout"] 

Pause/Resume Script [Duration (seconds); 3]

If [Get( AccountName )= "Lynn"] 

     Go to Layout ["Simple layout"]

Else If [Get( AccountName )="Ann"]

     Go to Layout ["Complex layout"]

End If

Enter Find Mode[]

Insert Calculated Result [Select; "Sales::temp user name";

Get( AccountName )]

Perform Find[]

 

SCRIPT I AM USING

 

Go to Layout ["Main Interface"]

Pause/Resume Script [Duration (seconds); 3]

If [Get( AccountName )= "Technician::UserName"]

     Go to Layout ["Technician"]

End If

Enter Find Mode[]

Insert Calculated Result [Select; "Technician::UserName";

Get( AccountName )]

Perform Find[]

 

Thanks

Outcomes