on 09-19-2017 6:59 AM
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
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.