Skip to content

Commit 1c90242

Browse files
francoisfrancois
authored andcommitted
View item with external object data
1 parent f125958 commit 1c90242

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

docs/make/userinterface/externalobjects/uicomponent.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,25 @@ Similarly to creating any type of *External Object*, go to *User Interface > Ext
5555
- Set the **Source** to **External Object** and the **External Page** to your component's name.
5656
> Example values:
5757
> ![](img/uicomponent/uicomp_modal_form.png)
58+
- JSON **Data** contains:
59+
- the external object name
60+
- optionally your contextual URL parameters (needed by the external object in this view)
61+
- and fields values (only when External object definition has fields)
62+
63+
```json
64+
{
65+
"extobject": "UIObjectCounter",
66+
"params": { "myparam1": "xxx", "myparam2": "yyy" }
67+
"fields": {
68+
"uiCounterTextColor": "",
69+
"uiCounterFieldId__fld_name": "demoOrdTotal",
70+
"uiCounterObjId__obo_name": "DemoOrder",
71+
"uiCounterIcon": "fas/euro-sign",
72+
"uiCounterColor": "red",
73+
"uiCounterBgColor": ""
74+
}
75+
}
76+
```
5877

5978
5. Click **Save** in the modal's footer, **Save** in the template editor, and **Save** in the view's form. Then **Clear your cache** and by visiting your view, you should see your component.
6079

0 commit comments

Comments
 (0)