Function Class_ContractLandlords
Gets a object of data about Landlords for a Tenancy
Class_ContractLandlords([ALIASFROM])
Parameters
# | Type | Passing | Default | Name | Description/Comments |
---|---|---|---|---|---|
1 | string | optional | Blank | ALIASFROM | The alias to get the data from (CONTRACT table) |
Returns
A Tenancy Landlord Object
Method to Get Data
Class_ContractLandlords.getdata([ALIASFROM],[GETMETHOD])
Parameters
# | Type | Passing | Default | Name | Description/Comments |
---|---|---|---|---|---|
1 | string | required | alias() | ALIASFROM | The alias to get the data from (CONTRACT table) |
2 | integer | optional | 0 | GETMETHOD | Method to use to get data - Not used yet |
Examples
{{Local m.poLandlords}}
{{m.poLandlords = Class_ContractLandlords()}}
{{m.poLandlords.getdata(alias(),0)}}
Will get the data and store it in a variable for later use as m.poLandlords
{{o.set("poLandlords",Class_ContractLandlords())}}
{{m.o.poLandlords.getdata(alias(),0)}}
Will get the data and store it in the o variable as poLandlords for later use as m.o.poLandlords
Example use
{{m.o.poLandlords = Class_ContractLandlords()}}
{{m.o.poLandlords.getdata("CONTRACT",0)}}
{{IF m.poLandlords.numberoflandlords>0}}
{{ENDIF}}
{{IF m.poLandlords.numberoflandlords>1}}
{{ENDIF}}
{{IF m.poLandlords.numberoflandlords>2}}
{{ENDIF}}
{{IF m.poLandlords.numberoflandlords>3}}
{{ENDIF}}
The Landlord: [[m.poLandlords.Landlords[1].clcodedesc]] of [[m.poLandlords.Landlords[1].address]] The Landlord: [[m.poLandlords.Landlords[2].clcodedesc]] of [[m.poLandlords.Landlords[2].address]] The Landlord: [[m.poLandlords.Landlords[3].clcodedesc]] of [[m.poLandlords.Landlords[3].address]] The Landlord: [[m.poLandlords.Landlords[4].clcodedesc]] of [[m.poLandlords.Landlords[4].address]]
Method Calls Available
Name | Returns | Passing | Default | Description/Comments |
---|---|---|---|---|
GetEmailAddressList | string | Separator Character | | | Returns a list of unique email addresses from Landlords |
GetExpressionList | string | Separator Character Expression String - fields referenced must be prefixed CLIENT. | | "" | Returns the unique evaluated expression for each Landlord. Each item except the last with be seperated by the seperator |
GetExpressionListAll | string | Separator Character Expression String - fields referenced must be prefixed CLIENT. | | "" | Returns the evaluated expression for each Landlord. Each item except the last with be seperated by the seperator |
Examples
m.poLandlords.GetEmailAddressList(";")
m.poLandlords.GetExpressionList(", ","alltrim(CLIENT.FNAME)+' '+alltrim(CLIENT.SNAME)")