VishalMistry
19th April 2005, 11:26
hello everybody,

can anybody help me how i can print user id and name of the logged in user in a report.


Vishal

en@frrom
19th April 2005, 11:49
The predefined variable logname$ contains the login name of the current user. If you want to display his name also, you just query the users table.

Debdas Banerjee
19th April 2005, 12:15
hi

For user name : In report layout go to maintail report field and there u just tupy logname$ and domain will be tc logn . Compile the report u will get the user mane.

Regards

NPRao
19th April 2005, 20:10
can anybody help me how i can print user id and name of the logged in user in a report.
You can use the tools function -

BaanERP Programmers Guide 7.3_a_sp1

tt.user()
--------------------------------------------------------------------------------
Syntax
long tt.user( string user(12), ref string name() mb )

Description
This retrieves the name of the specified user (user) and stores it in the name argument.

Return values
0 error; user not found
1 success

Context
3GL library function.

VishalMistry
27th April 2005, 14:19
Thank u very much for your help. It worked.

VishalMistry
27th April 2005, 14:21
Hello Debdasji,

Thanks a lot. It worked. I hope your support in future too.

Warm Regards,