cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Fiori elements dropdown is listing only 10 records

Jagadish-M
Associate
Associate
0 Kudos
242

Hi All,
We are working on CAP Node JS based application with Fiori Elements for UI.
For UI dropdown, we are referring a table for Values. The values fetched from table is always 10 (rows) even there are more than 10 rows present in the table.
I see in the log that $batch call has $top value as '10'. So its fetching only the 10 records form table. 
Logs:

 

{"level":"INFO ","id":"5081442f-4cd3-44d0-bdc3-80180c61bb8a","message":["POST","/api/data/$batch",""]}
{"level":"INFO ","id":"5081442f-4cd3-44d0-bdc3-80180c61bb8a","message":[">","READ","DropdownConditionName",{"$select":"dropdownID,name","$skip":"0","$top":"10"}]}

 



Dropdown entity:

 

entity DropdownConditionName {
  key dropdownID : UUID;
      name : String;
}

 

 

I tried following methods. But, it didn't help

1.

 

srv.before('READ','DropdownConditionName',async(req)=>{
req._queryOptions.$top = "200";  // req._query.$top = "200";
})

 

2. 

 

annotate service.DropdownConditionName with @(
   UI.PresentationVariant:{
     MaxItems:200
     }
);

 


Please let me know is there any way we can increase the $top value to 200 so that I can have all the values in dropdown?
@gregorw could you please help here?

Thanks in advance,
Jagadish

 

View Entire Topic
T1mey
Participant
0 Kudos

We're experiencing the same behavior.

We have no solution yet.

Found an annotation 

@Common.ValueListWithFixedValues.@Common.ValueListShowValuesImmediately: true
 
But this leads to a RadioButton Group ?!
T1mey_1-1718803933406.png

 

We want to have a dropdown selection 😉

 

 

 

 

 

T1mey
Participant
0 Kudos

It seems to be a problem with Fiori Elements / SAPUI5 in version 1.124.x.

With 1.123.x and 1.125.x it's working ...