A form is populated from a list and I need it filtered. I have a table with a date column and would like to display only the rows of the required month. For this I have used XPath filtering:
[((ddwrt:FormatDateTime(string(@MyDateColumn) ,1061 ,'MM'))=02)]
This gives me the results for February, all ok. Now what I am trying to achieve is to make the month selectable with a drop-down list:
<asp:DropDownList runat="server" id="DropDownList1">
<asp:ListItem Selected="True" Value="01">January
</asp:ListItem>
<asp:ListItem Value="02">February</asp:ListItem>
</asp:DropDownList>
The drop-down can also be a regular html select if it would help, no difference there. But how can I retrieve the chosen value of the select with XPath?
Trying to achieve this with XPath because SharePoint's "regular" filtering only allows filtering by full date, not by day, month or year separately.