Quantcast
Channel: SCN : All Content - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 6178

Table/List on detail.view not bound when SAPUI5 App is launched as SAP Fiori Component

$
0
0

Hi, I am using SAPwebIDE, and have already developed SAPUI5 App using MD/MMD Template (as described here: SAPwebIDE MD/MMD templates unpleasant differences (bound List/Table doesn't work properly in MMD Detail view, but works OK in MD Detail view))

 

But, the problem is: when I install this app as SAP Fiori Component into our ABAP AS, or just launch this App as SAP Fiori Component from SAPwebIDE i'm getting no bindings to the Table/List placed in Detail.view:

 

as component.png

 

At the same time, when I launch this App as index.html, I get my table/list full of excellent and fresh data:

 

as index-html.png

The question is: What should i fix in Component.JS to get my bindings the same way as in index.html-way?

 

P.S. How to re-create this sample App from scratch in SAPwebIDE:

 

  • File/New/Project From Templates
  • Master/Detail template, NorthWind as Odata service, "/V3/Northwind/Northwind.svc"

re-create.png

Set MasterSection/Odata Collection: Products.


Then add this xml-code of Bound List into the Detail.view.xml under thePage/content/IconTabBar/items/IconTabFilter/content

Items' path: Order_Details:


<List xmlns="sap.m" id="idList" inset="false" visible="true" headerText="" headerDesign="Standard" footerText="" mode="None" width="100%" includeItemInSelection="false" showUnread="false" noDataText="" showNoData="true" enableBusyIndicator="true" modeAnimationOn="true" showSeparators="All" swipeDirection="Both" growing="false" growingThreshold="20" growingTriggerText="" growingScrollToLoad="false" rememberSelections="true" backgroundDesign="Solid" itemPress=""
items="{path:'Order_Details'}" >    <items>        <ColumnListItem type="Navigation" counter="0">            <cells>                <Text text="{OrderID}"/>                <ObjectIdentifier title="{ProductID}" text="{UnitPrice}">                </ObjectIdentifier>            </cells>        </ColumnListItem>    </items>    <columns>        <Column minScreenWidth="tablet">            <header>                <Text text="OrderID" maxLines="0"/>            </header>        </Column>        <Column minScreenWidth="tablet">            <header>                <Text text="ProductID / UnitPrice" maxLines="0"/>            </header>        </Column>    </columns></List>

P.P.S. I've already tried this Data binding not working for Component based SAPUI5 app  solution, but I am not sure if I get it right, it does not work for me/my app.


Best Regards, Ilia.


Viewing all articles
Browse latest Browse all 6178

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>