Power Apps - Canvas App Gallery Pagination

Описание к видео Power Apps - Canvas App Gallery Pagination

This video explains how to implement pagination for the Power Apps Gallery.


Formula used: ( Replace string greaterthan with greater than symbol)

Gallery
Property - Items
Value -

If(
Icon1.DisplayMode = DisplayMode.Disabled,
LastN(
FirstN(
Fruit,
varPageNo * Dropdown1.Selected.Value
),
CountRows(Fruit) - (Dropdown1.Selected.Value * (varPageNo - 1))
),
LastN(
FirstN(
Fruit,
varPageNo * Dropdown1.Selected.Value
),
Dropdown1.Selected.Value
)
)

Screen

Property - Onvisible
Value -
Set(
varPageNo,
1
);
If(
Round(
CountRows(Fruit) / Dropdown1.Selected.Value,
2
) greaterthan Round(
CountRows(Fruit) / Dropdown1.Selected.Value,
0
),
Set(
varTotalPagNos,
Round(
CountRows(Fruit) / Dropdown1.Selected.Value,
0
) + 1
),
Set(
varTotalPagNos,
Round(
CountRows(Fruit) / Dropdown1.Selected.Value,
0
)
)
)

Комментарии

Информация по комментариям в разработке