Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all articles
Browse latest Browse all 10045

how to have date parameters nullable in fetch xml crm report

$
0
0

Hi All ;

Below is my report parameter query

<fetch distinct="true" mapping="logical">Date.getTime() <entity name="new_programmeoutput">

CrmDateTime @Search = new CrmDateTime { Value = String.Format("{0:MM/dd/yyyy}", DateTime.Now) };

CrmDateTime @Search1 = new CrmDateTime { Value = String.Format("{0:MM/dd/yyyy}", DateTime.Now) };<attribute name="new_claimdate" /><filter type ="and"><condition attribute="new_claimdate" operator="ge"  value="@Search"  /><condition attribute="new_claimdate" operator="lt"  value="@Search1"  /></filter><order attribute="new_claimdate" /></entity></fetch>

which works fine if the start date and the end date is entered

but if the start date and end date is made null ... it doesn't display any values

In fact if these ( start date and end date)parameters are made null i need to display all the values in the report irrespective of the date parameters

Any help much appreciated

Thanks


Pradnya07


Viewing all articles
Browse latest Browse all 10045

Trending Articles