tcBusinessFieldName | tcDataType | tcOperator |
---|---|---|
iiAddressId | i | = |
tContact.ContactEmail | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tContact.ContactFax | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tContact.ContactFunction | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tContact.ContactGender | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tContact.ContactInitials | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tContact.ContactIsPrimary | l | =,<> |
tContact.ContactIsSecondary | l | =,<> |
tContact.ContactMobilePhone | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tContact.ContactName | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tContact.ContactTelephone | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tContact.ContactTitle | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tContact.LastModifiedDate | t | =,>=,>,<>,<=,< |
tContact.LastModifiedTime | i | =,>=,>,<>,<=,< |
tContact.LastModifiedUser | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tLng.LngCode | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tLng.LngDescription | c | =,>=,>,<>,<=,<,begins,can-do,matches |
iiAddressId | integer |
field name | data type | db field | description |
---|---|---|---|
tiAddress_ID | integer | Contact.Address_ID | Link to Address |
tiBusinessRelation_ID | integer | Contact.BusinessRelation_ID | Link to BusinessRelation |
tiContact_ID | integer | Contact.Contact_ID | Record ID |
tcContactEmail | character | Contact.ContactEmail | E-mail. The E-Mail address of the contact. This field can be blank. |
tcContactFax | character | Contact.ContactFax | Fax. The fax or telex number to use when sending documents to the contact. This field can be blank. |
tcContactFunction | character | Contact.ContactFunction | Function. The function of the contact to the address. This field can be blank. |
tcContactGender | character | Contact.ContactGender | Gender. indicates whether the contact is male or femail. This field is mandatory |
tcContactInitials | character | Contact.ContactInitials | Initials. The initials of the contact. This field can be blank. |
tlContactIsPrimary | logical | Contact.ContactIsPrimary | Primary Contact. This field indicates if the contact is the primary contact of the address. Only one primary contact per address type is allowed. |
api annotation: | PartialUpdate = yes - defaults to false | ||
tlContactIsSecondary | logical | Contact.ContactIsSecondary | Secondary Contact. This field indicates if the contact is the primary contact of the address. Only one secondary contact per address type is allowed. |
api annotation: | PartialUpdate = yes - defaults to false | ||
tcContactMobilePhone | character | Contact.ContactMobilePhone | Mobile. The mobile phone number of the contact. This field can be blank. |
tcContactName | character | Contact.ContactName | Name. The full name of the contact. This field is mandatory. |
tcContactTelephone | character | Contact.ContactTelephone | Telephone. The telephone number of the contact. This field can be blank. |
tcContactTitle | character | Contact.ContactTitle | Title. Title of the contact. This field can be blank. |
tcCustomCombo0 | character | Contact.CustomCombo0 | Custom Combo Field |
tcCustomCombo1 | character | Contact.CustomCombo1 | Custom Combo Field |
tcCustomCombo2 | character | Contact.CustomCombo2 | Custom Combo Field |
tcCustomCombo3 | character | Contact.CustomCombo3 | Custom Combo Field |
tcCustomCombo4 | character | Contact.CustomCombo4 | Custom Combo Field |
tcCustomCombo5 | character | Contact.CustomCombo5 | Custom Combo Field |
tcCustomCombo6 | character | Contact.CustomCombo6 | Custom Combo Field |
tcCustomCombo7 | character | Contact.CustomCombo7 | Custom Combo Field |
tcCustomCombo8 | character | Contact.CustomCombo8 | Custom Combo Field |
tcCustomCombo9 | character | Contact.CustomCombo9 | Custom Combo Field |
ttCustomDate0 | date | Contact.CustomDate0 | Custom Date Field |
ttCustomDate1 | date | Contact.CustomDate1 | Custom Date Field |
ttCustomDate2 | date | Contact.CustomDate2 | Custom Date Field |
ttCustomDate3 | date | Contact.CustomDate3 | Custom Date Field |
ttCustomDate4 | date | Contact.CustomDate4 | Custom Date Field |
tdCustomDecimal0 | decimal | Contact.CustomDecimal0 | Custom Decimal Field |
tdCustomDecimal1 | decimal | Contact.CustomDecimal1 | Custom Decimal Field |
tdCustomDecimal2 | decimal | Contact.CustomDecimal2 | Custom Decimal Field |
tdCustomDecimal3 | decimal | Contact.CustomDecimal3 | Custom Decimal Field |
tdCustomDecimal4 | decimal | Contact.CustomDecimal4 | Custom Decimal Field |
tiCustomInteger0 | integer | Contact.CustomInteger0 | Custom Integer Field |
tiCustomInteger1 | integer | Contact.CustomInteger1 | Custom Integer Field |
tiCustomInteger2 | integer | Contact.CustomInteger2 | Custom Integer Field |
tiCustomInteger3 | integer | Contact.CustomInteger3 | Custom Integer Field |
tiCustomInteger4 | integer | Contact.CustomInteger4 | Custom Integer Field |
tcCustomLong0 | character | Contact.CustomLong0 | Custom Long Field |
tcCustomLong1 | character | Contact.CustomLong1 | Custom Long Field |
tcCustomNote | character | Contact.CustomNote | Custom Note Field |
tcCustomShort0 | character | Contact.CustomShort0 | Custom Short Field |
tcCustomShort1 | character | Contact.CustomShort1 | Custom Short Field |
tcCustomShort2 | character | Contact.CustomShort2 | Custom Short Field |
tcCustomShort3 | character | Contact.CustomShort3 | Custom Short Field |
tcCustomShort4 | character | Contact.CustomShort4 | Custom Short Field |
tcCustomShort5 | character | Contact.CustomShort5 | Custom Short Field |
tcCustomShort6 | character | Contact.CustomShort6 | Custom Short Field |
tcCustomShort7 | character | Contact.CustomShort7 | Custom Short Field |
tcCustomShort8 | character | Contact.CustomShort8 | Custom Short Field |
tcCustomShort9 | character | Contact.CustomShort9 | Custom Short Field |
ttLastModifiedDate | date | Contact.LastModifiedDate | Last Modified Date |
tiLastModifiedTime | integer | Contact.LastModifiedTime | Last Modified Time |
tcLastModifiedUser | character | Contact.LastModifiedUser | Last Modified User |
tiLng_ID | integer | Lng.Lng_ID | Record ID |
tcLngCode | character | Lng.LngCode | Language Code |
tcLngDescription | character | Lng.LngDescription | Description |
ContactCustom | character | calculated | custom fields |
LngCustom | character | calculated | custom fields |
ti_sequence | integer | calculated | primary index |
tc_rowid | character | calculated | = rowid(Contact),rowid(Lng) |
define temp-table ttContext no-undo field propertyQualifier as character field propertyName as character field propertyValue as character index entityContext is primary unique propertyQualifier propertyName index propertyQualifier propertyQualifier. define dataset dsContext for ttContext. define variable vhContextDS as handle no-undo. define variable vhExceptionDS as handle no-undo. define variable vhServer as handle no-undo. define variable vhInputDS as handle no-undo. define variable vhInputOutputDS as handle no-undo. define variable vhOutputDS as handle no-undo. define variable vhParameter as handle no-undo. /* Create context */ create ttContext. assign ttContext.propertyName = "programName" ttContext.propertyValue = "BBusinessRelation". create ttContext. assign ttContext.propertyName = "methodName" ttContext.propertyValue = "ContactByAddress". create ttContext. assign ttContext.propertyName = "applicationId" ttContext.propertyValue = "fin". create ttContext. assign ttContext.propertyName = "entity" ttContext.propertyValue = "1000". create ttContext. assign ttContext.propertyName = "userName" ttContext.propertyValue = "mfg". create ttContext. assign ttContext.propertyName = "password" ttContext.propertyValue = "". /* Create input dataset */ create dataset vhInputDS. vhInputDS:read-xmlschema("file", "xml/bbusinessrelation.contactbyaddress.i.xsd", ?). vhParameter = vhInputDS:get-buffer-handle("tParameterI"). vhParameter:buffer-create(). assign vhParameter::icRange = "A" vhParameter::icRowid = "" vhParameter::iiRownum = 0 vhParameter::iiNumber = 5 /* Number of records to read */ vhParameter::icSortColumns = "" vhParameter::ilCountOnly = false vhParameter::ilForwardRead = true vhParameter::iiMaximumBrowseRecordsToCount = 0. vhParameter = vhInputDS:get-buffer-handle("tFilter"). vhParameter:buffer-create(). assign vhParameter::<field-name-1> = <field-value-1> vhParameter::<field-name-2> = <field-value-2> ... /* Connect the AppServer */ create server vhServer. vhServer:connect("-URL <appserver-url>"). if not vhServer:connected() then do: message "Could not connect AppServer" view-as alert-box error title "Error". return. end. /* Run */ assign vhContextDS = dataset dsContext:handle. run program/rpcrequestservice.p on vhServer (input-output dataset-handle vhContextDS by-reference, output dataset-handle vhExceptionDS, input dataset-handle vhInputDS by-reference, input-output dataset-handle vhInputOutputDS by-reference, output dataset-handle vhOutputDS). /* Handle output however you want, in this example, we dump it to xml */ if valid-handle(vhExceptionDS) then vhExceptionDS:write-xml("file", "Exceptions.xml", true). if valid-handle(vhOutputDS) then vhOutputDS:write-xml("file", "Output.xml", true). /* Cleanup */ vhServer:disconnect(). assign vhServer = ?. if valid-handle(vhInputDS) then delete object vhInputDS. if valid-handle(vhOutputDS) then delete object vhOutputDS. if valid-handle(vhExceptionDS) then delete object vhExceptionDS.