The CreatorCon Call for Content is officially open! Get started here.

business rule on List Edit and Form Edit

georgechen
Kilo Guru

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

find_real_file.png

Initial SLA state

find_real_file.png

Set a Manual SLA Date, and save record

find_real_file.png

SLA refreshes/updates as expected, the initial SLA got cancelled, and the new one created,

find_real_file.png

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)

find_real_file.png

According the sys_log, the Run SLAs BR has been triggered

find_real_file.png

and yet, checking the SLA status in the form,

find_real_file.png

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

5 REPLIES 5

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