Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "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