how to retrieve view in business rule
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-04-2010 03:56 AM
Hi All
Anyway to retrieve view name in business rule? I tried current.view.name, view.name, sysparm_view.. but all cannot get the view. Anyone one can help?
Thank you.
- Labels:
-
Change Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-04-2010 04:14 AM
I believe you can use
this.getParameter('sysparm_view');
marc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-04-2010 04:15 AM
or this client script has an example too:
http://wiki.service-now.com/index.php?title=Client_Scripts#Show_or_Hide_an_Action_Button_depending_on_the_view_of_the_form

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-03-2010 10:42 AM
mguy
Hello,
I am trying to get the view name in order to use it in a List Control "condition" script.
The "this.getParameter('sysparm_view');" instruction does not seem to work (I have tried it in a Business Rule and a Script Includes without any luck).
Could somebody provide me with an example, or tell me if what I want to do is feasible (basically, it would be to hide the filter if the View is XXX).
Thanks a lot in advance.
Best Regards,
Alain
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-05-2011 10:02 AM
Hi,
I tried to use "this.getParameter('sysparm_view');" and this seems to be not working in business rules.
Also tried the RP.getViewID() but that is also not working - getting warning - RP is not defined.
Is there any other way to access form view in business rules?
Priya.