Isaac
asked on
SharePoint - Outstanding days
Hello all,
I'm having a problem with my code. it works for the first day but the next day it doesn't change at all. This is to show the days outstanding. If the Post date is greater than today then it will show the days outstanding. Below worked but then the next day the value stayed the same. Any help will be appreciated. Thanks
=IF(OR(ISBLANK([Post Date]),[Post Date]>Today),0,DATEDIF([Po st Date],Today,"d"))
I'm having a problem with my code. it works for the first day but the next day it doesn't change at all. This is to show the days outstanding. If the Post date is greater than today then it will show the days outstanding. Below worked but then the next day the value stayed the same. Any help will be appreciated. Thanks
=IF(OR(ISBLANK([Post Date]),[Post Date]>Today),0,DATEDIF([Po
ASKER
Thanks. It seems the code is not the problem. I just realized that it is not refreshing to show the
current day outstanding. Do you know why this may occur?
current day outstanding. Do you know why this may occur?
Can you create a new view to see if that helps?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
zephyr_hex refers to a great point. Did you start by creating a column called today and then deleted it or you created a column with the default value as today? my response is assuming that you have created a new column called today and then used it in your calc column. If not, try doing that.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Something you might want to try is to create two small workflows in SharePoint Designer, that basically do the following for every item:
1st Workflow (Run on new and modiefied items)
* Sleep for 24 hours
* If the item status is not "complete", then update a dummy field in the item called something like "Start 2nd Workflow" so it contains a "Yes"
2nd Workflow (Run on modified items)
* If the field "Start 2nd Workflow" is "Yes" then change it to "No".
The reason you need to workflows for this is that a workflow cannot start itself. Remember to create the "Start 2nd Workflow" field, with a default value of "No"
1st Workflow (Run on new and modiefied items)
* Sleep for 24 hours
* If the item status is not "complete", then update a dummy field in the item called something like "Start 2nd Workflow" so it contains a "Yes"
2nd Workflow (Run on modified items)
* If the field "Start 2nd Workflow" is "Yes" then change it to "No".
The reason you need to workflows for this is that a workflow cannot start itself. Remember to create the "Start 2nd Workflow" field, with a default value of "No"
ASKER
@zephyr_hex
You are definitely right. This is what is happening with me. Workarounds are great and the countdown is what I need but I'm not allowed to use SPD on client site. Do you know a way that I can show a countdown but for days passed? Probably using jquery?
You are definitely right. This is what is happening with me. Workarounds are great and the countdown is what I need but I'm not allowed to use SPD on client site. Do you know a way that I can show a countdown but for days passed? Probably using jquery?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I needed to show the number for days outstanding and the solution I found assisted in displaying a number. I gave partial credit to @zephyr_hex because it was a solution only if you can use SPD but to fit my needs the solution I found was what I needed.
=IF(OR(ISBLANK([Post Date]),([Post Date]>Today)),0,[Post Date]-Today)