Want to make a simple Yes/No Widget...

362 views
Skip to first unread message

ad...@wakefieldfamily.org

unread,
Oct 23, 2013, 12:25:45 PM10/23/13
to suppor...@runmyprocess.com
Hi,

If I want to make a Yes/No widget, do I have to create a custom list for each one. I see there is a Variable Based type - and I am thinking this is what I can use, but Not sure how to define the Yes/No options

Please advise

Thanks
Corey

Richard Manga

unread,
Oct 23, 2013, 12:51:43 PM10/23/13
to suppor...@runmyprocess.com
Hi Corey.

When you use the Yes/No widget, you don't need to create custom list.
You should give a name to the variable associated to the widget. And when you need to know the value of the widget (Yes or No), you can use the following code:  id_widget.getVariableValue("variable_name") .


Best regards,

Richard Manga

--
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/56a04705-2c84-4a26-9799-d9be5ff21ba3%40runmyprocess.com.
For more options, visit https://groups.google.com/a/runmyprocess.com/groups/opt_out.

Wakefield Admin

unread,
Oct 23, 2013, 1:13:16 PM10/23/13
to suppor...@runmyprocess.com
Hi,

I am not following exactly - here is what I have done thus far.

1.  I selected (Radio Widget)
2.  (attached is my Properties screen)

I have selected Variable based...what should I put and where should I put it, to make this a Yes/No list.

Thanks
Corey


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/aLsdw3gmeJ4/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/.
radio-widget.jpg

Richard Manga

unread,
Oct 23, 2013, 1:46:22 PM10/23/13
to suppor...@runmyprocess.com
Hi!

You are using Radio buttons, but there is a simplest way to do what you want. If you just want to choose between yes/no you can  use "Switch" widget as I suggest before.

You can also use  "Radio buttons" widget as you did in your example. In this case, for the label "type", you should select "Custom list" instead of "variable based".
Then, you create your custom list. To create the custom list, you go on the project page. Then you click on "New" and you select "Custom list". Add line to your custom list (specify label and value).

After creating your custom list, you turn back on the web interface and you select the radio buttons, and in the properties you click on "Choose a list". You will just select the list you created before.

To know the value that has been selected by the user, in your code, you can use the following function: 

widget_id.getSelectedValue()


Best Regards,

Richard Manga


2013/10/23 Wakefield Admin <ad...@wakefieldfamily.org>

ad...@wakefieldfamily.org

unread,
Oct 23, 2013, 10:18:50 PM10/23/13
to suppor...@runmyprocess.com, ad...@wakefieldfamily.org

Thanks this switch will work.

ad...@wakefieldfamily.org

unread,
Oct 24, 2013, 8:43:53 AM10/24/13
to suppor...@runmyprocess.com, ad...@wakefieldfamily.org

So trying to get this to work with Switch

If my Switch Widget has the following properties - how do I check it in a Decision point

Widget:

Identifier = funds_required_over_500
Variable = are_funds_required_from_the_church_over_500
Value Checked = Yes
Value Unchecked = No

Now in my Gateway where I check for Yes or No

What do I had into the conditions -

Is the following right?

funds_required_over_500.getSelectedValue("are_funds_required_from_the_church_over_500")

Then this should return "Yes or No" and the Gateway should match right?

Please advise.

Reply all
Reply to author
Forward
0 new messages