Options

user id - user name on reports

georgegeorge Member Posts: 11
hi

i have to make some reports.
i made a field to some tables 36,112, etc. the name was Contact - table relation ("User".id)

problem i´d like to change the "user".id to "user".name without modify the tables :=)

thanks for your answeres and sorry for my bad english!!!

Comments

  • Options
    Tim81Tim81 Member Posts: 68
    What about a GET in the OnAfterGetRecord-Trigger? For example:
    User.GET(Contact);
    
    Then make a text box with SourceExpression = User.Name!
  • Options
    ArhontisArhontis Member Posts: 667
    Remember that the table user keeps the Database logins. If you use windows authentication then you should query the windows logins table.

    search for USERID and you will find alot of info.
  • Options
    Dean_AxonDean_Axon Member Posts: 193
    Hi George,

    Create a new field called "User Name" and create it as a flowfield.

    Then use the lookup to the USER table ( or other sugestions as per Arhontis) based on the userid field.

    If you then need to use this field in any reports etc. just call CALCFIELDS("User Name")

    Regards,

    Dean
    Remember: Keep it simple
Sign In or Register to comment.