You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/advanced/technical/concept.md
+15-8Lines changed: 15 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -133,37 +133,44 @@ PICPICPICPIC
133
133
A central feature of HTML Over the Wire is that only the affected parts of the page are updated, rather than the entire document. Can this be achieved in UI5? While altering the XML view would typically trigger a full re-render, updating only the view model and binding attributes accordingly allows UI5 to update just the relevant UI elements. Consider this example:
134
134
135
135
```abap
136
-
CLASS z2ui5_cl_app_partly_rerender DEFINITION PUBLIC CREATE PUBLIC.
136
+
CLASS z2ui5_cl_demo_app_025 DEFINITION PUBLIC CREATE PUBLIC.
137
137
138
138
PUBLIC SECTION.
139
139
INTERFACES z2ui5_if_app.
140
140
DATA text TYPE string.
141
+
DATA partly TYPE abap_bool.
141
142
142
143
ENDCLASS.
143
144
144
-
CLASS z2ui5_cl_app_partly_rerender IMPLEMENTATION.
145
+
CLASS z2ui5_cl_demo_app_025 IMPLEMENTATION.
145
146
146
147
METHOD z2ui5_if_app~main.
147
148
148
-
IF client->check_on_init( ).
149
+
text = text && ` text`.
150
+
151
+
IF client->check_on_init( ) OR partly = abap_false.
All credits go here to the beatigul ui5 framework, it checks automatically for view model updates and only rerenderd the necessary controls. always keep in min to resend the view as selten as pssible but becaue i ttriggers w whole rerender cisotn gperfomrance and a bda ux experience. always try to only use
162
168
```abap
163
169
client->view_model_update( ).
164
170
```
171
+
you also see the that the fcus stays stable giving the user has a great expereince, and done with a couple of lines of abap. this is all wenn need to call it UI5 over-the-wire.
165
172
166
-
#### What about RAP?
173
+
#### Isnt RAo aso also a bakcend driven and similar?
167
174
168
175
Although RAP [(3)](https://pages.community.sap.com/topics/abap/rap) shifts more logic and development to the backend, it cannot be considered an “over-the-wire” approach:
169
176
- RAP focuses on defining data models (CDS), services, and transactional logic in ABAP, exposing them via OData endpoints consumed by the frontend
0 commit comments