I am developing an internal application for my client using the latest Modern table control. I have encountered a strange issue where the Modern table control displays incorrectly after the data is filtered. It seems that it is not being refreshed correctly, but the row numbers below are displaying correctly. Please see the screenshot below.
The Modern table control is set to a flexible height. And I did some invetigation and found that as long as I set a fixed height for the Modern table control, this problem will not exist. Therefore, I guess this might be a bug. Anyone has any workaround to help me solve this problem, I would be very grateful.
Sort(
Filter(
'Event Budget Requests',
And(
Or(
IsBlank(Txt_EventName.Value),
StartsWith(
'Event Name',
Txt_EventName.Value
)
),
Or(
DD_RequestStatus.Selected.Value = Blank(),
'Request Status'.Value = DD_RequestStatus.Selected.Value
),
Or(
DD_StartDate.Selected.Value = Blank(),
Year = DD_StartDate.Selected.Value
)
)
),
Modified,
SortOrder.Descending
)
This was working well with my filter controls. It was when I added the Tab list control and the Switch statement when things stopped working correctly. I tried it as an If statement and had the same bugs as Switch statement. I think my code is good but this new table control is buggy as heck.
I tried adding the "Navigate(to another screen)" to the OnChange property of all the controls and it seemed to help in Preview but when I published the app, it did not help at all.
I found the same bug with Modern Table and SQL Server as Datasource.
The only workaround I found is create a button to refresh the datasource and use boolean variable to filter the table.
The user have to press this buttom x2 to view the data properly.
Hello everyone,
the workaround doesn't work for me. I've tried it with TabList, DropDown and ComboBox. The Sharepoint list only has 46 entries. If I filter the first part and then scroll in the table, the table is not updated when the filter is changed, the old records remain visible. Only the counter is updated.
TabList/ComboBox/DropDown - OnChange:
I faced same issue filtering on modern table control which has sharepoint datasource , row count show some value and table show all list items,
Workaround I had and it works perfectly.
Workaround :
In filter function if you're using dropdown or combo box , OnChange property : Refresh(SharepointDataSource).
Still there will be issue with inputtext filter : Again change that inputtext to combobox
WarrenBelz
146,769
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
66,091
Most Valuable Professional