tcBusinessFieldName | tcDataType | tcOperator |
---|---|---|
iiBusinessRelationId | i | = |
icBusinessRelationCode | c | matches |
tBusinessRelation.BusinessRelationAVRCode | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tBusinessRelation.BusinessRelationCode | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tBusinessRelation.BusinessRelationIsActive | l | =,<> |
tBusinessRelation.BusinessRelationIsCompens | l | =,<> |
tBusinessRelation.BusinessRelationIsInComp | l | =,<> |
tBusinessRelation.BusinessRelationIsInterco | l | =,<> |
tBusinessRelation.BusinessRelationIsLastFill | l | =,<> |
tBusinessRelation.BusinessRelationIsTaxRep | l | =,<> |
tBusinessRelation.BusinessRelationName1 | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tBusinessRelation.BusinessRelationName2 | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tBusinessRelation.BusinessRelationNameCtrl | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tBusinessRelation.BusinessRelationSearchName | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tLng.LngCode | c | =,>=,>,<>,<=,<,begins,can-do,matches |
iiBusinessRelationId | integer | |
icBusinessRelationCode | character | Business Relation Code |
field name | data type | db field | description |
---|---|---|---|
tiBusinessRelation_ID | integer | BusinessRelation.BusinessRelation_ID | Record ID |
tcBusinessRelationAVRCode | character | BusinessRelation.BusinessRelationAVRCode | Obsolete field |
tcBusinessRelationCode | character | BusinessRelation.BusinessRelationCode | Business Relation. A code to identify the business relation. If this field does not have a input from the user, the system automatically generates a number for the record based on the sequence defined in Business Relation Autonumber Create. |
tlBusinessRelationIsActive | logical | BusinessRelation.BusinessRelationIsActive | Active: This field indicates if this is an active record. |
api annotation: | PartialUpdate = yes - defaults to true. | ||
tlBusinessRelationIsCompens | logical | BusinessRelation.BusinessRelationIsCompens | Customer/Supplier Compensation Allowed. This filed indicates how open items should be managed during payment processing when a customer and supplier are both associated with this business relation. |
api annotation: | PartialUpdate = yes - defaults to false. | ||
tlBusinessRelationIsInComp | logical | BusinessRelation.BusinessRelationIsInComp | Internal Entity. This filed indicates if the business relation identifies one of your entities within this database. If this is an internal entity, you can also update the Tax Report, Name Control, and Last Filing fields, which are used for filing 1099-MISC reports in the US. |
api annotation: | PartialUpdate = yes - defaults to false. For internal entities, this field defaults to yes and cannot be changed. | ||
tlBusinessRelationIsInterco | logical | BusinessRelation.BusinessRelationIsInterco | Intercompany. This field Indicates if the business relation identifies an entity that is a member of a group of entities that trade with each other. If the business relation is identified as an internal entity,this field is true and cannot be changed. |
api annotation: | PartialUpdate = yes - defaults to false. | ||
tlBusinessRelationIsLastFill | logical | BusinessRelation.BusinessRelationIsLastFill | Last Filing. For an internal company, this field indicates whether this is the last time your company is filing a 1099-MISC under its current taxpayer ID number. |
api annotation: | PartialUpdate = yes - defaults to false. | ||
tlBusinessRelationIsTaxRep | logical | BusinessRelation.BusinessRelationIsTaxRep | Tax Report. For an internal company,this filed indicates whether to use this address for 1099 tax reporting. When this field is yes, the name, first line of the street address, city, state, zip code, telephone number, and federal tax ID for the headoffice address must not be blank. |
api annotation: | PartialUpdate = yes - defaults to false. | ||
tcBusinessRelationName1 | character | BusinessRelation.BusinessRelationName1 | Name: The full name of the business relation. This field sets the default name for linked addresses such as customers and suppliers. |
api annotation: | PartialUpdate = yes - defaults to the BusinessRelationCode. | ||
tcBusinessRelationName2 | character | BusinessRelation.BusinessRelationName2 | Second Name. An extended name when the Name field is not large enough to contain all information. This fielsd can be blank. |
tcBusinessRelationNameCtrl | character | BusinessRelation.BusinessRelationNameCtrl | Name Control. For an internal company, the value is the IRS magnetic media control code assigned to this company. When Tax Report is selected, a warning displays when this field is blank. |
tcBusinessRelationSearchName | character | BusinessRelation.BusinessRelationSearchName | Search Name: An alternate name for finding the business relation. This field can be useful for sorting and filtering. |
api annotation: | PartialUpdate = yes - defaults to the BusinessRelationCode. | ||
tiCorporateGroup_ID | integer | BusinessRelation.CorporateGroup_ID | Group Name |
tiLng_ID | integer | BusinessRelation.Lng_ID | Language Code |
tcLngCode | character | Lng.LngCode | Language Code |
BusinessRelationCustom | character | calculated | custom fields |
LngCustom | character | calculated | custom fields |
ti_sequence | integer | calculated | primary index |
tc_rowid | character | calculated | = rowid(BusinessRelation),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 = "BusinessRelationByIdCode". 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.businessrelationbyidcode.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.