Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a UI5 Integration Card that Displays Data from the SAP Gateway Demo System - wrong instructions step 3 item 2 #23801

Open
fabiopagoti opened this issue Oct 26, 2024 · 1 comment
Assignees

Comments

@fabiopagoti
Copy link

Tutorials: https://developers.sap.com/tutorials/appstudio-sapui5-integrationcard-create.html

Step 3, item 2 is wrong.
"data" should be inside "content" and not one level above.

It should be"

"sap.card": {
        "type": "List",
        "configuration": {
            "destinations": {
                "ES5": {
                    "name": "ES5",
                    "defaultUrl": "/sap/opu/odata/sap/EPM_REF_APPS_SHOP_SRV/"
                }
            }
        },
        "designtime": "dt/configuration",
        "header": {
            "title": "List Card with Top 5 Products",
            "subTitle": "These are the top sellers this month",
            "icon": {
                "src": "sap-icon://desktop-mobile"
            },
            "status": {
                "text": "5 of 20"
            }
        },
        "content": {
            "data": {
                "request": {
                    "url": "{{destinations.ES5}}/sap/opu/odata/sap/EPM_REF_APPS_SHOP_SRV/Products"
                },
                "path": "/d/results"
            },
            "item": {
                "title": "{Name}",
                "description": "{Description}",
                "icon": {
                    "src": "{ImageUrl}"
                },
                "info": {
                    "value": "{AverageRating}",
                    "state": "{= ${AverageRating} > 3.5 ? 'Success' : 'Warning' }"
                }
            },
            "maxItems": 5
        }
    },
@jmmargo
Copy link
Contributor

jmmargo commented Oct 27, 2024

@BorisDafov can you please respond to the user's feedback? Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants