Function Class_PropertyTenants

Gets a object of data about Tenants for a Property

Class_PropertyTenants([PROPCODE],[GETMETHOD])

Parameters

#TypePassingDefaultNameDescription/Comments
1stringrequiredBlankPROPCODEThe property code to get Tenant data for
2integeroptionalSystem DefaultGETMETHODMethod to use to get data
GETMETHODDescription
0Use system level setting (default 4)
1Additional Tenants Note List
2All Active Tenants Terms Records
3All Active People associated as Tenants to the Property
4Get current Tenant Terms/List based on today's date
5From Tenants Terms Records with Offer Code stored in m.pcTenantsOfferCode

Returns

A Property Tenant Object


Examples

{{Local m.poTenants}}
{{m.poTenants = Class_PropertyTenants(PROPCODE,0)}}
{{m.poTenants.getdata()}}

Will get the data and store it in a variable for later use


{{o.set("poTenants",Class_PropertyTenants(PROPCODE,0))}}
{{m.o.poTenants.getdata()}}

Will get the data and store it in the o variable as poTenants for later use


Example use


{{m.o.poTenants = Class_PropertyTenants(PROPCODE,0)}}
{{m.o.poTenants.getdata()}}


{{IF m.poTenants.numberoftenants>0}}


{{ENDIF}}

{{IF m.poTenants.numberoftenants>1}}


{{ENDIF}}

{{IF m.poTenants.numberoftenants>2}}


{{ENDIF}}

{{IF m.poTenants.numberoftenants>3}}


{{ENDIF}}
The Tenant:[[m.poTenants.tenants[1].clcodedesc]]
of[[m.poTenants.tenants[1].address]]
The Tenant:[[m.poTenants.tenants[2].clcodedesc]]
of[[m.poTenants.tenants[2].address]]
The Tenant:[[m.poTenants.tenants[3].clcodedesc]]
of[[m.poTenants.tenants[3].address]]
The Tenant:[[m.poTenants.tenants[4].clcodedesc]]
of[[m.poTenants.tenants[4].address]]


Method Calls Available


NameReturnsPassingDefaultDescription/Comments
GetEmailAddressListstringSeparator Character|Returns a list of unique email addresses from Tenants
GetExpressionListstringSeparator Character
Expression String - fields referenced must be prefixed CLIENT.
|
""
Returns the unique evaluated expression for each Tenant.
Each item except the last with be seperated by the seperator
GetExpressionListAllstringSeparator Character
Expression String - fields referenced must be prefixed CLIENT.
|
""
Returns the evaluated expression for each Tenant.
Each item except the last with be seperated by the seperator

Examples

m.poTenants.GetEmailAddressList(", ")
m.poTenants.GetExpressionList(", ","alltrim(CLIENT.FNAME)+' '+alltrim(CLIENT.SNAME)")