Applying Conditions

Sometimes, you apply conditions to filter data. When you apply conditions, the efficiency of reports is improved, as conditions remove the invalid objects in context in the output XML. The conditions are applied on the object in context. As given in the example below, the <Condition Compare="Comparison_Strategy"> tag is defined within the <Object_Type> tag. The "Compare" attribute defines the comparison strategy.

The comparison strategy defines the following strategies:

  • Exact: Compares with the exact value defined in the <Value> tag.
  • BeginsWith: Value begins with the value defined in the <Value> tag.
  • EndsWith: Value ends with the value defined in the <Value> tag.
  • Contains: Value contains with the value defined in the <Value> tag.
  • NotEqual: Value does not match the value defined in the <Value> tag.
  • Null: Property value is NULL. The <Value> tag is not required in this strategy.
  • NotNull: Property value exists. The <Value> tag is not required in this strategy.

Syntax:

   <Object_Type>
    <Name>Attribute</Name>
        <Condition Compare = "Exact">
               	<Property>
            		<Type>Tpye</Type>
             		<Value>0</Value>	<!--0 = PK Attribute Type-->	
               	</Property>
        </Condition>
	<Report_Output>
		<Property>
			<Type>ID</Type>
             		<Type>Parent_Relationship_Ref</Type>
                </Property>
        </Report_Output>
    </Object_Type>