{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":894,"path":"api-reference/server-api-reference/RenderProperties-API.md","title":"RenderProperties - Global","bundle":null,"doc_type":null,"release":"australia","body":"\n# RenderProperties- Global\n\nThe RenderProperties API provides methods to obtain information about the current page and is available in Jelly scripts and in UI-action conditions and scripts.\n\nAccess RenderProperties methods using the static variable `RP`.\n\n**Parent Topic:**[Server API reference](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/server-api-reference/api-server.md)\n\n## RenderProperties - getEncodedQuery\\(\\)\n\nReturns the encoded query from the URL sent to the page.\n\n|Name|Type|Description|\n|----|----|-----------|\n|None| | |\n\n|Type|Description|\n|----|-----------|\n|String|Returns the encoded query from the URL sent to the form.|\n\nThe following example is used in a condition for UI action named listed in the UI Actions \\[sys\\_ui\\_action\\] table. See also [Defining UI actions](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/platform-administration/c_UIActions.md).\n\n```\nRP.getEncodedQuery() != null && (RP.getEncodedQuery().indexOf('table=global') < 0 && RP.getEncodedQuery().indexOf('table=') >= 0)\n```\n\n## RenderProperties - getListControl\\(\\)\n\nReturns the list control object for the page.\n\n|Name|Type|Description|\n|----|----|-----------|\n|None| | |\n\n|Type|Description|\n|----|-----------|\n|SysListControl object|The list control object for the page.|\n\nThe following example is used in a condition named New for CAB Agenda Items. This UI action is listed in the UI Actions \\[sys\\_ui\\_action\\] table. See also [Defining UI actions](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/platform-administration/c_UIActions.md).\n\n```\ncurrent.canCreate() && !RP.getListControl().isOmitNewButton() && RP.isRelatedList() && !RP.isManyToMany() && !RP.isInDevStudio() && (new sn_change_cab.CABMeeting(parent)).canAddAgendaItem()\n```\n\n## RenderProperties - getParameterValue\\(String parameterName\\)\n\nReturns the value of the specified URL parameter.\n\n|Name|Type|Description|\n|----|----|-----------|\n|parameterName|String|Name of the parameter passed on the URL.|\n\n|Type|Description|\n|----|-----------|\n|String|The parameter's value.|\n\nThe following example is used in a condition for the Insert and Stay UI action for configuration items listed in the UI Actions \\[sys\\_ui\\_action\\] table. See also [Defining UI actions](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/platform-administration/c_UIActions.md).\n\n```\ncurrent.canCreate() && (!current.instanceOf('task') || gs.getProperty('glide.ui.task.insert') == 'true') && (!current.instanceOf('sys_db_object')) && JSUtil.nil(RP.getParameterValue(\"sysparm_changeset\"))\n```\n\n## RenderProperties - getReferringURL\\(\\)\n\nReturns the URL where the request originated.\n\n|Name|Type|Description|\n|----|----|-----------|\n|None| | |\n\n|Type|Description|\n|----|-----------|\n|String|The URL of the page where the request originated.|\n\nThe following example is used in a condition for the Import Sets UI action for import set row listed in the UI Actions \\[sys\\_ui\\_action\\] table. See also [Defining UI actions](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/platform-administration/c_UIActions.md).\n\n```\nRP.getReferringURL().indexOf(\"sys_import_set.do\") == -1 && new global.ImportSetRowHelper().canReadImportSets();\n```\n\n## RenderProperties - getViewID\\(\\)\n\nReturns the view the page is using.\n\nThis method is not available in scoped applications.\n\n|Name|Type|Description|\n|----|----|-----------|\n|None| | |\n\n|Type|Description|\n|----|-----------|\n|String|The sys\\_id of the view being used.|\n\n## RenderProperties - getViewName\\(\\)\n\nReturns the name of the view in use.\n\n|Name|Type|Description|\n|----|----|-----------|\n|None| | |\n\n|Type|Description|\n|----|-----------|\n|String|Name of the view being used.|\n\nThe following example is used in a condition named New for action assignment. This UI action is listed in the UI Actions \\[sys\\_ui\\_action\\] table. See also [Defining UI actions](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/platform-administration/c_UIActions.md).\n\n```\nRP.getViewName() != '' && RP.getViewName() != null && RP.getViewName() != undefined\n```\n\n## RenderProperties - getWindowProperties\\(\\)\n\nReturns the window's properties.\n\n|Name|Type|Description|\n|----|----|-----------|\n|None| | |\n\n|Type|Description|\n|----|-----------|\n|Object|The window's properties|\n\n## RenderProperties - isInDevStudio\\(\\)\n\nReturns true if the page is part of Studio.\n\n|Name|Type|Description|\n|----|----|-----------|\n|None| | |\n\n|Type|Description|\n|----|-----------|\n|Boolean|Returns true if the page is part of Studio.|\n\nThe following example is used in a condition named New for CAB Agenda Items. This UI action is listed in the UI Actions \\[sys\\_ui\\_action\\] table. See also [Defining UI actions](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/platform-administration/c_UIActions.md).\n\n```\ncurrent.canCreate() && !RP.getListControl().isOmitNewButton() && RP.isRelatedList() && !RP.isManyToMany() && !RP.isInDevStudio() && (new sn_change_cab.CABMeeting(parent)).canAddAgendaItem()\n```\n\n## RenderProperties - isInteractive\\(\\)\n\nReturns true if this is an interactive session. An interactive session is when a user has logged in as opposed to a REST request.\n\n|Name|Type|Description|\n|----|----|-----------|\n|None| | |\n\n|Type|Description|\n|----|-----------|\n|Boolean|True if this is an interactive session.|\n\n## RenderProperties - isManyToMany\\(\\)\n\nReturns true when the `sysparm_collection_related_file` URL parameter is set.\n\n|Name|Type|Description|\n|----|----|-----------|\n|None| | |\n\n|Type|Description|\n|----|-----------|\n|Boolean|Returns true when the `sysparm_collection_related_file` URL parameter is set.|\n\nThe following example is used in a condition named New for CAB Agenda Items. This UI action is listed in the UI Actions \\[sys\\_ui\\_action\\] table. See also [Defining UI actions](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/platform-administration/c_UIActions.md).\n\n```\ncurrent.canCreate() && !RP.getListControl().isOmitNewButton() && RP.isRelatedList() && !RP.isManyToMany() && !RP.isInDevStudio() && (new sn_change_cab.CABMeeting(parent)).canAddAgendaItem()\n```\n\n## RenderProperties - isRelatedList\\(\\)\n\nReturns true when the `sys_is_related_list` URL-parameter is true. Returns false if the parameter is not present.\n\n|Name|Type|Description|\n|----|----|-----------|\n|None| | |\n\n|Type|Description|\n|----|-----------|\n|Boolean|True if the URL parameter `sys_is_related_list` is true.|\n\nThe following example is used in a condition for a UI action listed in the UI Actions \\[sys\\_ui\\_action\\] table. See also [Defining UI actions](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/platform-administration/c_UIActions.md).\n\n```\ncurrent.canCreate() && RP.isRelatedList()\n```\n\n"}}