2017-07-11 52 views
0

我在使用SAP UI5時遇到問題。我正在使用NumericContent平鋪。在這裏,我想將「km/h」設置爲一個比例尺,但它總是被限制爲「km /」。SAP UI5:數字內容:縮小比例

我該如何預防?

enter image description here

<TileContent footer="{i18nExtended>SpeedTripMax}" class="sapUiSmallMargin"> 
      <content> 
        <NumericContent value="{mymodel>/SpeedTripMax}" 
        truncateValueTo="6" scale="km/h"/> 
      </content> 
     </TileContent> 

回答

1

我不知道爲什麼它正在發生,但根據api應該使用,而不是sap.suite.ui.commons.NumericTile sap.suite.ui.commons.GenericTile因爲它從版本1.25開始已被棄用。

嘗試GenericTile的方法。

EDITED 10:42 120717:

我測試了我的系統上,這是錯誤的,因爲30K/H正常工作:

enter image description here

enter image description here

最大字符串長度只是3個標誌:

enter image description here

我在GenericTile中測試它。