본문 바로가기

안녕하세요!

SAP/UI5

[ SAPUI5 ] Aggregation Binding

[ Invoices.json ]

{
    "Invoices": [
      {
        "ProductName": "Pineapple",
        "Quantity": 21,
        "ExtendedPrice": 87.2,
        "ShipperName": "Fun Inc.",
        "ShippedDate": "2015-04-01T00:00:00",
        "Status": "A"
      },
      {
        "ProductName": "Milk",
        "Quantity": 4,
        "ExtendedPrice": 10,
        "ShipperName": "ACME",
        "ShippedDate": "2015-02-18T00:00:00",
        "Status": "B"
      },
      {
        "ProductName": "Canned Beans",
        "Quantity": 3,
        "ExtendedPrice": 6.85,
        "ShipperName": "ACME",
        "ShippedDate": "2015-03-02T00:00:00",
        "Status": "B"
      },
      {
        "ProductName": "Salad",
        "Quantity": 2,
        "ExtendedPrice": 8.8,
        "ShipperName": "ACME",
        "ShippedDate": "2015-04-12T00:00:00",
        "Status": "C"
      },
      {
        "ProductName": "Bread",
        "Quantity": 1,
        "ExtendedPrice": 2.71,
        "ShipperName": "Fun Inc.",
        "ShippedDate": "2015-01-27T00:00:00",
        "Status": "A"
      }
    ]
  }

 

 

 

○ InvoiceList.view.xml

    - i18n에 초기화해 둔 invoiceListTitle 호출

    - width는 auto로 지정

○ App.view.xml

    - XMLView에 InvoiceList 불러오기 

 

왜 데이터를 못 받아오지..? 


○ SAP UI5 Full Course 유튜브 참고 : https://www.youtube.com/watch?v=C9cK2Z2JDLg&t=6s 

 

○ 위 유튜버 Git 참고 : https://github.com/brandoncaulfield/sap-ui5-walkthrough/commits/main?before=26f804cea86ce1fd92e22d9f287fec7f273ca46f+35&branch=main 

 

GitHub - brandoncaulfield/sap-ui5-walkthrough: SAP UI5 Walkthrough

SAP UI5 Walkthrough. Contribute to brandoncaulfield/sap-ui5-walkthrough development by creating an account on GitHub.

github.com

 

○ 코드 비교해가며 연습 진행하기

    - 각 Step의 'Copy the full SHA' 클릭해 복사 

    - 'git relog' : 모든 브랜치의 reflog 보기 

    - 'git resset --hard [ 복사한 full SHA ]'

    - 'ui5 serve' : 서버 실행  및 링크로 이

`

    - index.html 클릭 

    - 실행 여부 확인

728x90
반응형

'SAP > UI5' 카테고리의 다른 글

[ SAPUI5 ] Custom Formatters  (0) 2023.02.06
[ SAPUI5 ] Expression Binding - numberState  (0) 2023.02.06
[ SAPUI5 ] Icon  (0) 2023.02.03
[ SAPUI5 ] Fragment Callbacks  (0) 2023.02.03

loading