30 pts.
 Need help with Views
Very new to dominio designer I am creating a view for ‘Open’ documents that is based on a ‘Target Date’ field I got the "<30 days" view working and the ">90 day" view working , cant figure out the "30- 90 days" My formula for <30 day view is: SELECT Form = "Form Name" & ProjectStatus = "Open" & @IF (targetdate) <= @Adjust(@Today;0;0;90;0;0;0) Any help is really appreciated

Software/Hardware used:
ASKED: April 17, 2008  5:50 PM
UPDATED: April 18, 2008  10:01 PM

Answer Wiki:
Despite the possibility of doing this, the recommendation absolutely has to be to never do this. Never use any reference to the current date in a view selection formula. If you have more than a few hundred documents in this database, it can kill the performance of the server. Instead, use the suggestion of using a status field. Another good addition is to categorize by the year and month so that users can drill down to a specific month. Another flourish to this idea is to wrap it in a form using a single-category embedded view. <HR> dt1:=@Adjust(@Today;0;0;29;0;0;0); dt2:=@Adjust(@Today;0;0;91;0;0;0) ; SELECT Form = "Form Name" & @uppercase(ProjectStatus) = "OPEN" & targetdate> dt1 & targetdate< dt2 NOTE: I'd try an actual hardcoded date first The compare @NOW or @Today to the hardcoded date Hardcode a date like this [04/17/2008] being today you might need @date(targetdate) Also, you may want to use a single view that includes all open items instead of having a view for each category. For instance, the selection criteria would be SELECT Form = "Form Name" & @uppercase(ProjectStatus) = "OPEN" Then add a category with this code: dt1:=@Adjust(@Today;0;0;29;0;0;0); dt2:=@Adjust(@Today;0;0;91;0;0;0) ; @if( targetdate< dt1; "1. Less Than 30 days"; targetdate> dt1 & targetdate < dt2; "2. 30 - 90 days"; targetdate > dt2; "3. Greater Than 90 days"; "Not Categorized") Thank you both for helping me, I ended up doing the single view using the categories. I do reallly appreciate the time you took out of your busy schedules to help me. thanks again Matjo
Last Wiki Answer Submitted:  April 18, 2008  10:01 pm  by  Matjo   30 pts.
All Answer Wiki Contributors:  Matjo   30 pts. , Brooklynegg   3,845 pts. , Jellybean   405 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

Thank you both for helping me, I ended up doing the single view using the categories. I do reallly appreciate the time you took out of your busy schedules to help me.

thanks again

Matjo

 30 pts.