cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Set column width in CAP value help popup

timbnz59
Explorer
485

I have a field in a CAP application which has a value help popup. I'm able to change certain things which appear in the value help popup using annotations, such as which fields are displayed, like this:

annotate service.CurrencyConversion with {
    fromCurrency
    @Common.ValueList: {
        Label : 'From Currency',
        CollectionPath : 'Currencies',
        Parameters : [
            {
                $Type : 'Common.ValueListParameterInOut',
                LocalDataProperty : 'fromCurrency_code',
                ValueListProperty : 'code',
            },
            {
                $Type : 'Common.ValueListParameterDisplayOnly',
                ValueListProperty : 'descr'
            }
        ],
    }
};

However, I have not been able to change the widths of the displayed columns. I would like to make them wider so that the column labels can be seen. 

A similar example can be seen in this learning Journey (Enriching Value Help with Dependent Filtering). My own example is similar to the screenshot below, where the first column is too narrow to see the entire column label. However, I have not found a way to increase the width of the column. Is anyone familiar with how to do this?

timbnz_0-1737422635745.png

Through some searching I have found potential options, like using the annotation ![@HTML5.CssDefaults] : {width : '10rem'} (Setting the Default Column Width | SAP Help Portal), however this does not appear to work with value help tables. I also looked into setting the width in the manifest (Setting the Default Column Width - Documentation - Demo Kit - SAPUI5 SDK), however this also does not appear to be relevant for value help popup tables. Any help would be appreciated.

 

 



Accepted Solutions (0)

Answers (0)