Page Is Blank Without Throwing Any Errors

后端 未结 2 566

I am trying to display few tiles in a tile container which fetches data from a dummy JSON file. I have coded exactly shown in this sample. But my page appears empty. Also it

2条回答
  •  悲&欢浪女
    2020-12-20 06:20

    Causes for Empty Page Related to TileContainer

    Unexpected Child Control

    Besides the missing root control, the currently contains a list of HBoxes in your view.

    
      
         
      
    
    

    The default aggregation of TileContainer is, however, a control that is derived from sap.m.Tile.

    Hence, you should be getting the following error message in the browser console:

    Uncaught Error: "Element sap.m.HBox#__hbox1" is not valid for aggregation "tiles" of Element sap.m.TileContainer#__xmlview1--container

    Please, remove the from the ListBinding template:

    
      
    
    

    TileContainer Contains only one Tile

    There was a bug in the framework which didn't let the TileContainer to display anything if it contained only a single Tile. The fix should be available as of UI5 version 1.48.

提交回复
热议问题