日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

Fiori 动态磁贴示例

發布時間:2023/12/16 编程问答 32 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Fiori 动态磁贴示例 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

1. 動態磁貼配置頁面

2. 服務URL

2.1 服務URL示例(ODATA GetEntity (Read)方法)

?/sap/opu/odata/sap/ZODATA/GetEntity(par='XXX') /sap/opu/odata/sap/YTEST_ODATA_SRV/DynamictileSet(type='1')

2.2 服務URL接口參數參考

{“d”: { “icon”: “sap-icon://travel-expense”, “info”: “Quarter Ends!”, “infoState”: “Critical”, “number”: 43.333, “numberDigits”: 1“numberFactor”: “k”, “numberState”: “Positive”, “numberUnit”: “EUR”, “stateArrow”: “Up”, “subtitle”: “Quarterly overview”, “title”: “Travel Expenses”,} }

Parameter

Description

icon

Enter an sap-icon:// URL, for example sap-icon://cart.

You can look up the names of the available icons in tile configuration.

For more information, see?Static App Launcher Tiles.

info

Text to be displayed at the bottom of the tile.

infoState

The color of the tile is adapted according to the value of this property. The precise color depends on the theme that you have selected in UI theme designer.

Allowed values: Negative, Neutral, Positive, Critical

number

Number to be displayed in the top right corner of the tile.

numberDigits

Number of digits to be displayed following the decimal separator (decimal point or decimal comma, depending on the language settings).

numberFactor

A factor for scaling numbers, for example, for displaying large numbers like 1.000.000 (-> number = 1 and numberFactor=”M”) or for percentages (number = 22.2 and numberFactor = “%”). The scaling is not done by the front end but has to be provided by the app developer.

numberState

The color of the number is adapted according to the value of this property. The precise color depends on the theme that you have selected in UI theme designer.

Allowed values: Negative, Neutral, Positive, Critical

numberUnit

Unit to be displayed below the number, for example, USD.

stateArrow

Displays an arrow indicating a trend.

Allowed values: None, Up, Down

subtitle

Subtitle to be displayed below the tile title.

targetParams

List of key-value-pairs separated by ampersands.

When the application is lauched (by clicking on it), these parameters are passed to the application as business parameters (if semantic object-based navigation is used) or as URL parameters (if URL-based navigation is used).

If any parameters have been entered in the Parametersfield in the tile configuration, the parameters passed by the OData service are appended to the list of parameters to be passed to the application.

title

Title to be displayed in the tile.

type 1 Edm.String icon 0 Edm.String info 0 Edm.String infoState 0 Edm.String number 0 Edm.String numberDigits 0 Edm.String numberFactor 0 Edm.String numberState 0 Edm.String numberUnit 0 Edm.String stateArrow 0 Edm.String subtitle 0 Edm.String targetParams 0 Edm.String title 0 Edm.String

2.3 服務URL接口代碼示例

METHOD xxx_get_entity.DATA: ls_entity_data TYPE xxxxxxodata_mpc=>ts_xxxxxx.DATA: ls_key TYPE /iwbep/s_mgw_name_value_pair.TRY.ls_entity_data-icon = 'sap-icon://Fiori2/F0003'.ls_entity_data-info = 'Demo Info'.ls_entity_data-infostate = 'Positive'."Negative, Neutral, Positive, Criticalls_entity_data-number = 200.ls_entity_data-numberdigits = 0.ls_entity_data-numberfactor = ''.ls_entity_data-numberstate = ''.ls_entity_data-numberunit = 'USD'.ls_entity_data-statearrow = 'Up'."None, Up, Downls_entity_data-subtitle = 'Sub title'.ls_entity_data-targetparams = ''.ls_entity_data-title = 'Title'.CATCH /iwbep/cx_mgw_busi_exception .CATCH /iwbep/cx_mgw_tech_exception .ENDTRY.er_entity = ls_entity_data.ENDMETHOD.

3. 效果

總結

以上是生活随笔為你收集整理的Fiori 动态磁贴示例的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。