DataMgr 2.5 Documentation: Has / HasNot

Has / HasNot

The "has" relation type simply returns the value of another field converted to a boolean value.

Attributes/Keys:

Field type conversions:

Example (XML):

<field ColumnName="MyField">
	<relation type="has" field="Email" />
</field>

Example (setColumn):

<cfset sRelation = StructNew()>
<cfset sRelation.type = "has">
<cfset sRelation.field= "Email">
<cfset Application.DataMgr.setColumn(tablename="MyTable",ColumnName="MyField",Relation=sRelation)>

HasNot

The "hasnot" relation type is just like the "has" relation type except that it returns the opposite boolean value.