Value Help 相關(guān)annotation

相關(guān)wiki:https://help.sap.com/docs/BTP/923180ddb98240829d935862025004d6/0addf879b42e4aa2824f630803ccbdfa.html

1. Value help 默認(rèn)加載行為

(1). CDS annotation

@Consumption.valueHelpDefault.fetchValues

Possible Values:
#AUTOMATICALLY_WHEN_DISPLAYED (default in OData V4),自動(dòng)加載,當(dāng)你打開value help dialog時(shí),請(qǐng)求已經(jīng)觸發(fā)。
#ON_EXPLICIT_REQUEST (default in OData V2),手動(dòng)加載,需要在value help dialog上點(diǎn)擊GO button觸發(fā)請(qǐng)求。

(2). XML annotation

XML annotation for loading behavior of Value Helps

FetchValues = 1: Show values in the result table of the Value Help Dialog immediatelly when opening the dialog.
FetchValues = 2: Show values in the result table of the Value Help Dialog only on request, i.e. only after pressing Go in the Value Help Dialog.
If the property is not provided then the default applies as defined by UX (data are loaded immediately).

2. Definition of context dependent Value Helps

It is possible to offer for a field different value helps: the value helps which are shown depend on the context of other fields.

Example: A sales order has different type of partners which can be assigned to it. Depending on the partner function different details have to be offered in the value help in which the partner can be added.

For a customer a customer specific value help is needed
For a personnel a person specific value help is needed
The context dependent value helps can be achieved by providing the annotation Common.ValueListRelevantQualifiers.
Technical example:

(1). XML annotation

XML annotation for context dependent Value Helps

3. Definition of a smaller number of fields for Type Ahead

設(shè)置type ahead list中顯示的字段

(1). CDS annotation

@UI.lineItem.importance: #HIGH

(2). XML annotation

XML annotation for field importance

Columns which are not annotated with the UI.Importance High will not be shown in the Type Ahead window.

Please note: all search enabled fields of a value help have to be shown as columns in type ahead result list, i.e. searchable fields must never be hidden for the type ahead suggestion list.

4. Hidden Fields in the Filter Area

Filter area 是value help dialog上顯示filter的區(qū)域

The value help dialog displays various filter fields. Usually the filter fields are identical with the columns of the result table. It is, however, possible to reduce the number of filter fields without removing the corresponsing columns from the result table: this can be achieved by the annotation UI.HiddenFilter. If fields shall be completely removed as filters fields and as columns in the result list then one can achieve this either by removing them from the parameters collection of the ValueHelp annotation or by annotating them with UI.Hidden.

(1). XML annotation

XML annotation for Hidden Fields in the Filter Area
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容