Open Closed

User setting change does not affect filter value #6695


User avatar
0
peter.arrivex created
  • ABP Framework version: v7.4.2
  • UI Type: Angular
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes/no

I have written the Global Query Filter for filtering the entities by the WorkingYear saved in the userSettings. It is working fine at first place but when I update the WorkingYear from UserSettings then this filter is not updating accordingly. It still filter the record by earlier value of WorkingYear. Please help me out to update the Global Query Filter. Thanks.


1 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    int season = Convert.ToInt32(_settingProvider GetOrNullAsync("ATS.WorkingYear").Result);

    Please make season like a IsWorkingYearFilterEnabled variable instead of a local variable.

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.2.0-preview. Updated on March 13, 2025, 04:08