project QadFinancials > class BCompanyProperty > business logic query CompanyPropertyPrim

Description

Prim query
= query that can be used to find the logical key based on the prim-key and vice-versa.


Parameters


iiCompanyIdintegerCompany id
iiCompanyPropertyIdintegerCompanyPropertyId
icCompanyPropertyCodecharacterCompanyPropertyCode


query condition


  each CompanyProperty where
CompanyProperty.Company_Id = iiCompanyId AND
CompanyProperty.CompanyProperty_ID = iiCompanyPropertyId AND
CompanyProperty.CompanyPropertyCode = icCompanyPropertyCode


query resultset tqCompanyPropertyPrim


field namedata typedb fielddescription
tiCompany_IDintegerCompanyProperty.Company_IDLink to Company
tiCompanyProperty_IDintegerCompanyProperty.CompanyProperty_IDRecord ID
tcCompanyPropertyCodecharacterCompanyProperty.CompanyPropertyCodeEntity Code
ti_sequenceintegercalculatedprimary index
tc_rowidcharactercalculated = rowid(CompanyProperty)


Internal usage


QadFinancials
method BCompanyProperty.SwitchPrimaryCompany