Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "e667340c495ef924c929": {
- "id": 28,
- "created_at": "2022-04-12T00:11:49.338Z",
- "updated_at": "2022-04-13T16:43:16.000Z",
- "name": "Job - basic - tab",
- "uid": "e667340c495ef924c929",
- "description": null,
- "linked_page": null,
- "pageConfig": {
- "viewer": {
- "type": "Container",
- "id": "e667340c495ef924c929",
- "viewType": "Group",
- "columns": 1,
- "items": [
- {
- "type": "Container",
- "viewType": "Group",
- "columns": 1,
- "id": "acd26c8bc9c1a00441ca",
- "title": "",
- "items": [
- {
- "type": "Button",
- "id": "c0c85c3d5b609cb81e57",
- "icon": "save",
- "action": [
- {
- "actionType": "sendPayload",
- "description": "Save job",
- "actionArgs": {
- "payloads": [
- {
- "action": {
- "type": "save_datasource",
- "to": {
- "type": "store_config",
- "store": "job"
- },
- "value": {},
- "stores": [],
- "store": "job"
- },
- "name": "savejobds",
- "target": "{parent_instance_uid}"
- }
- ]
- },
- "debug": false
- }
- ],
- "text": "Save",
- "bindStore": "job",
- "tableName": "job"
- },
- {
- "type": "Container",
- "label": "Job info",
- "viewType": "Group",
- "columns": 3,
- "items": [
- {
- "type": "Number",
- "id": "25e4f6af9d28c0aad4bc",
- "label": "Duration",
- "bindStore": "job",
- "bindProperty": "job.0.duration",
- "fieldDef": [
- "job",
- "duration"
- ]
- },
- {
- "type": "Text",
- "id": "5f37afc27befe1e6b2d5",
- "label": "Job Number",
- "bindStore": "job",
- "bindProperty": "job.0.job_number",
- "required": true,
- "fieldDef": [
- "job",
- "job_number"
- ]
- },
- {
- "type": "Text",
- "id": "5111faec2ddec491dd49",
- "label": "Name",
- "bindStore": "job",
- "bindProperty": "job.0.name",
- "required": true,
- "fieldDef": [
- "job",
- "name"
- ]
- },
- {
- "type": "DateTime",
- "id": "2d604cc8b2a1c7a09dd5",
- "label": "Start Date",
- "bindStore": "job",
- "bindProperty": "job.0.start_date",
- "fieldDef": [
- "job",
- "start_date"
- ]
- },
- {
- "type": "SearchSelect",
- "id": "3f1c868690f06715ceb0",
- "label": "Project Manager",
- "bindStore": "job",
- "bindProperty": "job.0.project_manager",
- "fieldDef": [
- "job",
- "project_manager"
- ],
- "optionsDatasource": "employees",
- "optionsProperty": "employee",
- "optionsFormatLabel": "$:firstname $:lastname",
- "mode": "selective"
- }
- ],
- "id": "da973a0fffb45f02bdbf"
- },
- {
- "type": "Container",
- "label": "Job addresses",
- "viewType": "Group",
- "columns": 3,
- "items": [
- {
- "type": "ComponentPage",
- "id": "fa70c59cc0ff3f83b42b",
- "label": "Mailing Address",
- "bindStore": "job",
- "fieldDef": {
- "type": "foreign",
- "unique": false,
- "editable": false,
- "required": false,
- "foreign": {
- "table": "address",
- "type": "integer",
- "key": "id"
- },
- "reverse": false,
- "niceName": "Mailing Address",
- "group": {
- "name": "Job addresses",
- "description": "Job addresses"
- },
- "group_name": "Job addresses"
- },
- "optionsDatasource": "",
- "params": {
- "type": "SearchSelect",
- "id": "fa70c59cc0ff3f83b42b",
- "label": "Mailing Address",
- "bindStore": "job",
- "bindProperty": "job.0.mailing_address",
- "fieldDef": [
- "job",
- "mailing_address"
- ],
- "optionsDatasource": ""
- },
- "transfers": [
- {
- "name": "Outbound",
- "from": {
- "type": "store_value",
- "store": "job",
- "path": "job.0.mailing_address.0.id"
- },
- "to": {
- "store": "inputs",
- "type": "store_value",
- "path": "address_id"
- },
- "v": "1",
- "target": "{instance_uid}-c668eb5f0ca7d3646d47",
- "initiator": "{instance_uid}",
- "action": {},
- "target_uid": "fe8fe6839c47b18e595e",
- "event": "change"
- },
- {
- "name": "External Initiator",
- "to": {
- "type": "store_value",
- "store": "job",
- "path": "job.0.mailing_address.0.id"
- },
- "from": {
- "store": "address",
- "type": "store_value",
- "path": "address.0.id"
- },
- "v": "1",
- "target": "{parent_instance_uid}",
- "initiator": "{instance_uid}-fe8fe6839c47b18e595e",
- "action": {},
- "target_uid": "fe8fe6839c47b18e595e",
- "event": "change"
- }
- ],
- "uid": "fe8fe6839c47b18e595e",
- "bindProperty": "job.0.mailing_address.0.id"
- },
- {
- "type": "ComponentPage",
- "id": "1f5a471c5b0038e630c7",
- "label": "Physical Address",
- "bindStore": "job",
- "fieldDef": {
- "type": "foreign",
- "unique": false,
- "editable": false,
- "required": false,
- "foreign": {
- "table": "address",
- "type": "integer",
- "key": "id"
- },
- "reverse": false,
- "niceName": "Physical Address",
- "group": {
- "name": "Job addresses",
- "description": "Job addresses"
- },
- "group_name": "Job addresses"
- },
- "optionsDatasource": "",
- "params": {
- "type": "SearchSelect",
- "id": "1f5a471c5b0038e630c7",
- "label": "Physical Address",
- "bindStore": "job",
- "bindProperty": "job.0.physical_address",
- "fieldDef": [
- "job",
- "physical_address"
- ],
- "optionsDatasource": "",
- "params": {
- "type": "SearchSelect",
- "id": "1f5a471c5b0038e630c7",
- "label": "Physical Address",
- "bindStore": "job",
- "bindProperty": "job.0.physical_address",
- "fieldDef": [
- "job",
- "physical_address"
- ],
- "optionsDatasource": ""
- }
- },
- "transfers": [
- {
- "name": "Outbound",
- "from": {
- "type": "store_value",
- "store": "job",
- "path": "job.0.physical_address.0.id"
- },
- "to": {
- "store": "inputs",
- "type": "store_value",
- "path": "address_id"
- },
- "v": "1",
- "target": "{instance_uid}-fe8fe6839c47b18e595e",
- "initiator": "{instance_uid}",
- "action": {},
- "target_uid": "fe8fe6839c47b18e595e",
- "event": "change"
- },
- {
- "name": "External Initiator",
- "to": {
- "type": "store_value",
- "store": "job",
- "path": "job.0.physical_address.0.id"
- },
- "from": {
- "store": "address",
- "type": "store_value",
- "path": "address.0.id"
- },
- "v": "1",
- "target": "{parent_instance_uid}",
- "initiator": "{instance_uid}-fe8fe6839c47b18e595e",
- "action": {},
- "target_uid": "fe8fe6839c47b18e595e",
- "event": "change"
- }
- ],
- "uid": "fe8fe6839c47b18e595e",
- "bindProperty": "job.0.physical_address.0.id"
- },
- {
- "type": "ComponentPage",
- "id": "52fc74106022d3303229",
- "label": "Delivery Address",
- "bindStore": "job",
- "fieldDef": {
- "type": "foreign",
- "unique": false,
- "editable": false,
- "required": false,
- "foreign": {
- "table": "address",
- "type": "integer",
- "key": "id"
- },
- "reverse": false,
- "niceName": "Delivery Address",
- "group": {
- "name": "Job addresses",
- "description": "Job addresses"
- },
- "group_name": "Job addresses"
- },
- "optionsDatasource": "",
- "params": {
- "type": "SearchSelect",
- "id": "52fc74106022d3303229",
- "label": "Delivery Address",
- "bindStore": "job",
- "bindProperty": "job.0.delivery_address",
- "fieldDef": [
- "job",
- "delivery_address"
- ],
- "optionsDatasource": ""
- },
- "uid": "fe8fe6839c47b18e595e",
- "transfers": [
- {
- "name": "Outbound",
- "from": {
- "type": "store_value",
- "store": "job",
- "path": "job.0.delivery_address.0.id"
- },
- "to": {
- "store": "inputs",
- "type": "store_value",
- "path": "address_id"
- },
- "v": "1",
- "target": "{instance_uid}-c668eb5f0ca7d3646d47",
- "initiator": "{instance_uid}",
- "action": {},
- "target_uid": "fe8fe6839c47b18e595e",
- "event": "change"
- },
- {
- "name": "External Initiator",
- "to": {
- "type": "store_value",
- "store": "job",
- "path": "job.0.delivery_address.0.id"
- },
- "from": {
- "store": "address",
- "type": "store_value",
- "path": "address.0.id"
- },
- "v": "1",
- "target": "{parent_instance_uid}",
- "initiator": "{instance_uid}-fe8fe6839c47b18e595e",
- "action": {},
- "target_uid": "fe8fe6839c47b18e595e",
- "event": "change"
- }
- ]
- }
- ],
- "id": "615255da8ff35c7e9da8"
- },
- {
- "type": "Container",
- "label": "Accounting/Payroll",
- "viewType": "Group",
- "columns": 3,
- "items": [
- {
- "type": "Checkbox",
- "id": "e518593d9416bf21b6ed",
- "label": "Certified Payroll",
- "bindStore": "job",
- "bindProperty": "job.0.certified_payroll",
- "fieldDef": [
- "job",
- "certified_payroll"
- ]
- },
- {
- "type": "Checkbox",
- "id": "91fb011df7e749d6016d",
- "label": "Federal Funding",
- "bindStore": "job",
- "bindProperty": "job.0.federal_funding",
- "fieldDef": [
- "job",
- "federal_funding"
- ]
- },
- {
- "type": "Text",
- "id": "a214b5e7ba82046bc9dd",
- "label": "Federal Funding Agency",
- "bindStore": "job",
- "bindProperty": "job.0.federal_funding_agency",
- "fieldDef": [
- "job",
- "federal_funding_agency"
- ]
- },
- {
- "type": "Number",
- "id": "4caf3e62074c9b439e1c",
- "label": "Invoice Due",
- "bindStore": "job",
- "bindProperty": "job.0.invoice_due",
- "fieldDef": [
- "job",
- "invoice_due"
- ]
- },
- {
- "type": "Checkbox",
- "id": "143c1dced798e744b52e",
- "label": "Local Hires Required",
- "bindStore": "job",
- "bindProperty": "job.0.local_hires_required",
- "fieldDef": [
- "job",
- "local_hires_required"
- ]
- },
- {
- "type": "Text",
- "id": "da803839d34ea24115f8",
- "label": "Owner",
- "bindStore": "job",
- "bindProperty": "job.0.owner",
- "fieldDef": [
- "job",
- "owner"
- ]
- },
- {
- "type": "Number",
- "id": "40256cf9d367b60d16de",
- "label": "Partial Tax Exempt",
- "bindStore": "job",
- "bindProperty": "job.0.partial_tax_exempt",
- "fieldDef": [
- "job",
- "partial_tax_exempt"
- ]
- },
- {
- "type": "Checkbox",
- "id": "5a5db28e0f7773b1786b",
- "label": "Payment And Performance Bonds",
- "bindStore": "job",
- "bindProperty": "job.0.payment_and_performance_bonds",
- "fieldDef": [
- "job",
- "payment_and_performance_bonds"
- ]
- },
- {
- "type": "Number",
- "id": "4fd8526c6bab8460f68e",
- "label": "Retainage",
- "bindStore": "job",
- "bindProperty": "job.0.retainage",
- "fieldDef": [
- "job",
- "retainage"
- ]
- },
- {
- "type": "Text",
- "id": "4c964eecf014e172bbac",
- "label": "Special Wages",
- "bindStore": "job",
- "bindProperty": "job.0.special_wages",
- "fieldDef": [
- "job",
- "special_wages"
- ]
- },
- {
- "type": "Checkbox",
- "id": "9a3e36dce04dd91692cf",
- "label": "State Funding",
- "bindStore": "job",
- "bindProperty": "job.0.state_funding",
- "fieldDef": [
- "job",
- "state_funding"
- ]
- },
- {
- "type": "Text",
- "id": "44e1edb56d031624dc79",
- "label": "State Funding Agency",
- "bindStore": "job",
- "bindProperty": "job.0.state_funding_agency",
- "fieldDef": [
- "job",
- "state_funding_agency"
- ]
- },
- {
- "type": "Checkbox",
- "id": "c6c973ccc1621f808b45",
- "label": "Tax Exempt",
- "bindStore": "job",
- "bindProperty": "job.0.tax_exempt",
- "fieldDef": [
- "job",
- "tax_exempt"
- ]
- }
- ],
- "id": "2088ab5f7d3d93fc1100"
- },
- {
- "type": "Container",
- "label": "Safety",
- "viewType": "Group",
- "columns": 3,
- "items": [
- {
- "type": "DateTime",
- "id": "88a50b4a071d4cf46991",
- "label": "Faa Determination Expiration",
- "bindStore": "job",
- "bindProperty": "job.0.faa_determination_expiration",
- "fieldDef": [
- "job",
- "faa_determination_expiration"
- ],
- "date": true
- },
- {
- "type": "Text",
- "id": "1bfa92635fec5d1fbabf",
- "label": "Faa Determination Number",
- "bindStore": "job",
- "bindProperty": "job.0.faa_determination_number",
- "fieldDef": [
- "job",
- "faa_determination_number"
- ]
- },
- {
- "type": "Checkbox",
- "id": "491709702dc992a0a7c5",
- "label": "Faa Determination Required",
- "bindStore": "job",
- "bindProperty": "job.0.faa_determination_required",
- "fieldDef": [
- "job",
- "faa_determination_required"
- ]
- },
- {
- "type": "Text",
- "id": "24e8a2c913a859110d7e",
- "label": "Faa Notification Requirements",
- "bindStore": "job",
- "bindProperty": "job.0.faa_notification_requirements",
- "fieldDef": [
- "job",
- "faa_notification_requirements"
- ]
- }
- ],
- "id": "1580cd5e0212f53e230a"
- }
- ],
- "bindStore": ""
- }
- ],
- "bindStore": ""
- },
- "stores": [
- {
- "name": "job",
- "type": "Datasource",
- "isFetching": false,
- "afterFetch": [],
- "datasource": {
- "type": "GqlizerRaw",
- "value": "query ($job_id: JSON!) {\n job(where: [\"AND\", {id: {eq: $job_id}}]) {\n id\n mailing_address {\n id\n }\n physical_address {\n id\n }\n delivery_address {\n id\n }\n certified_payroll\n default_report\n duration\n faa_determination_expiration\n faa_determination_number\n faa_determination_required\n faa_notification_requirements\n federal_funding\n federal_funding_agency\n invoice_due\n job_number\n letter_of_intent_date\n local_hires_required\n name\n owner\n partial_tax_exempt\n payment_and_performance_bonds\n phases\n proposal_date\n region_bid_number\n renewal_interval\n retainage\n special_wages\n start_date\n state_funding\n state_funding_agency\n subcontract_date\n subcontract_value\n tax_exempt\n tz\n project_manager {\n id\n }\n }\n}",
- "vars": {
- "job_id": {
- "required": true,
- "varType": "Unknown",
- "name": "job_id",
- "store_value": {
- "store": "inputs",
- "property": "job_id"
- },
- "dev_value": "1"
- }
- },
- "autoload_disabled": false
- }
- },
- {
- "name": "employees",
- "type": "Datasource",
- "isFetching": false,
- "afterFetch": [],
- "datasource": {
- "type": "GqlizerRaw",
- "value": "{\n employee(where: [\"AND\", {status: {eq: \"A\"}}]) {\n id\n firstname\n lastname\n }\n}",
- "vars": {},
- "autoload_disabled": false
- }
- }
- ],
- "inputs": [
- {
- "field": "job_id",
- "paramid": "c666f1da6ae9fc37e2ad",
- "title": "job_id",
- "type": "url_param",
- "nice_name": "job_id",
- "required": false
- }
- ]
- }
- },
- "fe8fe6839c47b18e595e": {
- "id": 24,
- "created_at": "2022-04-11T23:21:50.681Z",
- "updated_at": "2022-04-13T16:43:16.000Z",
- "name": "Address Card",
- "uid": "fe8fe6839c47b18e595e",
- "description": null,
- "linked_page": null,
- "pageConfig": {
- "viewer": {
- "type": "Container",
- "id": "fe8fe6839c47b18e595e",
- "viewType": "Group",
- "columns": 1,
- "items": [
- {
- "icon": "view_day",
- "type": "Card",
- "name": "Card",
- "args": {},
- "id": "c668eb5f0ca7d3646d47",
- "bindStore": "address",
- "buttonsRight": [
- {
- "color": "secondary",
- "text": "",
- "icon": "link",
- "action": [
- {
- "actionType": "dialog",
- "description": "Create address",
- "actionArgs": {
- "payloads": [],
- "uid": "d0b22e0a8cae89fd9c72",
- "transfers": [
- {
- "name": "Push address ID to dialog",
- "from": {
- "type": "store_value",
- "store": "address",
- "path": "address.0.id"
- },
- "to": {
- "type": "store_value",
- "store": "inputs",
- "path": "address_id"
- },
- "target": "{instance_uid}-d0b22e0a8cae89fd9c72",
- "initiator": "{instance_uid}",
- "v": "1",
- "event": "change",
- "action": {},
- "target_uid": "d0b22e0a8cae89fd9c72"
- },
- {
- "name": "Modify Save Button Configuration",
- "v": "2",
- "target": "{instance_uid}-c0003da453bb627f7313",
- "event": "dialog_open",
- "initiator": "{instance_uid}",
- "type": "update_element_config",
- "config": {
- "action": {
- "mode": "overwrite",
- "value": [
- {
- "actionType": "sendPayload",
- "description": "New Action",
- "actionArgs": {
- "payloads": [
- {
- "name": "save",
- "target": "{instance_uid}",
- "action": {
- "type": "save_datasource",
- "store": "address",
- "stores": []
- }
- },
- {
- "name": "Callback the record ID",
- "target": "{parent_instance_uid}",
- "action": {
- "type": "update_store_value",
- "to": {
- "type": "store_value",
- "store": "inputs",
- "path": "address_id"
- },
- "value": {
- "type": "store_value",
- "store": "address",
- "path": "address.0.id"
- }
- }
- },
- {
- "name": "Reload parent ds",
- "target": "{parent_instance_uid}",
- "action": {
- "type": "force_datasource_update",
- "store": "address",
- "stores": []
- }
- },
- {
- "name": "Close Dialog",
- "target": "{instance_uid}",
- "action": {
- "type": "close_dialog"
- }
- }
- ]
- },
- "debug": false
- }
- ]
- }
- },
- "action": {},
- "target_uid": "d0b22e0a8cae89fd9c72"
- }
- ]
- },
- "debug": false
- }
- ]
- }
- ],
- "template": "<p><span data-mention=\"$:street1\"><span class=\"mention\" data-mention=\"$:street1\">$:street1</span></span> <span data-mention=\"$:street2\"><span class=\"mention\" data-mention=\"$:street2\">$:street2</span></span> <br><span data-mention=\"$:city\"><span class=\"mention\" data-mention=\"$:city\">$:city</span></span>, <span data-mention=\"$:state\"><span class=\"mention\" data-mention=\"$:state\">$:state</span></span> <br><span data-mention=\"$:country\"><span class=\"mention\" data-mention=\"$:country\">$:country</span></span> <br><span data-mention=\"$:zip\"><span class=\"mention\" data-mention=\"$:zip\">$:zip</span></span> </p>",
- "label": "Address",
- "bindProperty": "address.0"
- }
- ],
- "bindStore": ""
- },
- "stores": [
- {
- "name": "address",
- "type": "Datasource",
- "isFetching": false,
- "afterFetch": [],
- "datasource": {
- "type": "GqlizerRaw",
- "value": "query ($address_id: JSON) {\n address(where: [\"AND\", {id: {eq: $address_id}}]) {\n id\n street1\n street2\n unit\n pobox\n city\n zip\n state\n country\n }\n}",
- "vars": {
- "address_id": {
- "required": false,
- "varType": "Unknown",
- "name": "address_id",
- "store_value": {
- "store": "inputs",
- "property": "address_id"
- },
- "dev_value": ""
- }
- },
- "autoload_disabled": false
- }
- }
- ],
- "inputs": [
- {
- "field": "address_id",
- "paramid": "b984e91ac4074ab894ce",
- "title": "address_id",
- "type": "string",
- "nice_name": "address_id",
- "required": false
- }
- ]
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement