need code in business rule for a popup which shows yes & No
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-06-2013 12:28 PM
HI ,
need code in business rule for a popup which shows yes & No .
i need to perform different actions for yes and no.
when i tried to use alert or gs.addInfoMessage, it is not showing me yes & no in the popup.
can u help me pls.
Tx
Murthy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-06-2013 01:18 PM
you can use alert() or confirm() messages in clientscripts and not in business rules. Business rules run server side, hence they don't support client script functions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-06-2013 01:23 PM
HI MK,
Thx for the info.
but teh alert or confirm pops up with only Ok , i need yes or no buttons in the popup and yes has a different func and No has a different func.
how can i handle this.
TX Murthy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-08-2013 03:43 PM
You should be able to use confirm() if displaying Yes/No is not required. confirm() has 'OK' and 'Cancel', and returns true or false depending on whether the user clicked on OK or Cancel respectively.
if (confirm('Are you sure you want to quit?')) {
...
} else {
...
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-07-2013 01:58 PM
You can create a UI page that has 2 buttons - Yes and No and use GLIDEDIALOGFORM to invoke the UI page. But this will unecessarily complicate the solution. i would suggest that you better convince your users to go with ok and cancel button assuming them to be Yes or No.