Profile_pic

129 views
Skip to first unread message

banerjee...@gmail.com

unread,
Aug 18, 2014, 5:06:44 AM8/18/14
to suppor...@runmyprocess.com
Hi,

I have developed an application in which i want to display profile picture of the user in the header of my custom login page

for that i have taken hidden text input which contains the following
${P_connected_user.extended.profile_pic_url}

then i have taken image widjet followed by js widjet which has the following

var profile_pic_url= RMPApplication.get("profile_pic_url");
id_image.setUrl(profile_pic_url);

now i have created a user metadata from the configartion tab then i have attched the profile pic url to the user metadata..

but the profile picture is coming in my web interface and not in my header so please tell me how to display the profile pic in header

Dimitri MELCHIOR Pro

unread,
Aug 18, 2014, 6:00:12 AM8/18/14
to RunMyProcess Support Forum
Hi Sir,

First of all, you can display a profile image from metadata but not at login page as the user is not authentified yet. You set it up once logged in to know whom to display profile picture from..

Then, you can execute the below code :

document.getElementById("customheader").style.background = "url(${P_connected_user.extended.profile_pic_url})";
document.getElementById("customheader").style.width = "60px";
document.getElementById("customheader").style.height = "60px";

Considering that the value of the metadata is a url returning the profile picture image sized as a square of 60px.

Is it ok for you?

Best regards.

--

Dimitri MELCHIOR

PreSales Consultant

     

Fujitsu RunMyProcess user? Please add a review on GoogleApps Marketplace

Afin de contribuer au respect de l'environnement, merci de n'imprimer ce message qu'en cas de nécessité.
Be environmentally friendly: do not print this email unless it is entirely necessary.



--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "RunMyProcess Support Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum...@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at http://groups.google.com/a/runmyprocess.com/group/supportforum/.
To view this discussion on the web visit https://groups.google.com/a/runmyprocess.com/d/msgid/supportforum/24858b1f-0b97-4f0a-b6f8-d18ba0a69164%40runmyprocess.com.
For more options, visit https://groups.google.com/a/runmyprocess.com/d/optout.

Somjit Banerjee

unread,
Aug 18, 2014, 6:04:49 AM8/18/14
to suppor...@runmyprocess.com
Hi Dimitri,

Thanks for the help.


You received this message because you are subscribed to a topic in the Google Groups "RunMyProcess Support Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/a/runmyprocess.com/d/topic/supportforum/I7xw5Jbyqqs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to supportforum...@runmyprocess.com.

To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at http://groups.google.com/a/runmyprocess.com/group/supportforum/.

banerjee...@gmail.com

unread,
Aug 18, 2014, 6:57:12 AM8/18/14
to suppor...@runmyprocess.com, banerjee...@gmail.com
Hi Dimitri,

I have done the changes what you have told me do, it is coming absolutely fine

I require a little bit help from you , now I want my profile picture to come before the name of the user as it is coming now after the name of the user can you tell me how to do that????

Dimitri MELCHIOR Pro

unread,
Aug 18, 2014, 7:26:37 AM8/18/14
to RunMyProcess Support Forum, banerjee...@gmail.com
Add this :

document.getElementById("customheader").parentNode.insertBefore(document.getElementById("customheader"),document.getElementById("customheader").parentNode.firstChild);

Best regards.

--

Dimitri MELCHIOR

PreSales Consultant

     

Fujitsu RunMyProcess user? Please add a review on GoogleApps Marketplace

Afin de contribuer au respect de l'environnement, merci de n'imprimer ce message qu'en cas de nécessité.
Be environmentally friendly: do not print this email unless it is entirely necessary.


--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "RunMyProcess Support Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum...@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at http://groups.google.com/a/runmyprocess.com/group/supportforum/.

Somjit Banerjee

unread,
Aug 18, 2014, 7:52:26 AM8/18/14
to Dimitri MELCHIOR Pro, suppor...@runmyprocess.com
Hi Dimitri,

thanks for the help..

banerjee...@gmail.com

unread,
Aug 19, 2014, 1:35:58 AM8/19/14
to suppor...@runmyprocess.com, dmel...@runmyprocess.com, banerjee...@gmail.com
Hi Dimtri,

The profile ic is coming fine now, but now iwant to resise the profile pic using padding-left and padding-right

but when i am inserting the following code in my js widjet
document.getElementById("customheader").style.padding-right="10px";
document.getElementById("customheader").style.padding-left="5px";

it is not working, so could you please tell me hiw to make it work??????

Bidisha Das

unread,
Aug 19, 2014, 5:30:57 AM8/19/14
to suppor...@runmyprocess.com, dmel...@runmyprocess.com, banerjee...@gmail.com
Hi Somjit,
Add the following line to your script: document.getElementById("customheader").style.backgroundSize="60px 60px";

Make sure the above value "60px 60px"(height & width of background image) is same as you use in document.getElementById("customheader").style.width & document.getElementById("customheader").style.height.



Thanks & Regards
Bidisha
Reply all
Reply to author
Forward
0 new messages