- This topic is empty.
10/11/2010 at 10:12 am #5132
Filtering for the current month is tricky, but it may possible 3 different ways:
1) Add the date field to the "Searched FIeldss" using ezEdit which lets the user filter fields between the start of the current month and end for the current month.
2) Filter based on a calculated field that you create for your list which indicates if the date is in the current month as described her:
3) Using a CAML filter to do this is a little more tricky as there is an undocumented CAML function (DateRangesOverlap), that can return the current month, but the CAML filter may have a glitch. As described here:
Using ezEdit, paste the CAML filter below into the CAML text box on the first configuration page of the qChartView CAML text section (be sure to change the date field in the CAML to the name of the date field you want to filter on). Note: Quest Web Parts can use any valid CAML statements even if the CAML is not created by the Quest Web Part CAML Editor.
<FieldRef Name='Date' />
<FieldRef Name='Date' /><Value Type='DateTime'><Month /></Value>
Please respond, if any of these 3 approaches work for you.
PM, Quest Web Parts for SharePoint
10/18/2010 at 8:01 am #7205
I started with method 2 to add fields for Start Week, End Week, Start Month, End Month within the SharePoint List. Now how do I tell Qwest WebParts to filter by these? Method 3 then?
10/18/2010 at 8:16 am #3869
Was wondering if someone could help me here. I’m trying to build a QChart to display just items within the current month. How do you setup this logic is Quest WebParts? ]
Any help is greatily appreciated
10/18/2010 at 8:16 am #7207
<FieldRef Name="Week_x0020_Start" />
<FieldRef Name="Week_x0020_End" />
You must be logged in to reply to this topic.