Le jeudi 17 juin 2010 à 18:05 +0200, Matthieu Bollot a écrit :
> Hi,
> Is there a way to use entitylabels in a groovy ?
> I've got a genericValue that contains a result, for example a workEffort
> with workEffortTypeId:ROUTING that I can get with
> myRow['workEffortTypeId']
> And I want to get the string of WorkEffortType.description.ROUTING from
> workEffortEntityLabels which will be 'routing' in english, 'routage' in
> french and so on.
>
> any idea ?
>
Obviously, it's always when we ask for help after searching for hours
that we find the solution alone -_-'
btw, here is a solution, may be not the best one :
e.g. : in screen.xml
<property-map resource="CommonEntityLabels" map-name="uiLabelMap"
global="true"/>
in groovy :
uiLabelMap.get('StatusItem.description.'+key)
where key is my status, such as ROUTING
--
Matthieu BOLLOT
www.nereide.biz