All Highways Defects - Default
This hub widget is included in the Highways package.
Description
This widget is a template, so it's offered by the From template menu when a user adds a widget to a hub.
Properties
This widget has the following properties.
| Property | Value |
|---|---|
| Name | All Highways Defects - Default |
| Item ID | 682703aa454b69f03f711f8e |
| Type | Standard |
| Collection | Template |
| Context | Package |
| Show percentage bars | No |
| Default app | Not specified, each data point opens in the most suitable app for its type |
Data points
This widget has 4 data points, each querying the items below.
| Data point | Source | Targets | Icon | Colour |
|---|---|---|---|---|
| Status No Action Required (Reported within the last 30 days) | Query | Highways Defects | icon-defect | #f9bc13 |
| Status Job Raised (Reported within the last 30 days) | Query | Highways Defects | icon-defect | #fc8150 |
| Status Remedied (Remedied date in the last 30 days) | Query | Highways Defects | icon-defect | #44a541 |
| Unusual Status, no decision, category, type or geometry | Query | Highways Defects | icon-misc-question-mark | #7f44d4 |
Configuration
The full configuration of this widget, including each data point's query.
Show configuration (356 lines)
{
"hasBars": false,
"type": "Standard",
"dataPoints": [
{
"id": "392b2530-3240-11f0-8cb2-a95c5dace2a2",
"name": "Status No Action Required (Reported within the last 30 days)",
"style": {
"icon": "icon-defect",
"colour": "#f9bc13"
},
"type": "CustomQuery",
"aqs": {
"type": "Query",
"properties": {
"attributes": [
"attributes_highwaysDefectsHighwaysDefectCategory_67daffbcb932691ca1967351",
"attributes_defectsDefectType",
"attributes_defectsReportedDate",
"attributes_defectsDefectNumber",
"attributes_defectsRemediedDate",
"attributes_defectsStatus",
"attributes_defectsDescription",
"attributes_defectsWorkToDo",
"attributes_highwaysDefectsDefectDecision_67dbbeb5b932691ca1967522",
"attributes_highwaysDefectsOnsiteAction_67e128c9b932691ca1967b46"
],
"collectionCode": "Live",
"dodiCode": "designInterfaces_highwaysDefects_67dae589b932691ca1967037",
"parameters": [
{
"name": "currentUserId",
"type": "AlloyId",
"title": "Current user ID"
}
]
},
"children": [
{
"type": "And",
"children": [
{
"type": "Equals",
"children": [
{
"type": "Attribute",
"properties": {
"attributeCode": "attributes_defectsStatus"
}
},
{
"type": "AlloyId",
"properties": {
"value": [
"5c8bdfe08ae862230019dc24"
]
}
}
]
},
{
"type": "GreaterThan",
"properties": {
"inclusive": true
},
"children": [
{
"type": "Attribute",
"properties": {
"attributeCode": "attributes_defectsReportedDate"
}
},
{
"type": "RelativeDateTime",
"properties": {
"relativeTo": "Now",
"value": [
"-30.00:00:00.000"
]
}
}
]
}
]
}
]
}
},
{
"id": "f3edecf0-323f-11f0-8cb2-a95c5dace2a2",
"name": "Status Job Raised (Reported within the last 30 days)",
"style": {
"icon": "icon-defect",
"colour": "#fc8150"
},
"type": "CustomQuery",
"aqs": {
"type": "Query",
"properties": {
"attributes": [
"attributes_highwaysDefectsHighwaysDefectCategory_67daffbcb932691ca1967351",
"attributes_defectsDefectType",
"attributes_defectsReportedDate",
"attributes_defectsDefectNumber",
"attributes_defectsRemediedDate",
"attributes_defectsStatus",
"attributes_defectsDescription",
"attributes_defectsWorkToDo",
"attributes_highwaysDefectsDefectDecision_67dbbeb5b932691ca1967522",
"attributes_highwaysDefectsOnsiteAction_67e128c9b932691ca1967b46"
],
"collectionCode": "Live",
"dodiCode": "designInterfaces_highwaysDefects_67dae589b932691ca1967037",
"parameters": [
{
"name": "currentUserId",
"type": "AlloyId",
"title": "Current user ID"
}
]
},
"children": [
{
"type": "And",
"children": [
{
"type": "Equals",
"children": [
{
"type": "Attribute",
"properties": {
"attributeCode": "attributes_defectsStatus"
}
},
{
"type": "AlloyId",
"properties": {
"value": [
"5c8bdfc18ae862230019dc21"
]
}
}
]
},
{
"type": "GreaterThan",
"properties": {
"inclusive": true
},
"children": [
{
"type": "Attribute",
"properties": {
"attributeCode": "attributes_defectsReportedDate"
}
},
{
"type": "RelativeDateTime",
"properties": {
"relativeTo": "Now",
"value": [
"-30.00:00:00.000"
]
}
}
]
}
]
}
]
}
},
{
"id": "9ef37850-323f-11f0-8cb2-a95c5dace2a2",
"name": "Status Remedied (Remedied date in the last 30 days)",
"style": {
"icon": "icon-defect",
"colour": "#44a541"
},
"type": "CustomQuery",
"aqs": {
"type": "Query",
"properties": {
"attributes": [
"attributes_highwaysDefectsHighwaysDefectCategory_67daffbcb932691ca1967351",
"attributes_defectsDefectType",
"attributes_defectsReportedDate",
"attributes_defectsDefectNumber",
"attributes_defectsRemediedDate",
"attributes_defectsStatus",
"attributes_defectsDescription",
"attributes_defectsWorkToDo",
"attributes_highwaysDefectsDefectDecision_67dbbeb5b932691ca1967522",
"attributes_highwaysDefectsOnsiteAction_67e128c9b932691ca1967b46"
],
"collectionCode": "Live",
"dodiCode": "designInterfaces_highwaysDefects_67dae589b932691ca1967037",
"parameters": [
{
"name": "currentUserId",
"type": "AlloyId",
"title": "Current user ID"
}
]
},
"children": [
{
"type": "And",
"children": [
{
"type": "Equals",
"children": [
{
"type": "Attribute",
"properties": {
"attributeCode": "attributes_defectsStatus"
}
},
{
"type": "AlloyId",
"properties": {
"value": [
"5c8bdfc88ae862230019dc22"
]
}
}
]
},
{
"type": "GreaterThan",
"properties": {
"inclusive": true
},
"children": [
{
"type": "Attribute",
"properties": {
"attributeCode": "attributes_defectsRemediedDate"
}
},
{
"type": "RelativeDateTime",
"properties": {
"relativeTo": "Now",
"value": [
"-30.00:00:00.000"
]
}
}
]
}
]
}
]
}
},
{
"id": "7485ce60-323f-11f0-8cb2-a95c5dace2a2",
"name": "Unusual Status, no decision, category, type or geometry",
"style": {
"icon": "icon-misc-question-mark",
"colour": "#7f44d4"
},
"type": "CustomQuery",
"aqs": {
"type": "Query",
"properties": {
"attributes": [
"attributes_highwaysDefectsHighwaysDefectCategory_67daffbcb932691ca1967351",
"attributes_defectsDefectType",
"attributes_defectsReportedDate",
"attributes_defectsDefectNumber",
"attributes_defectsRemediedDate",
"attributes_defectsStatus",
"attributes_defectsDescription",
"attributes_defectsWorkToDo",
"attributes_highwaysDefectsDefectDecision_67dbbeb5b932691ca1967522",
"attributes_highwaysDefectsOnsiteAction_67e128c9b932691ca1967b46"
],
"collectionCode": "Live",
"dodiCode": "designInterfaces_highwaysDefects_67dae589b932691ca1967037",
"parameters": [
{
"name": "currentUserId",
"type": "AlloyId",
"title": "Current user ID"
}
]
},
"children": [
{
"type": "Or",
"children": [
{
"type": "Equals",
"children": [
{
"type": "Attribute",
"properties": {
"attributeCode": "attributes_defectsStatus"
}
},
{
"type": "AlloyId",
"properties": {
"value": [
"5c8bdfb28ae862230019dc1e",
"5c8bdfb58ae862230019dc1f",
"5c8bdfb98ae862230019dc20",
"5c8bdfdb8ae862230019dc23",
"5c8bdff68ae862230019dc25"
]
}
}
]
},
{
"type": "NotExists",
"children": [
{
"type": "Attribute",
"properties": {
"attributeCode": "attributes_highwaysDefectsHighwaysDefectCategory_67daffbcb932691ca1967351"
}
}
]
},
{
"type": "NotExists",
"children": [
{
"type": "Attribute",
"properties": {
"attributeCode": "attributes_highwaysDefectsDefectDecision_67dbbeb5b932691ca1967522"
}
}
]
},
{
"type": "NotExists",
"children": [
{
"type": "Attribute",
"properties": {
"attributeCode": "attributes_itemsGeometry"
}
}
]
}
]
}
]
}
}
]
}