cancel
Showing results for 
Search instead for 
Did you mean: 

SAP UI5: FragmentDefinition

Hi Experts,

I am new to SAP UI5 and trying to explore. I am stuck on a small doubt while working on Fragments. I was following opensap ui5 course and developer guide.

However, when I searched for the 'FragmentDefinition' class under API Reference tab in SDK, I am not able find any information on that. Similarly, I am not able to find the 'sap.ui.view' class in SDK.

Can someone help me with the API reference for this classes or if it is obsolete, help me with the latest alternative for it.

Many Thanks,

Sravan.

junwu
Active Contributor
0 Kudos

I have never had any need to check api for those thing.

what's your doubt about fragment?

0 Kudos

What you mean by those thing? When it comes to 'View' I can see the class associated to it in SDK using the path 'sap.ui.core.mvc.View'. In the similar lines why am I not able to find the class details for 'sap.ui.core.FragmentDefinition'. If my understanding about these concepts are wrong please correct me.

Accepted Solutions (1)

Accepted Solutions (1)

boghyon
Product and Topic Expert
Product and Topic Expert

`FragmentDefinition` is not a real API or module you can require. You won't find it in the API reference. Take a look at https://stackoverflow.com/a/69151528/5846045 for more information.

The factory function `sap.ui.view` is deprecated which you can find at https://ui5.sap.com/#/api/sap.ui%23methods/sap.ui.view. Alternatives are mentioned in the description of each deprecated API.

Answers (0)