Skip to Content
0
May 10, 2022 at 02:03 PM

Fiori Elements ValueList ComboBox

636 Views Last edit May 11, 2022 at 12:05 PM 7 rev

Dear Community,

In our projects we use OData V4 and a Fiori Elements List Report.

So far we implemented a ValueList/DropDown with a Filter Restriction: multiValue. This works in the selection Fields within the List Report. There you can select multiple Values for filtering. Inside the Object Page within the ValueList/DropDown it is always just possible to select only one value from the list. The requirement would be to also here be able to select multiple ones from the valuelist. Same as in the SAP UI5 control sap.m.MuliComboBox How is it possible to select multiple ones inside the object page?

the approach to implement this is also described in the link below but does not work for us:

Using the Multi-Input Field on the Object Page - Documentation - Demo Kit - SAPUI5 SDK (ondemand.com)

entity TEST: managed {
    key ID      : UUID;
    NAME        : String @mandatory default null;
    DESCRIPTION : String @mandatory default null;
    CONNECTED_ENTITY_CODE : String @mandatory;

    CONNECTED_ENTITY : Association to CONNECTED_ENTITY 
                          on CONNECTED_ENTITY = CONNECTED_ENTITY_CODE
}
annotate service.TEST with {

CONNECTED_ENTITY_CODE   @(Common : {
        Label                    : 'Connected Entity',
        Text                     : CONNECTED_ENTITY.NAME,
        TextArrangement          : #TextOnly,
        ValueListWithFixedValues,

        ValueList                : {
            CollectionPath : 'CONNECTED_ENTITY',
            Parameters     : [
                {
                    $Type             : 'Common.ValueListParameterInOut',
                    LocalDataProperty : CONNECTED_ENTITY_CODE,
                    ValueListProperty : 'ID'
                },

                {
                    $Type             : 'Common.ValueListParameterDisplayOnly',
                    ValueListProperty : 'NAME'
                },
            ]
        }
    });

}
annotate service.TEST with
@Capabilities : {FilterRestrictions : {FilterExpressionRestrictions : [
   
    {
        Property           : 'CONNECTED_ENTITY_CODE',
        AllowedExpressions : 'MultiValue'
    },
  


], }};

Best Regards