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

How to make an infinity scrolling in macros table?

linlin1
Associate
Associate
0 Likes
594

I want to make a dialog that can scrolling for load content for the table. I using sap.fe.macros.Table to make a table content in a dialog and try to put it in a ScrollContainer like the code below:

  <Dialog title="Product" id="idDialog">
    <VBox class="sapUiSmallMargin">
      <macros:FilterBar
        metaPath="@com.sap.vocabularies.UI.v1.SelectionFields"
        id="idFilterBar"
        liveMode="true"
      />
      <ScrollContainer
        height="100%"
        width="100%"
        vertical="true"
        focusable="true">
      <macros:Table
        id="idTable"
        metaPath="products/@UI.PresentationVariant#Dialog"
        readOnly="true"
        isSearchable="true"
        enableExport="true"
        disableCopyToClipboard="true"
        enableAutoColumnWidth="true"
        headerVisible="false"
        filterBar="ActivityLogsFilterBar"
      >
      </macros:Table>
     </ScrollContainer>
    </VBox>
  </Dialog>

the output look like this:

Screenshot 2025-02-22 at 11.53.32.png

It have the scroll bar but still have more button and only load data when click more button, I want it will load data when I scroll and not show the more button like that.

Can anyone help!

Accepted Solutions (0)

Answers (1)

Answers (1)

axel_brke3
Participant
0 Likes

Hi, endless scrolling is the default behavior for the macro table. Just checked this in our system (1.108) Does this only happen when including it in the dialog? What version are you on?

linlin1
Associate
Associate
0 Likes
We also use macros table for the list page which we put the macros table in <f:content> tag of <f:DynamicPage> and it can scrolling to load (I also try to put my dialog table in <f:DynamicPage> like that but still not have the endless scrolling). I using UI5 v1.126.2