Manish Sir There is a Bug in the Above Code, It Does NOT Change The Value After Saturday to Zero But Instead Changes ON SATURDAY Itself
The Purpose of the Code is that in my App I have to Show the Data in Weekly Format Showing Activity of Each Day in Week.
What Happens Above is Data of 6 Days [Sun to Friday (1 to 6 Weekdays)] Value is Shown without any issue.
But As Saturday Comes, As per your Code, The Values are Reset to 0 including the Value of Previous 6 Days.
Somewhat Can We Do?: When Sunday (i.e Weekday 1) arrives we should Check Past Weeks Data and Clear it to ensure Storage of New Data.
Sir if you and Kodular Experts can Find Solution to Above Situations it won’t be Just Helpful to me but Also Other Koders Who can Try Applying Weekly Data Feature to Thier App.
Actually Sir when VALUE changes from 7 to 1 I get the new week starts and the VALUE of new week starts to be stored and So again next week and again n again