ofbiz-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adrian Crum <adri...@hlmksw.com>
Subject Re: getting parent component name
Date Wed, 21 Apr 2010 21:21:01 GMT
You can get the file's location - look at Entity Reference in Web Tools.

-Adrian

Christopher Snow wrote:
> Is it possible to get the name of the component that an entity belongs 
> too?  E.g. something like:
> 
> Delegator delegator = (Delegator) request.getAttribute("delegator");
> ModelReader reader = delegator.getModelReader();
> ModelEntity entity = reader.getModelEntity("myEntity");
> // return the name of the component that an entity belongs to
> String entityComponent = entity.getComponentName();
> 
> Many thanks in advance,
> 
> Chris
> 

Mime
View raw message