Skip to Content
avatar image
Former Member

Issue with SAP UI5 passing fragments to View

Dear Team,

please help me to fix the issue.

====

SupplierInfo.fragment.xml::***

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

<Panel id="__panel0" headerText="Supplier Details" class="sapUiTinyMargin" 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" class="sapUiResponsiveMargin sapUiHideOnPhone">

<Image

src="{ parts: [ 'ToSupplier/Address/Street', 'ToSupplier/Address/PostalCode', 'ToSupplier/Address/City', 'ToSupplier/Address/Country' ], formatter: '.formatter.formatMapUrl' }"/>

</Panel>

</core:FragmentDefination>

Object.view.xml

<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" class="sapUiLargeMargin" 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>error1.pngDear Friends,

I am having issue with fragments.

I am getting error while passing fragment file path in the view.

I am attaching the error file here

error1.png (67.2 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Nov 16, 2017 at 07:43 AM

    Hello Raghuram!!

    Good day!

    Has the issue been fixed...

    Add comment
    10|10000 characters needed characters exceeded