cancel
Showing results for 
Search instead for 
Did you mean: 

I am trying to implement Fragments in SAP UI5, but it showing some error

Former Member
0 Kudos

Dear Team,

I am working on a test app. ManageProducts. In this I have created a fragment SupplierInfo.xml under view folder:

=======================

<core:FragmentDefination xmlns="sap.m" xmlns:core="sap.ui.core" xmlns:form="sap.ui.layout.form">

<Panel id="__panel0" headerText="Supplier Details" expandable="{device>/system/phone}" expanded="true" width="auto"> <List id="supplierList"> <items> <StandardListItem icon="sap-icon://building" title="{ToSupplier/CompanyName}"/> <StandardListItem icon="sap-icon://email" title="{ToSupplier/EmailAddress}"/> <StandardListItem icon="sap-icon://world" title="{ToSupplier/WebAddress}"/> <StandardListItem icon="sap-icon://phone" title="{ToSupplier/PhoneNumber}"/> <StandardListItem icon="sap-icon://map" title="{ToSupplier/Address/City}"/> </items> </List> </Panel> <Panel id="__panel1" headerText="MapDetails"> <Image src="{ parts: [ 'ToSupplier/Address/Street', 'ToSupplier/Address/PostalCode', 'ToSupplier/Address/City', 'ToSupplier/Address/Country' ], formatter: '.formatter.formatMapUrl' }"/>

</Panel>

</core:FragmentDefination>

===============

I am referencing this SupplierInfo.xml in my view

as below

<mvc:View xmlns="sap.m" xmlns:mvc="sap.ui.core.mvc" xmlns:core="sap.ui.core" xmlns:semantic="sap.f.semantic" xmlns:form="sap.ui.layout.form" controllerName="opensap.manageproducts.controller.Object"> <semantic:SemanticPage id="page" headerPinnable="true" toggleHeaderOnTitleClick="false" busy="{objectView>/busy}" busyIndicatorDelay="{objectView>/delay}"> <semantic:titleHeading> <Title text="{ProductID}"/> </semantic:titleHeading> <semantic:headerContent> <ObjectNumber number="{ path: 'Price', formatter: '.formatter.numberUnit' }" numberUnit="{CurrencyCode}"/> <ObjectAttribute text="{SupplierName}" id="__attribute0"/> <Panel id="__panel3" headerText="Product Details" expanded="true" width="auto"> <form:SimpleForm id="objectForm"> <Label text="{i18n>productCategoryLabel}"/> <Text text="{Category}"/> <Label text="{i18n>productNameLabel}"/> <Text text="{Name}"/> <Label text="{i18n>productWeightLabel}"/> <Text text="{= ${WeightMeasure} + ' ' + ${WeightUnit}}"/> </form:SimpleForm> </Panel>

<core:FragmentfragmentName="opensap.manageproducts.view.SupplierInfo"

type="XML"/>

</semantic:headerContent> <semantic:sendEmailAction> <semantic:SendEmailAction id="shareEmail" press="onShareEmailPress"/> </semantic:sendEmailAction> </semantic:SemanticPage> </mvc:View>

==============

But I am getting the following error:

SyntaxError:elementParseError: attribute equal must after attrName




How to resolve this

Dear Team,

How to resolve this

Regards,

Raghuram

Accepted Solutions (0)

Answers (0)