cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

The result of loadFragment is undefined.

Jacky_Liu1
Product and Topic Expert
Product and Topic Expert
0 Kudos
1,015

Hi,SAP UI5 expert,

When loadFragment , the result is undefined .

Jacky_Liu_0-1718592740386.png

But in network , the result is 200.

Jacky_Liu_1-1718592899526.png

Jacky_Liu_2-1718592908224.png

Can anyone help me to resolve this issue?

 

Best regards!

Jacky Liu

 

Accepted Solutions (1)

Accepted Solutions (1)

Jacky_Liu1
Product and Topic Expert
Product and Topic Expert
0 Kudos
Think this is related to SAP UI5 version. If i changed the version to 1.120.12, it works. But it is failed to deploy toSAP BTP Abap environment .

Answers (2)

Answers (2)

boghyon
Product and Topic Expert
Product and Topic Expert
0 Kudos

The loadFragment API from the screenshot is from Fiori elements sap.fe.core.ExtensionAPI#loadFragment which, btw, has nothing to do with the same-named loadFragment from the sap.ui.core.mvc.Controller.

Please create a ticket at CA-UI5-FE to resolve the issue.

To see which SAPUI5 version the app is currently running with, set the focus on the app UI (not on the launchpad header) and press Ctrl + Shift + Left Alt/⌥ + P.

ravishgarg
Participant
0 Kudos

Hi Jacky

The loadFragment method returns a Promise, so you'll need to handle it accordingly.

 

Regards

RG

Jacky_Liu1
Product and Topic Expert
Product and Topic Expert
0 Kudos
Hi, RG, Thanks for comments on this ! But loadFragment is predelivered sap ui5 library .We don't need to define it . please refer to :https://sapui5.hana.ondemand.com/#/topic/aeb86c181b9742a2bf88049abf9ccb95