Description
There are 2 problems:
FlatViewProblem.mp4
1. Problem with column formatting (setValue)
Description
I use folders within a SharePoint list to organize list items. Additionally, I apply column formatting to update values in a column via button click using customRowAction (setValue). So far, so good…
However, when I switch to a flat view (view without folders), this functionality no longer works, and error messages appear.
Steps to Reproduce
- Create a SharePoint list with folders.
- Apply column formatting that includes a button with customRowAction: setValue.
- Switch to a flat view (view that does not display folders).
- Click on any button that triggers the setValue action.
- Observe that the action does not work, and an error message appears.
Expected Behavior
• The setValue action should function the same way in flat views as it does in non-flat views.
Observed Behavior
• The functionality fails in flat views, and error messages appear.
• This issue only affects items stored within folders.
2nd Issue: Quick Edit Date Localization
Description
There is another issue when using Quick Edit in a flat view:
• If I set a date field for an item inside a folder, the localization is incorrect.
• Example: Selecting April 1st results in January 4th (German localization).
• This issue only occurs in flat views and only for items inside folders.
Expected Behavior
• The selected date should be saved correctly regardless of whether the item is inside a folder or not.
Observed Behavior
• The date is incorrectly interpreted due to localization issues.
• Items outside of folders or in a non-flat view do not experience this issue.
Additional Info: Adding the ID column does not change anything. The error message is misleading.
Environment
• SharePoint Online
• List with folders
• Flat View (View without folders)
Impact
• Prevents correct use of setValue in flat views.
• Causes incorrect date localization when using Quick Edit in flat views.
I already had a Microsoft support ticket open, but unfortunately, I was informed that Microsoft Support cannot help me. However, this is definitely a SharePoint issue and not something caused by custom development or similar. Only built-in features were used.
I also opened a discussion on the techcommunity page https://techcommunity.microsoft.com/discussions/sharepointdev/issue-with-flat-views-in-sharepoint-online/4397498
Would appreciate any insights or fixes on this! Thanks! 🚀