Setting default value to a list of users

188 views
Skip to first unread message

sagar....@flowian.com

unread,
Dec 11, 2014, 2:46:02 AM12/11/14
to suppor...@runmyprocess.com
Hi Team,

In my web-interface I have taken one list widget. And set its type to users. and select the role which have access to execute the same web-interface.
Now I want to set default value for that list widget. For that purpose I use "${P_connected_user.name}" in the default value text box.

The problem is that when another user using that application(In test mode only) then also the list widget is showing single name as a default rather than the name of person who logs in.

How can we set the default value for the List widget of users to the current logged in user.

Thanks and Regards,
Sagar

Sweta Suman

unread,
Dec 11, 2014, 3:12:39 AM12/11/14
to suppor...@runmyprocess.com
Hi Sagar,
 
You can set default value by writing ${P_connected_user.name} in prompt section of widget property.
Please find attachment.
 
Hope this helps you.
 
Thanks and Regards,
Sweta
 


--
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/74638354-d660-40d3-bed0-33d5c756375e%40runmyprocess.com.
For more options, visit https://groups.google.com/a/runmyprocess.com/d/optout.

Default_Value.png

sagar....@flowian.com

unread,
Dec 11, 2014, 3:27:04 AM12/11/14
to suppor...@runmyprocess.com
Hi Sweta,

Thanks a Lot for your help.

Regards,
Sagar

sagar....@flowian.com

unread,
Dec 11, 2014, 4:19:47 AM12/11/14
to suppor...@runmyprocess.com, sagar....@flowian.com
Hi Sweta,

Your solution works but when we access that list variable in the process it will give error saying that the variable is undefined.

It will only show you default name not set the default value. I want to set default value for the users list.



Regards,
Sagar

Sweta Suman

unread,
Dec 11, 2014, 6:08:56 AM12/11/14
to suppor...@runmyprocess.com, sagar....@flowian.com
Hi Sagar,

You need to write ${P_connected_user.name} in both default value and prompt property of widget.It will initialize the user and default value will be set to the list.

Hope this helps you.

Thanks and Regards,
Sweta





 Regards,
  Sagar

--
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/.

sagar....@flowian.com

unread,
Dec 11, 2014, 7:28:22 AM12/11/14
to suppor...@runmyprocess.com, sagar....@flowian.com
Hi Sweta,

It is working fine.

I think its my mistake I couldn't explain you what I want.

I want to record the User who is going to access the web interface from particular role. Now I am using Users list for that purpose and the default value of that list variable will be the current user.

When we are selecting user from list, the list variable will contain the mail id of that user which can be used later in the process.

But when we are setting the default value, the list variable contain the name of that user which cannot be used later in the process to send mails to that user.

So by setting default value of Users list we are actually recording the name of user rather than his mail-id. We can do this with "${P_connected_user.login}" but it will display the mail id as a default.

If you can help me to set the default value which will work very much like the Users list i. e. shows you the name of the user and at the backend records the user-id of that user.

Thanks and Regards,
Sagar

sagar....@flowian.com

unread,
Dec 11, 2014, 7:42:47 AM12/11/14
to suppor...@runmyprocess.com, sagar....@flowian.com
Hi Sweta,

Its working with "${P_user.login}".


Thank you

Regards,
Sagar
Reply all
Reply to author
Forward
0 new messages