Quantcast
Channel: SCN: Message List - BOPF Application Framework
Viewing all articles
Browse latest Browse all 726

Re: fetching records from different BO

$
0
0

Hello Vipin,

 

 

if your BO model looks like that:

 

Customer BO:

Attribute "CustomerID"


Transaction BO:
Attribute "TransactionID"
Attribute "RefCustomerID" (foreign key to Customer BO)

 

You have two options:

 

  • Query on Transaction BO:
    Having Importing Parameter CustomerID and executes a join on the database tables of customer BO and transaction BO to find the relevant instances.
    Disadvantage: Reads only database image, that means changes of the current transaction are not taken into account (e.g. if in the current transaction a transaction has been deleted, it will be part of the result of that query).
  • Cross BO Association leading from Customer BO to Transaction BO
    1. Put an alternative key on RefCustomerID, make it non-unqiue unstructured
    2. Create cross BO Association leading from Customer BO to Transaction BO. Implement it that way:
    2.1 First retrieve via IT_KEY the customer instances to extract the CustomerID
    2.2 Secondly resolve the alternative key of the field RefCustomerID on the transaction BO via the service manager

 

Best regards

Tilmann


Viewing all articles
Browse latest Browse all 726

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>