Click Button and Appear a Pop-Up with Drop-Down List

207 views
Skip to first unread message

besumm...@gmail.com

unread,
Oct 20, 2015, 6:09:32 AM10/20/15
to Fujitsu RunMyProcess Developer Community
Hello,
I have one interface with some buttons:

Approve
Reject
Save

When I click Reject, I want choose the refusal reason from a drop-down list, that should appear in a pop-up message. Somebody know how I can do this?

Bidisha Das

unread,
Oct 20, 2015, 6:57:55 AM10/20/15
to suppor...@runmyprocess.com

besumm...@gmail.com

unread,
Oct 20, 2015, 7:32:37 AM10/20/15
to Fujitsu RunMyProcess Developer Community
Thanks. Is more or less this what I want, but when I click the button appear the list and I choose, but I can't click on button to follow the flow, understand?

I have 3 buttons:

Approve
Cancel
Save

When I click in Cancel appear popup to choose from list, but after I can't click on the same button to go next step, understand?

Bidisha Das

unread,
Oct 20, 2015, 7:52:43 AM10/20/15
to suppor...@runmyprocess.com
Hi,
If you want both the functions to be performed simultaneously,you can write true; at the end of the code mentioned here (http://docs.runmyprocess.com/Developer_Guide/Web_Interface/Design/Dialog_Window) in Pre-Launch script of the button.


Thanks & Regards
Bidisha

besumm...@gmail.com

unread,
Oct 20, 2015, 8:19:38 AM10/20/15
to Fujitsu RunMyProcess Developer Community
Is more or less this, but there is a bug. When I click button, appear a window to choose, but simultaneously do the action. I don't want simultaneously. I want choose, and after choose do the action, understand?

Bidisha Das

unread,
Oct 20, 2015, 8:45:10 AM10/20/15
to suppor...@runmyprocess.com
Hi,
If you don't want to perform both the activities simultaneously,then no need of Pre-launch script on button.You will then have to take a separate button and write the code in that if you want a dialog window.Else, you can take a simple drop-down on WI and select an option before clicking the button.


Thanks & Regards
Bidisha

besumm...@gmail.com

unread,
Oct 20, 2015, 9:09:54 AM10/20/15
to Fujitsu RunMyProcess Developer Community
Hello,
Yes, I had the last option that you refer, but I delete, because don't make sense have the drop-down list if I click in aprove button understand? I just want show the drop-down list if the user click on cancel button. Other problem that have a drop-down list near buttons, is that if I put this field required, I have to choose an option for all actions, and I just want for cancel button, understand?

Pankaj Kumar

unread,
Oct 21, 2015, 5:02:27 AM10/21/15
to Fujitsu RunMyProcess Developer Community
Hi,

You can use a simple button "Reject" and select "Execute Script" and write a java script code to make visible a List (Options for the reason of reject) and another Button, lets say "Submit". Once user click on "Reject", list is visible, user select the appropriate option and click on Submit button, on click of Submit button, process will be updated.

Thank you,
Pankaj Kumar
Fujitsu RunMyProcess Support

On Tue, Oct 20, 2015 at 6:39 PM, <besumm...@gmail.com> wrote:
Hello,
Yes, I had the last option that you refer, but I delete, because don't make sense have the drop-down list if I click in aprove button understand? I just want show the drop-down list if the user click on cancel button. Other problem that have a drop-down list near buttons, is that if I put this field required, I have to choose an option for all actions, and I just want for cancel button, understand?

--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "Fujitsu RunMyProcess Developer Community" 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/276915c6-ca64-4d26-8672-57c62afa18c0%40runmyprocess.com.

besumm...@gmail.com

unread,
Oct 21, 2015, 5:05:55 AM10/21/15
to Fujitsu RunMyProcess Developer Community
Hello,
Can you explain how I can do this?

Bidisha Das

unread,
Oct 23, 2015, 6:34:10 AM10/23/15
to suppor...@runmyprocess.com
Hi,
You can take a button "Cancel" on Web Interface with Action "Execute script" on it.In the script,you can write: id_drop-down-list.setVisible(true);
On click of this button,the drop-down will appear and you can choose an option.Similarly,add another button "Submit"on WI which will update the process.

So,first select an option from drop-down and then click on Submit so that process moves forward and gets updated.


Thanks & Regards
Bidisha

besumm...@gmail.com

unread,
Oct 26, 2015, 7:10:41 AM10/26/15
to Fujitsu RunMyProcess Developer Community
The goal is not this. If I choose "Execute Script" when user click cancel, don't abort the process, because or choose "Execute Script" or "Abort" option.
Other option is have a list that is visible when I click in cancel button. Imagine, I click in cancel button, and the list appear. I choose the option and after click again in cancel button to abort. Is it possible?
Reply all
Reply to author
Forward
0 new messages