포스트

상세보기 라우트 제거

주석참고하여 수정

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
{
  "_version": "1.80.0",
  "sap.app": {
    "id": "com.uye**.z**co0050.ui5umez**co0050",
    "type": "application",
    "i18n": "i18n/i18n.properties",
    "applicationVersion": {
      "version": "0.0.1"
    },
    "title": "",
    "description": "",
    "resources": "resources.json",
    "sourceTemplate": {
      "id": "@sap/generator-fiori:lrop",
      "version": "1.25.0",
      "toolsId": "168cb682-1796-4305-8c27-f24c0ceee9b5"
    },
    "dataSources": {
      "annotation": {
        "type": "ODataAnnotation",
        "uri": "annotations/annotation.xml",
        "settings": {
          "localUri": "annotations/annotation.xml"
        }
      },
      "mainService": {
        "uri": "/sap/opu/odata4/sap/zui_bp_activity__o4/srvd/sap/zui_bp_activity__o4/0001/",
        "type": "OData",
        "settings": {
          "annotations": [
            "annotation"
          ],
          "localUri": "localService/mainService/metadata.xml",
          "odataVersion": "4.0"
        }
      }
    }
  },
  "sap.ui": {
    "technology": "UI5",
    "icons": {
      "icon": "",
      "favIcon": "",
      "phone": "",
      "phone@2": "",
      "tablet": "",
      "tablet@2": ""
    },
    "deviceTypes": {
      "desktop": true,
      "tablet": true,
      "phone": true
    }
  },
  "sap.ui5": {
    "flexEnabled": true,
    "dependencies": {
      "minUI5Version": "1.142.12",
      "libs": {
        "sap.m": {},
        "sap.ui.core": {},
        "sap.fe.templates": {}
      }
    },
    "contentDensities": {
      "compact": true,
      "cozy": true
    },
    "models": {
      "i18n": {
        "type": "sap.ui.model.resource.ResourceModel",
        "settings": {
          "bundleName": "com.uye**.z**co0050.ui5umez**co0050.i18n.i18n"
        }
      },
      "": {
        "dataSource": "mainService",
        "preload": true,
        "settings": {
          "operationMode": "Server",
          "autoExpandSelect": true,
          "earlyRequests": true
        }
      },
      "@i18n": {
        "type": "sap.ui.model.resource.ResourceModel",
        "uri": "i18n/i18n.properties"
      }
    },
    "resources": {
      "css": []
    },
    "routing": {
      "config": {},
      "routes": [
        {
          "pattern": ":?query:",
          "name": "ZI_PRODNROUTINGOPSUBORDList",
          "target": "ZI_PRODNROUTINGOPSUBORDList"
        },

        // [제거 대상 1] 상세페이지(ObjectPage)로 이동하는 라우트
        // 삭제 시 리스트 -> 상세 진입 경로가 사라짐
        {
          "pattern": "ZI_PRODNROUTINGOPSUBORD({key}):?query:",
          "name": "ZI_PRODNROUTINGOPSUBORDObjectPage",
          "target": "ZI_PRODNROUTINGOPSUBORDObjectPage"
        }
        // [제거 대상 1] ---------------------------------------
      ],
      "targets": {
        "ZI_PRODNROUTINGOPSUBORDList": {
          "type": "Component",
          "id": "ZI_PRODNROUTINGOPSUBORDList",
          "name": "sap.fe.templates.ListReport",
          "options": {
            "settings": {
              "contextPath": "/ZI_PRODNROUTINGOPSUBORD",
              "variantManagement": "Page",

              // [제거 대상 2] 리스트 행 선택 시 detail route로 연결하는 네비게이션 매핑
              // 이 블록을 삭제해야 상세보기 동작이 완전히 끊김
              "navigation": {
                "ZI_PRODNROUTINGOPSUBORD": {
                  "detail": {
                    "route": "ZI_PRODNROUTINGOPSUBORDObjectPage"
                  }
                }
              },
// [제거 대상 2] ------------------------------------------
              "controlConfiguration": {
                "@com.sap.vocabularies.UI.v1.LineItem": {
                  "tableSettings": {
                    "type": "GridTable"
                  }
                }
              }
            }
          }
        },

        // [제거 대상 3] 상세페이지(ObjectPage) 타겟 컴포넌트 정의
        // route/navigation 제거 후 함께 삭제해야 라우팅 정합성 유지
        "ZI_PRODNROUTINGOPSUBORDObjectPage": {
          "type": "Component",
          "id": "ZI_PRODNROUTINGOPSUBORDObjectPage",
          "name": "sap.fe.templates.ObjectPage",
          "options": {
            "settings": {
              "editableHeaderContent": false,
              "contextPath": "/ZI_PRODNROUTINGOPSUBORD"
            }
          }
        }
        // [제거 대상 3] ------------------------------------------------------
      }
    }
  },
  "sap.fiori": {
    "registrationIds": [],
    "archeType": "transactional"
  },
  "sap.fe": {
    "app": {
      "enableLazyLoading": true
    }
  }
}
이 기사는 저작권자의 CC BY 4.0 라이센스를 따릅니다.