cancel
Showing results for 
Search instead for 
Did you mean: 

sap.m.GenericTile aggregation binding v1.50+

joshzavala
Explorer
0 Kudos

I am trying to figure out how to correctly reference the GenericTile aggregation binding in xml. In SAPUI5 v1.50, SAP deprecated many of the older tile controls in favor of the newer GenericTile.

GenericTile is supposed to use TileContent as it's 0..n.

TileConent has 'content' aggregation 0..1 of any sap.ui.core.Control. I would have thought the aggregation of the GenericTile works similarly to the old TileContainer, but it does not. I've put them both here for comparision. The aggregation binding on them should create 10 tiles. The TileContainer with StandardTile works as expected, but the GenericTile only creates 1 tile (the first one in the data array). Any suggestions of what is wrong here?

<mvc:View xmlns:html="http://www.w3.org/1999/xhtml" xmlns:mvc=
  "sap.ui.core.m  vc" xmlns="sap.m" controllerName=
  "com.zavala.test.APIHubTutorial.controlle  r.Main" displayBlock="true">
  <App id="idAppControl">
    <pages>
      <Page title="{i18n>title}">
        <content>
	  <GenericTile id="userTiles2" tileContent="{results>/d/results}" 
            frameType="Auto">
	    <tileContent>
	      <TileContent footer="{results>userId}">
	        <FeedContent contentText="{results>firstName} 
                  {results>lastName}" subheader="User Id:{results>userId}"/>
	      </TileContent>
	    </tileContent>
	  </GenericTile>
	  <TileContainer id="userTiles" tiles="{results>/d/results}">
	    <StandardTile title="{results>firstName} {results>lastName} 
              {results>userId}" info="{results>jobTitle}" 
              icon="sap-icon://person-placeholder"/>
	</TileContainer>
      </content>
    </Page>
  </pages>
 </App>
</mvc:View>

Accepted Solutions (0)

Answers (0)