Finding the mapped relation based on a field

Posts   
 
    
Posts: 69
Joined: 24-Jun-2008
# Posted on: 12-Jan-2009 10:44:54   

Is it possible to retrieve the relation field, based on the EntityFields object?

As an example, I have a invoice that belongs to the customer. In the code, I have the CustomerID available (since it is a FK to the customer). However, I want to retrieve the Customer property (which is a field mapped based on a relation) if it exists.

It is possible to check whether a relation property exists based on the InvoiceFields.CustomerID?

Thanks in advance!

Best regards,

Walaa avatar
Walaa
Support Team
Posts: 14993
Joined: 21-Aug-2005
# Posted on: 12-Jan-2009 11:17:38   
Posts: 69
Joined: 24-Jun-2008
# Posted on: 12-Jan-2009 11:51:12   

Thank you very much!