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/development/custom_js.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,11 +3,11 @@ outline: [2, 6]
3
3
---
4
4
# Custom JS
5
5
6
-
If the UI5 framework functionalities do not fulfill all the requirements, you have the option to define your own custom frontend functions and call them at the frontend. For example, this approach is used in the scanner section to play a sound after scanning.
6
+
If the standard UI5 framework functionalities do not fulfill all your requirements, you can define and call your own custom JavaScript functions. For example, this approach is used in the scanner section to play a sound after scanning.
7
7
8
8
The idea is to send the custom JavaScript function along with the view to the frontend and invoke it later when an event is triggered.
9
9
10
-
Below is a working example:
10
+
Below is a working example that you can use as a starting point:
Copy file name to clipboardExpand all lines: docs/development/logging.md
+5-6Lines changed: 5 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ outline: [2, 6]
3
3
---
4
4
# Logging, BAL
5
5
6
-
Logging is essential for developing end-user business processes. In ABAP systems, the standard tool for this purpose is the Business Application Log (BAL), supported in both on-premise systems and ABAP Cloud (via new APIs). With abap2UI5, you can use BAL functions just as you would in classic development and create a table with the entries or use predefined popups provided by the framework.
6
+
Logging is essential for developing end-user business processes. In ABAP systems, the standard tool for this purpose is the Business Application Log (BAL), which is supported in both on-premise systems and ABAP Cloud. With abap2UI5, you can use BAL functions just as you would in classic development. Logs can be displayed in tables or using the predefined popups provided by the framework.
7
7
8
8
##### BAL Variables
9
9
In ABAP classic, you can use the classic BAL function modules and display the BAL table with the popup `z2ui5_cl_pop_messages`:
@@ -19,7 +19,7 @@ METHOD z2ui5_if_app~main.
19
19
```
20
20
21
21
##### ABAP Cloud
22
-
In ABAP cloud, you can just import the logging object into the message popup:
22
+
In ABAP Cloud, you can directly pass the logging object into the popup:
23
23
```abap
24
24
METHOD z2ui5_if_app~main.
25
25
@@ -61,7 +61,7 @@ ENDMETHOD.
61
61
```
62
62
63
63
##### BAL Popup
64
-
Compared to T100 messages, BAL logs include more detailed information, such as timestamps. You can also use the BAL log popup to display this information. All the examples above can be used as is, but for the popup app, you should use the `z2ui5_cl_pop_bal` popup instead:
64
+
Compared to message classes, BAL logs include more detailed information, such as timestamps. You can also use the specific BAL log popup to display this information. All the examples above can be used with the `z2ui5_cl_pop_bal`popup instead. Here’s an example using the abap-logger:
65
65
66
66
```abap
67
67
METHOD z2ui5_if_app~main.
@@ -78,6 +78,5 @@ ENDMETHOD.
78
78
```
79
79
80
80
::: tip
81
-
This popup is still in its early stages, offering basic functionality. If you’ve implemented BAL features with abap2UI5, consider sharing your work! Contributions and pull requests are always welcome.
82
-
:::
83
-
81
+
This popup is still in its early stages and offers basic functionality. If you’ve implemented BAL features with abap2UI5, consider contributing to extend its capabilities. Contributions are always welcome!
0 commit comments