How to limit a Client Script to work only on the Default view
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2014 08:38 AM
I have an onLoad client script that I want to run only on the Default view of the incident table (not any other incident views). What is the proper way to do this?
Should I keep the Global flag off and the View field empty? Or put some string in the View field like "default" or "Default"?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2014 08:51 AM
You should uncheck the Global field and enter the view name into the View field. That should limit the script to that view only.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2014 09:22 AM
And if its the "Default" view, leave the View field blank?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2014 09:46 AM
No, put "default" in the View field.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2014 07:10 AM
Hmm... i've had problems before when I referenced the view name "default" in our code. On the incident table, this seems to create a _new_ view with the name "default". So, we try to avoid when we can.
I have configured it with Global OFF and View field blank. This seems to be working as suggested.
I'll go with that until I see that it isn't working.