1 Step:
Create new Parameter, like this:
Set default values :
Default values
select response0.*
from Filtered<Entityname> as response0
where (response0.statecode=0)
Now open the Report code and add or modify the following property (CustomProperty):
CODE:
Default values
<CustomProperty>
<Name>Custom</Name>
<Value>
<MSCRM xmlns="mscrm">&lt;ReportFilter&gt;&lt;ReportEntity paramname="CRM_Filtered<EntityName>"&gt;&lt;fetch version="1.0"
output-format=" xml-platform" mapping="logical" distinct="false"
&gt;&lt;entity name="<EntityName"& gt;& lt;all-attributes /&gt;&lt;filter type="and"&gt;&lt; condition attribute= "statecode" operator="eq" value="0" /&gt;&lt;/filter&gt;&lt;/entity&gt;&lt;/fetch&gt;&lt; /ReportEntity&gt;&lt;/ReportFilter&gt;</MSCRM>
</Value>
</CustomProperty>
Replace all <entityname> with your logical entity name.
Nicola Grillo
No comments:
Post a Comment