- 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-18-2017 12:37 AM
Gosh, it was running all the time. The problem was that the list view didn't refresh which threw me off and the "gs.print()" wasn't showing the log entry while "addInfoMessage()" did.
Thank you Shishir.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2017 12:39 AM
i have also tested with addInfoMessage(), but didn't notice you are using gs.print.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2017 11:54 PM
as per my understanding it's not like business rule will specifically run on list level. it should execute for both
- 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.