2017-10-09 3 views
0

アプリケーションが正しく動作していました。今度はSAPUI5ライブラリをCDNバージョン1.48.9に変更しました。TileContainer定義されていないSAPUI5のプロパティ 'className'を設定できません。バージョン1.48

私は次のエラーを取得する:ここで

Uncaught TypeError: Cannot set property 'className' of undefined in TileContainer-dbg.js:1207.

は私のコードです:

<core:View xmlns:core="sap.ui.core" 
     xmlns:mvc="sap.ui.core.mvc" 
     xmlns="sap.m" 
     controllerName="sbmobiledashboard.overview" 
     xmlns:html="http://www.w3.org/1999/xhtml"> 

<Page id="overview.page" title="{i18n>pageEventsOverview}" navButtonPress="handleNavButtonPress" enableScrolling="false"> 
    <content> 
     <TileContainer id="container" tileDelete="handleTileDelete" 
      tiles="{modelTiles>/tiles}"> 
      <StandardTile 
        icon="{modelTiles>icon}" 
        type="{modelTiles>type}" 
        number="{modelTiles>number}" 
        numberUnit="{modelTiles>numberUnit}" 
        title="{modelTiles>title}" 
        info="{modelTiles>info}" 
        infoState="{modelTiles>infoState}" 
        press="handleTilePress" /> 
     </TileContainer> 
    </content> 
</Page> 

私の結果セットは次のようになります。

{ 
d: { 
results: [ 

{ 

__metadata: { 

id: "http://<host>:8003/sap/opu/odata/<namespace>/<service> 
/homeTilesSet(guid'000C29CE-10EA-1ED7-ABA0-EB1B4D8838E0')", 

uri: "http://<host>:8003/sap/opu/odata/<namespace>/<service> 
/homeTilesSet(guid'000C29CE-10EA-1ED7-ABA0-EB1B4D8838E0')", 

type: "/<namespace>/<service>.homeTiles" 

}, 

guid: "000C29CE-10EA-1ED7-ABA0-EB1B4D8838E0", 

title: "Critical Events (24h)", 

icon: "sap-icon://alert", 

number: "66 ", 

numberUnit: "Events", 

info: "Severity critical", 

infoState: "Error", 

type: "Create" 

}, 

{ 

__metadata: { 

id: "http://<host>:8003/sap/opu/odata/<namespace>/<service> 
/homeTilesSet(guid'000C29CE-10EA-1ED7-ABA0-EB1B4D8858E0')", 

uri: "http://<host>:8003/sap/opu/odata/<namespace>/<service> 
/homeTilesSet(guid'000C29CE-10EA-1ED7-ABA0-EB1B4D8858E0')", 

type: "/<namespace>/<service>.homeTiles" 

}, 

guid: "000C29CE-10EA-1ED7-ABA0-EB1B4D8858E0", 

title: "Event collection (24h)", 

icon: "sap-icon://share-2", 

number: "123 ", 

numberUnit: "Events", 

info: "", 

infoState: "None", 

type: "None" 

},... 

デバッガが私に語りました問題が発生したSAPUI5ライブラリ関数の上にあります。結果セットを操作して最初のタイルのみを含む場合、アプリケーションは機能します。 以前のバージョン1.30.10では、コードと同じ結果セットが正常に動作します。最新のライブラリに何が間違っているのだろうと思っています。

+0

問題はChromeに限られているようです。 Firefoxでは、それは私のために働く。多分標準的なバグ(?) –

答えて

0

私はまた、1.48.9バージョンでいくつかの問題に直面しています。異なるバージョンのコードが正常に動作する場合は、SAPUI5ライブラリのバージョンを1.48.10に変更してください。ブートストラップセクションでindex.htmlで変更することができます。これで問題が解決しない場合は、完全なエラーログを投稿してください。

<script id="sap-ui-bootstrap" 
      src="https://sapui5.hana.ondemand.com/1.48.10/resources/sap-ui-core.js" 
      data-sap-ui-libs="sap.m" 
      data-sap-ui-theme="sap_bluecrystal" 
      data-sap-ui-compatVersion="edge" 
      data-sap-ui-resourceroots='{"com.xyz": ""}'> 
     </script> 
+0

私はそれが以前のバージョンで異なっていることを確認することができます。エラーをスローするコーディングを見ると、何も変わっていません。 –

関連する問題