@servicenow/sdk - v4.4.1
Preparing search index...
@servicenow/sdk/core
sysrule_view
Variable sysrule_view
Const
sysrule_view
:
{
extends
:
"sysrule"
;
name
:
"sysrule_view"
;
schema
:
{
active
:
Typed
<
boolean
,
{
active
:
true
;
default
:
true
;
label
:
"Active"
;
mandatory
:
false
;
maxLength
:
40
;
read_only
:
false
;
}
,
>
;
advanced
:
Typed
<
boolean
,
{
active
:
true
;
label
:
"Advanced"
;
mandatory
:
false
;
maxLength
:
40
;
read_only
:
false
;
}
,
>
;
condition
:
Typed
<
string
,
{
active
:
true
;
label
:
"Conditions"
;
mandatory
:
false
;
maxLength
:
1000
;
read_only
:
false
;
}
,
>
;
device_type
:
Typed
<
string
,
{
active
:
true
;
default
:
"browser"
;
dropdown
:
"none"
;
label
:
"Device type"
;
mandatory
:
false
;
maxLength
:
40
;
read_only
:
false
;
}
,
>
;
match_conditions
:
Typed
<
string
,
{
active
:
true
;
default
:
"ALL"
;
dropdown
:
"none"
;
label
:
"Match conditions"
;
mandatory
:
false
;
maxLength
:
40
;
read_only
:
false
;
}
,
>
;
overrides_user_preference
:
Typed
<
boolean
,
{
active
:
true
;
default
:
true
;
label
:
"Overrides user preference"
;
mandatory
:
false
;
maxLength
:
40
;
read_only
:
false
;
}
,
>
;
script
:
Typed
<
string
|
ScriptModule
<
Function
>
,
{
active
:
true
;
default
:
"(function overrideView(view, is_list) {\n\n\t// Add your code here\n\tanswer = null; // set the new view to answer (Note: use 'Name' value from sys_ui_view table)\n\n})(view, is_list);"
;
label
:
"Script"
;
mandatory
:
false
;
maxLength
:
8000
;
read_only
:
false
;
}
,
>
;
sys_id
:
Typed
<
string
|
number
,
{
active
:
true
;
column_type
:
"GUID"
;
label
:
"Sys ID"
;
mandatory
:
false
;
read_only
:
false
;
}
,
>
;
table
:
Typed
<
keyof
Tables
,
{
active
:
true
;
attributes
:
{
allow_public
:
true
}
;
label
:
[
{
hint
:
"The table where this view rule will apply"
;
label
:
"Table"
;
language
:
"en"
;
}
,
]
;
mandatory
:
false
;
maxLength
:
80
;
read_only
:
false
;
}
,
>
;
view
:
Typed
<
string
,
{
active
:
true
;
dropdown
:
"none"
;
label
:
[
{
hint
:
"The view name from sys_ui_view to display when conditions are met"
;
label
:
"View"
;
language
:
"en"
;
}
,
]
;
mandatory
:
false
;
maxLength
:
40
;
read_only
:
false
;
}
,
>
;
}
;
}
= ...
Type Declaration
Readonly
extends
:
"sysrule"
Readonly
name
:
"sysrule_view"
Readonly
schema
:
{
active
:
Typed
<
boolean
,
{
active
:
true
;
default
:
true
;
label
:
"Active"
;
mandatory
:
false
;
maxLength
:
40
;
read_only
:
false
;
}
,
>
;
advanced
:
Typed
<
boolean
,
{
active
:
true
;
label
:
"Advanced"
;
mandatory
:
false
;
maxLength
:
40
;
read_only
:
false
;
}
,
>
;
condition
:
Typed
<
string
,
{
active
:
true
;
label
:
"Conditions"
;
mandatory
:
false
;
maxLength
:
1000
;
read_only
:
false
;
}
,
>
;
device_type
:
Typed
<
string
,
{
active
:
true
;
default
:
"browser"
;
dropdown
:
"none"
;
label
:
"Device type"
;
mandatory
:
false
;
maxLength
:
40
;
read_only
:
false
;
}
,
>
;
match_conditions
:
Typed
<
string
,
{
active
:
true
;
default
:
"ALL"
;
dropdown
:
"none"
;
label
:
"Match conditions"
;
mandatory
:
false
;
maxLength
:
40
;
read_only
:
false
;
}
,
>
;
overrides_user_preference
:
Typed
<
boolean
,
{
active
:
true
;
default
:
true
;
label
:
"Overrides user preference"
;
mandatory
:
false
;
maxLength
:
40
;
read_only
:
false
;
}
,
>
;
script
:
Typed
<
string
|
ScriptModule
<
Function
>
,
{
active
:
true
;
default
:
"(function overrideView(view, is_list) {\n\n\t// Add your code here\n\tanswer = null; // set the new view to answer (Note: use 'Name' value from sys_ui_view table)\n\n})(view, is_list);"
;
label
:
"Script"
;
mandatory
:
false
;
maxLength
:
8000
;
read_only
:
false
;
}
,
>
;
sys_id
:
Typed
<
string
|
number
,
{
active
:
true
;
column_type
:
"GUID"
;
label
:
"Sys ID"
;
mandatory
:
false
;
read_only
:
false
;
}
,
>
;
table
:
Typed
<
keyof
Tables
,
{
active
:
true
;
attributes
:
{
allow_public
:
true
}
;
label
:
[
{
hint
:
"The table where this view rule will apply"
;
label
:
"Table"
;
language
:
"en"
;
}
,
]
;
mandatory
:
false
;
maxLength
:
80
;
read_only
:
false
;
}
,
>
;
view
:
Typed
<
string
,
{
active
:
true
;
dropdown
:
"none"
;
label
:
[
{
hint
:
"The view name from sys_ui_view to display when conditions are met"
;
label
:
"View"
;
language
:
"en"
;
}
,
]
;
mandatory
:
false
;
maxLength
:
40
;
read_only
:
false
;
}
,
>
;
}
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
@servicenow/sdk - v4.4.1
Loading...