function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Brijesh KumarBrijesh Kumar 

In apex class what method is equivlent for {!$User.LastName}

Hi
How can i write method for same working as {!$User.LastName} in visual force page.
 
I also found what are the method's for
 
1.{!$UserRole
2.{!$User
3.{!$System
4.{!$SControl
5.{!$Profile
6.{!$Organization
7.{!$ObjectType
8.{!$Api
9.{!$Action
 
These are used in s-controll.I wants what are the method which can be used in apex-code.
Or you can give link where i got
 
 
Thanks & Regards
Brijesh baser
hisrinuhisrinu
Hi Brijesh,

You can use userinfo.getLastName();


Brijesh KumarBrijesh Kumar
Hi hisrinu
Thanks For your reply.
Can u share me a link or reference book where should i get all method for which i listed above.
 
Thanks & Regards
Brijesh Kumar Baser
modoleamodolea

Hi,

In this website, go to http://wiki.apexdevnet.com/index.php/Apex_and_Visualforce

In the Apex section you have Apex Language Reference: Core documentation for the Apex programming language.

Look for the "UserInfo Methods" in this documentation.
 
Regards
Adrian
hisrinuhisrinu
Brijesh KumarBrijesh Kumar
 
Thanks for reply.It's greate for me and my project requirements.
 
Thanks & Regards
brijesh Kumar Baser