GX-Feature #70773
Von Till Tepelmann vor 2 Monaten aktualisiert
Es wäre gut, wenn es eine einfache Möglichkeit gäbe, die Verwaltung der Kundendaten um eigene Felder zu erweitern. Wir nutzen die bereits im System verfügbaren CustomerAddonValues, die über die API mit Daten gefüllt werden können, oder von GXModules benutzt werden können. It would be good if there was an easy way to add custom fields to the customer data management. We use the CustomerAddonValues already available in the system, which can be filled with data via the API or used by GXModules. ![Bildschirmfoto_2023-12-21_um_11.45.20](/uploads/a46a26f03b26851dfc0d771de637dcbb/Bildschirmfoto_2023-12-21_um_11.45.20.png) ![Bildschirmfoto_2023-12-21_um_11.46.26](/uploads/5128625dbcacebd3ef67b0d8419f1b4f/Bildschirmfoto_2023-12-21_um_11.46.26.png) ``` ├── 3rdPartyCustomerChanges │ └── Admin │ └── customers │ ├── overview │ │ ├── filter.json │ │ ├── menu.json │ │ ├── table.json │ │ └── topbar.json │ └── profile │ ├── address.json │ ├── cards.json │ ├── company.json │ ├── contact.json │ ├── menu.json │ ├── personal_information.json │ ├── settings.json │ └── topbar.json └── More3rdPartcCustomerChanges └── Admin └── customers ├── overview │ └── menu.json └── profile ├── address.json ├── company.json ├── contact.json ├── menu.json ├── personal_information.json ├── settings.json └── topbar.json ``` To use the new extension in the new customer page, you can create the JSON files in the above mentioned folders. Here are some examples: /GXModules/GambioTT/More3rdPartcCustomerChanges/Admin/customers/overview/table.json ``` { "myRow4": { "title": "myRow4", "label": "myLabel", "width": 150, "addonValueKey": "myAddonKey" }, "myRow5": { "title": "", "type": "icon", "label": "myIcon", "icon": "gift", "width": 50, "addonValueKey": "another-addon-value-key", "if": { "operator" : "=", "value" : 1234 } } } ``` /GXModules/GambioTT/3rdPartyCustomerChanges/Admin/customers/profile/topbar.json ``` { "myInput" : { "label" : "3rdPartyCustomerChanges.myButton2", "type" : "input", "unit" : "€" }, "myButton" : { "label" : "3rdPartyCustomerChanges.myButton", "type" : "button", "modal" : "MyModal", "action" : "openModal", "color" : "secondary", "icon" : "clock" }, "myIcon" : { "type" : "button", "modal" : "MyModal", "action" : "openModal", "color" : "secondary", "icon" : "user" }, "MyModal" : { "title" : "myModalTitle", "type" : "modal", "content" : "myForm", "buttons" : { "myButton2" : { "label" : "Abbrechen", "action" : "close" }, "myButton" : { "label" : "Speichern", "action" : "save", "color" : "primary" } } } } ``` /GXModules/GambioTT/3rdPartyCustomerChanges/Admin/customers/profile/cards.json ``` { "myCard": { "title": "3rdPartyCustomerChanges.mycard", "type": "card", "content": { "inputGroup": { "placeholder": "InputGroup", "type": "InputGroup", "before": { "myButton": { "type": "button", "action": "save", "icon": "clock", "color": "primary" } }, "after": { "myText": { "type": "Text", "label": "€" } } } } }, "myCard2": { "title": "3rdPartyCustomerChanges.myCard2", "type": "card", "content": { "inputGroup": { "placeholder": "InputGroup", "type": "InputGroup", "after": { "myButton": { "label": "Button", "type": "button", "action": "save", "color": "primary" } } }, "myButton": { "label": "Speichern", "type": "button", "action": "save", "color": "primary" } } } } ```