- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-23-2015 11:36 AM
Hi All,
I am trying to use the Message field of Business Rules. I am also activating the 'Abort action' checkbox. So, I believe that when my condition is matched, the BR will abort it and shows my message. My old way (scripts) of displaying messages from a BR is:
gs.addErrorMessage(gs.getMessage("UIM010005",[current.begin, current.end]));
How do I convert this message and apply in the Message field of BRs?
Thanks,
Dor
Solved! Go to Solution.
- Labels:
-
User Interface (UI)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-24-2015 11:08 AM
I put this script in the Message window pane: gs.getMessage("UIM010005",[current.begin, current.end])
...and the result is NOT the contents of UIM010005 but shows "gs.getMessage("UIM010005",[current.begin, current.end])"
I guess I'll use the old fashion script then.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-23-2015 02:20 PM
Dor,
The New 'Add Message' works as gs.addInfoMessage() methid. So, if you wish to add error message you need to use the Script section and use gs.addErrorMessage();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-24-2015 11:08 AM
I put this script in the Message window pane: gs.getMessage("UIM010005",[current.begin, current.end])
...and the result is NOT the contents of UIM010005 but shows "gs.getMessage("UIM010005",[current.begin, current.end])"
I guess I'll use the old fashion script then.