SAP Knowledge Base Article - Preview

2470103 - Unable to add XML Fragment to SimpleForm control - SAPUI5

Symptom

When trying to add a view fragment to a SimpleForm control via JavaScript (not XML), an error similar to the following is observed in the console:

  • Uncaught (in promise) Error: "Element sap.ui.core.Title#__title0,Element sap.m.Label#__label0,Element sap.m.Input#testistest--inputStreetID,Element sap.m.Input#testistest--inputNumberID,Element sap.m.Label#__label1,Element sap.m.Input#testistest--inputZipID,Element sap.m.Input#testistest--inputCityID" is not valid for aggregation "content" of Element sap.ui.layout.form.SimpleForm#__xmlview1--AddressIDandSoOn
  • Uncaught (in promise) Error: [...] is not valid for aggregation "content" of Element sap.ui.layout.form.SimpleForm


Read more...

Environment

  • SAPUI5
  • SAP NetWeaver

Product

SAP HANA 1.0, platform edition

Keywords

fragment javascript, addContent, insertContent, invalid aggregation, fragment array, fragment element , KBA , CA-UI5-COR , Core and Runtime , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.