PartitionFilter.FilterItem PropertyGets or sets the FilterItem property of the PartitionFilter object.object.FilterItem ([value]) Arguments
Return ValueThe PartitionFilter.FilterItem property returns the Limit object to which the partition values are added.RemarksWhen attempting to set the property value, it is good to check the return value to ensure that the value was set.The following example illustrates the use of the FilterItem property. try { ActiveDocument.pf1 = new ActiveDocument.PartitionFilter(); Console.Writeln(ActiveDocument.pf1.toString()); // outputs "[Object][PartitionFilter]" to the Console var vTest = ActiveDocument.pf1.QueryToFilter(ActiveDocument.Sections["Q-DataToReport"]); if (typeof vTest == "undefined") throw new Error("Invalid Query: Q-DataToReport"); vTest = ActiveDocument.pf1.FilterItem(ActiveDocument.pf1.QueryToFilter().Limits["Fiscalbienniumid"]); if (typeof vTest == "undefined") throw new Error("Invalid Limit: Fiscalbienniumid"); vTest = ActiveDocument.pf1.PartitionValuesResult(ActiveDocument.Sections["q-MyPartitionValues"]); if (typeof vTest == "undefined") throw new Error("Invalid Query: q-MyPartitionValues"); vTest = ActiveDocument.pf1.PartitionValuesColumn(ActiveDocument.pf1.PartitionValuesResult().Limits["Begin Bien Year"]); if (typeof vTest == "undefined") throw new Error("Invalid Limit: Begin Bien Year"); ActiveDocument.pf1.SetPartition(); // use the data in the PartitionFilter object to set the limit in QueryToFilter } catch (e) { Console.Writeln(e.toString()); } Applies To:PartitionFilter ObjectRequirements |