${P_connected_user.login} - works in HTML but not JS

212 views
Skip to first unread message

onei...@gmail.com

unread,
Aug 15, 2014, 5:08:48 AM8/15/14
to suppor...@runmyprocess.com
Hi. I hope someone can help.

I have a web interface. When I use ${P_connected_user.login} in an html widget the login is displayed fine when testing the web interface.

however when I use ${P_connected_user.id} in a Java widget it doesn't work. for example... alert(${P_connected_user.login})

When testing the web interface if I type.. alert(${P_connected_user.login}) into the JS tester the message displayed is 'undefined'

Can anyone explain why JS doesn't pick up the email Id of the logged in user but the HTML widget does?

Many Thanks

Jamie

Dimitri MELCHIOR Pro

unread,
Aug 15, 2014, 5:14:57 AM8/15/14
to RunMyProcess Support Forum

Hi Sir,

All variables in ${} are replacements the server does when loading the page. They are not proper Javascript variables but FreeMarker variables.

Just write alert("${P_connected_user.login}") and it will work (into your js widget but not in the js tester for the above reasons.

Best regards

--
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/0ae3de8f-eee4-4432-8e29-fe69afe80ad6%40runmyprocess.com.
For more options, visit https://groups.google.com/a/runmyprocess.com/d/optout.

onei...@gmail.com

unread,
Aug 15, 2014, 5:35:48 AM8/15/14
to suppor...@runmyprocess.com
Perfect, thank you!

Superbly fast support :)

Reply all
Reply to author
Forward
0 new messages