3. SAP UI5 Controller Create & Module Add
SAP UI5 Controller Create & Module Add 이전 단계에서는 UI5의 MVC 패턴 중 V(view)에 해당하는 내용을 살펴보았다. 이번 단계에서는 C(Controller)에 해당하는 UI5 동작 적용에 대한 내용을 작성한다. (In the previous step, contents corresponding to V (view) among the MVC patterns of UI5 were examined. In this step, contents for application of UI5 operation corresponding to C (controller) are created.) 실행 결과(Results of this step) 실행 순서(Order of execution of this step): XML view에 버튼 추가 및 Controller를 지정한다. (Add a button and specify a controller in the XML view.) 동작을 제어할 Controller 생성한다. (Create a controller to control the behavior.) 1. XML view에 버튼 추가 및 Controller 지정 (Add a button and specify a controller in the XML view.) webapp/view/App.view.xml에 아래의 노란색 부분 코드를 수정한다. (Modify the yellow partial code below in webapp/view/App.view.xml.) 1 2 3 4 5 6 < mvc:View controllerName = "ui5_tutorial.controller.App" xmlns = "sap.m" xmlns:mvc = "sap.ui.core.mvc" > ...