Pop Up box for Business Rules
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-12-2007 10:27 AM
Currently using addErrorMessage and addInfoMessage, but would like to have a popup window of some sort to alert the user instead.
Is this possible within a business rule?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-12-2007 02:53 PM
Not from the server side, no.
The way a web page submission works:
You submit
Data goes over the wire
Server processes request
Server runs your business rule
Data goes over the wire
Result form renders
There's no way for your server side business rule to "push" data out to the client. All you can do is queue information that will, in turn, be sent out when the form eventually returns (like addInfoMessage()).
Best approach I know of (and it's sub optimal), is to set a hidden field on your form via the business rule, then have an onLoad client script pop a dialog to the end user if it sees data in that field.