extend on *labels files ?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

extend on *labels files ?

Erwan de FERRIERES-3
Hi all,

sometimes I need to add or work with specifics labels on entities / UI
/security, which won't be added to OFBiz.

Is there then a way to create a new file and working with it such as
what is done with the extend entity ?

Regards,

--
Erwan de FERRIERES
www.nereide.biz
Reply | Threaded
Open this post in threaded view
|

Re: extend on *labels files ?

BJ Freeman

the labels are defined in resources.
I just add new files and declare then in the widgets.
use the same format as current labels files.

=========================
BJ Freeman
http://bjfreeman.elance.com
Strategic Power Office with Supplier Automation <http://www.businessesnetwork.com/automation/viewforum.php?f=93>
Specialtymarket.com <http://www.specialtymarket.com/>

Systems Integrator-- Glad to Assist

Chat  Y! messenger: bjfr33man
Linkedin
<http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro>


Erwan de FERRIERES sent the following on 3/19/2010 3:25 AM:

> Hi all,
>
> sometimes I need to add or work with specifics labels on entities / UI
> /security, which won't be added to OFBiz.
>
> Is there then a way to create a new file and working with it such as
> what is done with the extend entity ?
>
> Regards,
>


Reply | Threaded
Open this post in threaded view
|

Re: extend on *labels files ?

james_sg
In reply to this post by Erwan de FERRIERES-3
What I'll do is to put the new label file into the config folder and add something like
<property-map resource="my_new_labels" map-name="uiLabelMap" global="true"/>
 in the screen widget that are using the new labels.

Erwan de FERRIERES wrote
Hi all,

sometimes I need to add or work with specifics labels on entities / UI
/security, which won't be added to OFBiz.

Is there then a way to create a new file and working with it such as
what is done with the extend entity ?

Regards,

--
Erwan de FERRIERES
www.nereide.biz
Reply | Threaded
Open this post in threaded view
|

Re: extend on *labels files ?

Erwan de FERRIERES
Le 20/03/2010 01:53, james_sg a écrit :

>
> What I'll do is to put the new label file into the config folder and add
> something like
> <property-map resource="my_new_labels" map-name="uiLabelMap" global="true"/>
>   in the screen widget that are using the new labels.
>
>
> Erwan de FERRIERES wrote:
>>
>> Hi all,
>>
>> sometimes I need to add or work with specifics labels on entities / UI
>> /security, which won't be added to OFBiz.
>>
>> Is there then a way to create a new file and working with it such as
>> what is done with the extend entity ?
>>
>> Regards,
>>
>> --
>> Erwan de FERRIERES
>> www.nereide.biz
>>
>>
>
Yeah sure, it's what I'm doing. I didn't explained well my use case. The
problem I'm facing is when using EntityLabels already existing.

If I want to add new records in my entity, and then add the EntityLabels
going with it, I have to modify the OFBiz file. What I want is extend
the existing labels file, and not have to modify the OFBiz file...

--
Erwan de FERRIERES
www.nereide.biz
Reply | Threaded
Open this post in threaded view
|

Re: extend on *labels files ?

james_sg
Hi Erwan,

Look at the getBundle method in UtilProperties class.
You can load your override resource to merge the properties etc.

Regards,
James

Erwan de FERRIERES-2 wrote
Yeah sure, it's what I'm doing. I didn't explained well my use case. The
problem I'm facing is when using EntityLabels already existing.

If I want to add new records in my entity, and then add the EntityLabels
going with it, I have to modify the OFBiz file. What I want is extend
the existing labels file, and not have to modify the OFBiz file...

--
Erwan de FERRIERES
www.nereide.biz