Skip to content

SAPUI5 Diagnostics Tools are essential for debugging and optimizing the performance of SAPUI5 applications. These tools offer insights into various aspects of your application's runtime behavior, allowing you to identify and resolve issues efficiently.

License

Notifications You must be signed in to change notification settings

VaibhavMojidra/SAP-UI5---Demo-Basic-UI-Typo-Error-Debugging-Using-SAPUI5-Diagnostics-Tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SAP UI5 Demo Basic UI Typo Error Debugging Using SAPUI5 Diagnostics Tools

SAPUI5 Diagnostics Tools are essential for debugging and optimizing the performance of SAPUI5 applications. These tools offer insights into various aspects of your application's runtime behavior, allowing you to identify and resolve issues efficiently.

Error Explaination:

We have done a small typo in our file /webapp/view/InvoicesList.view.xml which is capital 'T' instead of small t in number attribute binding ExTendedPrice.

Result of error

Because of this typo we are unable to see the numbers / currency in our invoices list.

Wrong code

number = "{
    parts: [
        'invoice>ExTendedPrice',
        'myView>/currency'
    ],
    type: 'sap.ui.model.type.Currency',
    formatOptions: {
        showMeasure: false
    }
}"

Right code after debug should be:

number = "{
    parts: [
        'invoice>ExtendedPrice',
        'myView>/currency'
    ],
    type: 'sap.ui.model.type.Currency',
    formatOptions: {
        showMeasure: false
    }
}"

How to debug this code

Step 1: After running the code press Ctrl + Shift + ALT + S (For WINDOWS) or control + shift + option + S (For MAC)

Step 2: SAPUI5 Diagnostics Tools Will be opened. Click and expand the Control Tree.

Step 3: Click and expand list control and click on 'ObjectListItem0' which is first item in our list.

Step 4: Go to the Binding Infos tab on the right, and scroll down, we can actually see that the binding path of the number attribute is marked as invalid.

Step 5: We found issue now check the spelling and correct it and try re-running the app.

All the steps are shown below with screenshots and also a video link for same is here: How To Debug


Vaibhav Mojidra - 1.jpeg

Vaibhav Mojidra - 2.jpeg

Vaibhav Mojidra - 3.jpeg

Vaibhav Mojidra - 4.jpeg

Vaibhav Mojidra - 5.jpeg

Vaibhav Mojidra - HowToDebugUI.gif

About

SAPUI5 Diagnostics Tools are essential for debugging and optimizing the performance of SAPUI5 applications. These tools offer insights into various aspects of your application's runtime behavior, allowing you to identify and resolve issues efficiently.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published