'Declaration Public Function SetCrossFieldRecordFilters( _ ByVal fieldLayout As FieldLayout, _ ByVal filters As CrossFieldRecordFilterGroup, _ Optional ByVal addToUndo As Boolean _ ) As Boolean
public bool SetCrossFieldRecordFilters( FieldLayout fieldLayout, CrossFieldRecordFilterGroup filters, bool addToUndo )
Exception | Description |
---|---|
System.ArgumentNullException | If fieldLayout is null. |
System.InvalidOperationException | If fieldLayout and filters aren't compatible. |
If the FieldLayoutSettings.RecordFilterScope is set to 'SiblingDataRecords' this method will apply the filters this RecordManager's records. Otherwise it will set the FieldLayout's CrossFieldRecordFilters property so the filters will apply across all records associated with the FieldLayout.
Note: if both CrossFieldRecordFilters and RecordFilters are specified, the CrossFieldRecordFilters will be applied first and then the RecordFilters will be applied to any records that are not filtered out.
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2