Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Should Entities refer to fields from related tables?
Message
From
28/05/2010 15:24:16
Antonio Llano
Inmollano S.L.
Getxo, Spain
 
 
To
28/05/2010 13:34:29
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01466424
Message ID:
01466433
Views:
42
Ifv the parent child relationship is set, you can add Get Fields to your Policies Entity and then lookup to the parent Table in this way:
public string ClientName
>{
>    get
>    {
>        string clientName = ""
>        PolicyObj polObj = this.GetBusinessObject() as PolicyObj;
>        if (polObj != null)
>        {
>            if (polObj.ParentBizObj != null)
>            {
>                ClientObj cliObj = polObj.ParentBizObj as ClientObj;
>                if (cliObj != null && cliObj.Entity != null) clientName = cliObj.Entity.ClientName;
>            }
>        }
>        return clientName;
>    }
>}
You also can get data from a view.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform