<div class="content" name="IsFilterValidForReportType" uuid="4c4f20a5-f604-4eec-8366-6293dc4d01b2"><p>The IsFilterValidForReportType method returns an indication
of whether a specified report <b>filter</b> is configurable for the specified
report type.</p><dl>
<dd>
<div><pre> [id(FSRM_DISPID_REPORT_MANAGER | 0x06)] HRESULT IsFilterValidForReportType(
   [in] FsrmReportType reportType,
   [in] FsrmReportFilter filter,
   [out, retval] VARIANT_BOOL* valid
 );
</pre></div>
</dd></dl><p><b>reportType: </b>Contains the value from the <a href="84ba80a4-a6c5-41a1-9a8e-7c379e780772" data-linktype="relative-path">FsrmReportType (section 2.2.1.2.10)</a>
enumeration.</p><p><b>filter: </b>Contains the value from the <a href="af1c6aeb-ba51-4d9f-965c-b8886c56b8ee" data-linktype="relative-path">FsrmReportFilter (section 2.2.1.2.16)</a>
enumeration.</p><p><b>valid: </b>Pointer to a variable that upon
completion contains the Boolean indication of whether the specified <b>filter</b>
is configurable for the specified report type.</p><p><b>Return Values: </b>The method MUST return zero on
success, or a nonzero error code on failure.</p><dl>
<dd>
<table><thead>
  <tr>
   <th>
   <p>Return value/code</p>
   </th>
   <th>
   <p>Description</p>
   </th>
  </tr>
 </thead><tbody><tr>
  <td>0x80070057 E_INVALIDARG</td>
  <td>This code is returned for the following reasons:  The reportType parameter is not a valid FsrmReportType 2.2.1.2.10 value.  The filter parameter is not a valid FsrmReportFilter (section 2.2.1.2.16) value.  The valid parameter is NULL.</td>
 </tr></tbody></table>
</dd></dl><p>Upon receiving this message, the server MUST validate
parameters:</p><ul><li><p><span><span> 
</span></span>Verify that <i>valid</i> is not NULL.</p>
</li><li><p><span><span> 
</span></span>Verify that <i>reportType</i> contains a valid FsrmReportType
value. If the <i>reportType</i> is <b>FsrmReportType_Unknown</b>, the parameter
MUST be considered an invalid value.</p>
</li><li><p><span><span> 
</span></span>Verify that filter contains a valid FsrmReportFilter value.</p>
</li></ul><p>If any validation fails, the server MUST terminate
processing and return a nonzero error code.</p><p>The server MUST set <i>valid</i> to the value VARIANT_TRUE
or VARIANT_FALSE.</p></div>