- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2017 11:37 PM
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.
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2017 12:30 AM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2017 11:40 PM
Can we create a onCellEdit() Client script with GlideAjax and based upon the return result let's populate the message,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2017 11:45 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2017 11:49 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2017 12:06 AM
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.