Attribute filter

What is filter?

Filter is an attribute which can only be added to <face> and exert conditions to it or create an exception for rendering <face> tag including filter. Filter is used to filter rows, calculate the values in a column, or create an aggregate column in database as a condition for rendering <face> All logical conditions work in filter. For example: =,<,>, <>, in (…,….,…) , not in (…,…,…) , and , or … you can see the full list of allowed conditions here. Your <face> work only if the conditions are true, other than that the procedures will jump from <face> with conditions and render the next <face>. Our recommendation is that you always put a without conditions at the end of the <face> tags in your <basis>, just in case of missing data.

< basis core="Command Type" datamembername=["your datamembername"] >
< face filter= ["your condition"]>
< /face>
< /basis>
Filter Attribut
< basis core="print" datamembername="prouduct.list1" >
< face filter= "Prpid=225" > @title < /face >
< /basis>

sample Filter Attribut
< basis core="print" datamembername="" >
< face filter= "Prpid=10000654" rowtype=odd >
< div class="img_1">
< div><img src= "@image">
<div> <p> @answer</p> </div>
< face filter= "Prpid=10000654" rowtype=even >
< div class="img_2">
< div><img src= "@image">
<div> <p> @answer</p> </div>
When you create comparison expressions, the following operators are allowed:
< basis core= "view" datamembername= "" >
< face level= "1" filter= "prpid in ( 4642,4643)" >
< div >
< div >< /div >
<p> @question </p >
</div >
<face level="2">
<div >
<p > @answer </p >
</div >
</face >
</basis >
The following aggregate types are supported to work as an exception for rendering <face>:
Sum (Sum)
The following functions are also supported:<face>: