How to Display PopUp Messages when a Script Action is execute.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2018 11:27 PM
I have a requirement to popup a message when a event is executed.
I have added below code in my After update business rule.
gs.eventQueueScheduled("sc_req_item_reminder",current,gs.getUserID(),gs.getUserName(),current.u_reminder);
Now my requirement is to display a popup message (alert) in browser when above event is executed.
I have also refer below link.
Display Messages With UI Notifications
With above link I am able to generate popup when RITM record is updated directly (manually). like this (below image)
I also tried to update RITM record with "sc_req_item_reminder" event so that After Update BR executes and popup message can be generated. But it generates only when updating RITM manually.
Please help me to full fill this requirement.
Please don't update irrelevant content or just copy paste from others blog.
- Labels:
-
Team Development
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2018 01:32 AM
Instead of triggering a event in the business rule why don't you write addInfomessage in the same after business rule. Result won't look like a alert popup but it works.
Am I missing something here, seems like you also want it to work for backend updates. What is the use here other than manual update of record ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2018 01:45 AM
Hi Sach,
Thanks for reply.
addInfomessage also works fine if I am updating same RITM or records manually means changing field values and submit form.
I want to implement Notification example: simple reminder. But some workflow change. I want to popup message. Email notification is sent at scheduled time, but we want not to sent email notification.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2018 02:27 AM
Got your requirement, sounds similar to what happens in Simultaneous update alert. A message should pop up on all the browsers wherever the record is opened.
I am not able to find any documentation related to Simultaneous update alert on the new docs site. I feel this requirement is achievable if you follow the methodology used there.