<field>
<fieldname>PRICEPLAN_FILTER<<fieldname>NAME</fieldname>
<fieldfunction>PRODUCTS.PRODID</fieldfunction><fieldfunction>
<caption>PriceCASE Plan</caption>
<filter>true</filter>
<filteravailable>true</filteravailable>
<fieldtype>string</fieldtype>
<filtercaseinsensitive>false</filtercaseinsensitive>
<filtercondition>
PRODUCTS.PRODID IN (
SELECT PRICEPLANRATES.PRICEPLANRATEPRODID
FROM PRICEPLANRATES
WHERE PRICEPLANRATES.PRICEPLANID IN ('#1')
AND PRICEPLANRATES.PRICEPLANRATEDELETED = 0
)
</filtercondition>
<filteronexpand>true</filteronexpand>
<filterlookupname>dataset;priceplan.load;priceplanid;priceplanname</filterlookupname> WHEN CONTACTINFORMATION.CITYPE = 'COMPANY'
THEN CONTACTINFORMATION.CICOMPANYNAME
WHEN CONTACTINFODEFINITIONS.CIDEFNAMEGENRULE = 1
THEN CONTACTINFORMATION.CIFIRSTNAME SQL_+ ' ' SQL_+ CONTACTINFORMATION.CILASTNAME
WHEN CONTACTINFODEFINITIONS.CIDEFNAMEGENRULE = 2
THEN CONTACTINFORMATION.CILASTNAME SQL_+ ' ' SQL_+ CONTACTINFORMATION.CIFIRSTNAME
WHEN CONTACTINFODEFINITIONS.CIDEFNAMEGENRULE = 3
THEN CONTACTINFORMATION.CIFIRSTNAME SQL_+ ' ' SQL_+
COALESCE (CONTACTINFORMATION.CIMIDDLENAME SQL_+ ' ','') SQL_+ '' SQL_+ CONTACTINFORMATION.CILASTNAME
WHEN CONTACTINFODEFINITIONS.CIDEFNAMEGENRULE = 4
THEN CONTACTINFORMATION.CILASTNAME SQL_+ ' ' SQL_+
COALESCE (CONTACTINFORMATION.CIMIDDLENAME SQL_+ ' ','') SQL_+ '' SQL_+ CONTACTINFORMATION.CIFIRSTNAME
END
</fieldfunction>
<caption>key_name</caption>
<filter>true</filter>
<filtercaseinsensitive>true</filtercaseinsensitive>
<filtertextoption>contains</filtertextoption>
</field> |