You need to sign in to do that
Don't have an account?
Jerun Jose
Current User Details in Home Page Component
Hi,
I have a narrow home page component which contains javascript in a HTML area section.
I'm looking for a way to get the current user details in this javascript. I need this to identify the current user's profile ID and perform some DOM manipulation. I have the code for performing the DOM manipulation. I am not able to however get the current user details. The normal merge field approach of {!$User.ID} does not work.
<script> var usr = // some way to get the current user ID. </script>
Any help is appreciated.
Create a VF page that displays the info you wanbt.
Create a home page component, HTML area, with and iframe linking to the VF page.
Might make DOM manipulation difficult.
Hi Jerun
do you find any solution for this issue?
Thanks in advance!!!
do you find any solution for this issue?
Thanks in advance!!!
I did not do it in that project, but I guess what you could do would be to call an apex class method using javascript using the apex.execute command.
The apex method can then retreive the logged in user details for you and return that back to the javascript code.