Business Rule Not called in List View

aaron47
Mega Guru

I have the following business rule:

updateDisplayName(current);

function updateDisplayName(current)
{
  gs.print("updateDisplayName - called");

  ...

}

The code works fine, but it only gets called in "form view".   It won't get called if I update a field in List View.

Details of business rule:

  • When to run: before (insert, update)
  • advanced tab >> condition: current.u_mobile_plans.changes() || current.asset_tag.changes() || current.location.changes() || current.model.changes() || current.operation() == 'insert'

So in LIST VIEW if I double click say on the "asset tag" field and change it, I was expecting the log to print out the debug text, but it has not.

Anyone with any ideas?

I can see others have asked a question like this in the community, but could not find any answered.

1 ACCEPTED SOLUTION

navdeep_singh
Giga Guru

Hi Aaron



Did you try to use gs.addInfoMessage(" ") instead of gs.print().


I believe, gs.print display if you were running as a background script.


View solution in original post

8 REPLIES 8

Shishir Srivast
Mega Sage

Can we create a onCellEdit() Client script with GlideAjax and based upon the return result let's populate the message,


Hello Shishir,


I thought the business rule is meant to always execute if I "Update" (as I have configured).



I shouldn't need to make a client script.


Ideally it should work, tried and tested working perfect in my instance


find_real_file.png


Yes, that's correct business rule is meant to always execute if there is an update and it will work in both ways (list and form), was just giving a thought if we can try to achieve that way as well.



Not sure if any other BR is conflicting, can you please increase the order of this BR and try.