project BLF > class Business Component > method DefineCustomRelations

Description

This method is foreseen in the abstract component, and is available on all business components and should be used to define information about relations to custom tables in the component. This method is always empty in case of a non-customized component. The method should be implemented using non-intrusive customization in order to get the relations known to the UI side.
Typically, this method contains code as follows:

create tCustomRelation.
assign tCustomRelation.tcParentTable = "tCurrency"
tCustomRelation.tcChildTable = "tCustomTable1"
tCustomRelation.tcChildTableDescription = "Variantion"
tCustomRelation.tlIsOneToOne = false.


Parameters


oiReturnStatusoutputintegerReturn status of the method.


Internal usage


BLF
method business.GetBusinessFields
method database.GetCustomFieldList
method database.GetXmlRepresentationDataset


program code (program1/business.p)