Using jquery dialog in start process button

193 views
Skip to first unread message

Alan

unread,
May 5, 2015, 8:37:41 PM5/5/15
to suppor...@runmyprocess.com
Hi,

I'm trying to use jquery dialog box in pre launch script of Button widget(button name is "Submit"). This button action is "Start Process"

When a user click Submit button, it shows jquery dialog box include buttons called "Yes", "No"

Then a user click "Yes" button, current WI have to be submited. But dialog box stuck without action.

This is Pre Launch Script.

$(function(){
$("#id_dialog").dialog({
autoOpen: false,
modal:true,
width:450,
title: 'Confirm Submit',
buttons : {
"Yes" : function() {
$(this).dialog("close");
return true;
},
"No" : function() {
$(this).dialog("close");
}
}
});
});

function showjQueryDialog() {
id_dialog.setVisible(true);
$("#id_dialog").dialog("open");
}

if (RMPApplication.validate())
{
showjQueryDialog();

} else {
alert('required field is empty');
}


I know pr launch script have to return TRUE to process continuously.
How to return true in order to submit WI when a user click "yes" button?

Could you help this ?

Regards,

Takafumi Hoshino

unread,
May 5, 2015, 9:20:37 PM5/5/15
to suppor...@runmyprocess.com
Hi Alan,

I think you may need to have a hidden button to start process (set id_button_start), and the visible button should be execute-script, then in that YES function, call jQuery .click() button.

Like this.

$("#id_button_start").click();

The prelaunch script must return true synchronously.

Best regards,

Taka



--
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/bfb7239d-775b-47a8-b65c-62f2265d2fad%40runmyprocess.com.
For more options, visit https://groups.google.com/a/runmyprocess.com/d/optout.



--
---------------------------------------------------
Taka Hoshino
Fujitsu RunMyProcess
Google Account: thos...@runmyprocess.com

al...@wedosoft.net

unread,
May 6, 2015, 2:55:51 AM5/6/15
to suppor...@runmyprocess.com
Hi Taka,

Thanks a lot. It works well.

Regards,
Alan.
Reply all
Reply to author
Forward
0 new messages