business rule on List Edit and Form Edit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2016 12:49 AM
Hi folks,
I'd like to get your expertise in a business rule on List Edit view issue, I have experienced an issue where in ListView (cell update action) the associated table that does not refresh itself, but works on form update, Let me explain further,
HR is a table based on task where Manual SLA Date is a custom date/time field, when Manual SLA date has a value (a date/time), it fires off a After business rule 'Run SLAs'. This works perfectly in the HR Form View when a SLA date is entered, and update the record. The SLA (task_sla which is a associated table with task) lists gets updated (one to many),
However, this SLA list does not get updated when the SLA date is changed in HR List View. In order to troubleshoot whether relevant business rules are fired off (particular after ones) I added a OR condition in the relevant rules current.u_manual_sla_date.changes()
Digging into further with screenshot illustrations,
In HR form, before the Manual SLA is entered
Initial SLA state
Set a Manual SLA Date, and save record
SLA refreshes/updates as expected, the initial SLA got cancelled, and the new one created,
This update, however, does not apply to List View (see below while entering the Manual SLA Date, and hit the green tick, which fires off business rules before/after (Run Task SLAs)
According the sys_log, the Run SLAs BR has been triggered
and yet, checking the SLA status in the form,
The old one got cancelled, which is correct, but the new SLA is not.
The ListView editing and form view edit somehow behave a bit different despite the exact the same field update, and not sure if some BRs only apply to form view (I may be wrong), but have not be been able to find the cause.
Any advice would be appreciated.
Kind regards
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2016 07:08 PM
Hi George, I'm really glad it's working for you now .
Just watch out for that business rule... it should be running on any update regardless if it's a form or list update 😛
Thanks,
Berny