Network Alias

Hi,

I wanted to find the Network Alias.

I have tried using xSession object, but it doesnt contain the info. i can find only the userid using xsession object. Also i have tried using SysUserInfo but yet not able to find the solution.

Regards,

/Ashlesh

Hi,

Try this

str machineName;
;

machineName = System.Environment::get_MachineName();

info(machineName);

Regards,

Patrick

Hi, I actually dont required to get the Machine Name. I wanted to get the ‘Alias’ field from the ‘Users’ form. You can be reach there using “Administrator->Common Forms->Users”. I can easily get the ‘User ID’ from this form using ‘xSession’ class object, but i want to use ‘Alias’ instead of ‘User ID’.

print xUserInfo::find().networkAlias;

Hi Kranthi,

Done. It works perfectly as desired.

Thanks for your help.