views/case/projects
Case Projects Component Adds a select to edit mode of Cases to select active projects for the Asset.
Members
hidden
Type |
Description |
---|---|
Boolean |
This view is to be shown or hidden |
Default
{
"hidden": false
}
label
Type |
Description |
---|---|
String |
Select label |
Default
{
"label": "Project"
}
name
Type |
Description |
---|---|
String |
Select name |
Default
{
"name": "custpage_nx_active_projects"
}
options
Resolvable template for the select options for the current case.
Properties
Property |
Type |
Description |
---|---|---|
id |
String |
Project id |
label |
String |
Label to use for the project |
selected |
String |
Options with a truthy selected value are automatically selected in ascending order. |
Default
{
"options": {
"array": true,
"active": {
"record": "job",
"filters": [
[
"custentity_nx_asset",
"anyof",
"${ supportcase.asset }"
],
"and",
[
[
"startdate",
"isempty",
""
],
"or",
[
"formulatext:case when from_tz(cast({startdate} as timestamp), case when {custentity_nx_time_zone.custrecord_nx_time_zone_olson} like '%/%' then {custentity_nx_time_zone.custrecord_nx_time_zone_olson} else SESSIONTIMEZONE end) <= timestamp '${ supportcase.starttimestamp }' then 'T' else 'F' end",
"is",
"T"
]
],
"and",
[
[
"enddate",
"isempty",
""
],
"or",
[
"formulatext:case when from_tz(cast(({enddate} + 1) as timestamp), case when {custentity_nx_time_zone.custrecord_nx_time_zone_olson} like '%/%' then {custentity_nx_time_zone.custrecord_nx_time_zone_olson} else SESSIONTIMEZONE end) > timestamp '${ supportcase.starttimestamp }' then 'T' else 'F' end",
"is",
"T"
]
],
"and",
[
"isinactive",
"is",
"F"
]
],
"map": {
"id": "internalid",
"label": "formulatext:{custentity_nx_customer}||' : '||{custentity_nx_project_type}||nvl2({startdate},' from '||{startdate},'')||nvl2({enddate},' to '||{enddate},'')||nvl2({custentity_nx_time_zone}, ' ' || {custentity_nx_time_zone.custrecord_nx_time_zone_abbreviation},'')",
"selected": "formulatext:''"
}
},
"types": {
"record": "customrecord_nx_project_type",
"filters": [
[
"isinactive",
"is",
"F"
],
"and",
[
"internalid",
"noneof",
[
0
]
]
],
"map": {
"id": "formulatext:'type-'||{Internalid}",
"label": "formulatext:'- New '||{Name}||' -'",
"selected": "formulatext:''"
}
}
}
}
refreshFields
Type |
Description |
---|---|
Array.<String> |
Fields that trigger refresh |
Default
{
"refreshFields": [
"custevent_nx_case_asset",
"startdate",
"starttime"
]
}
showFields
Type |
Description |
---|---|
Array.<String> |
Fields required to show active projects field |
Default
{
"showFields": [
"custevent_nx_case_asset"
]
}