You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Foo Shyn Chung <ip...@gmail.com> on 2012/07/05 11:38:13 UTC
Display UILabels dynamically?
Hi all,
I'm not sure whether this is a obvious function or not, but I can't find
much info about it from the net. Currently I have a set of key + values
stored in a entity and they are constants figures that will be used in
performing calculation.
The sample value are like:
ID VALUE
factorA 222
factorB 333
However in display , i would like to display the ID with i18n support,
which can be obtain from XUiLabels. Since the values are fixed (they're
constants) so is it possible for me to map them using the description field
in the <display> tag?
Example something like:
In the form XML:
<field name="typeId" title="${uiLabelMap.TypeId}"><display
description="${uiLabelMap.<Some way to put in the value of typeId here>
}"/></field>
In the XUiLabels XML:
<property key="factorA">
<value xml:lang="en">Factor A</value>
<value xml:lang="my">Faktor A</value>
</property>
Thanks
FooShyn
Re: Display UILabels dynamically?
Posted by Foo Shyn Chung <ip...@gmail.com>.
Ok found it, it's CommonEntityLabels.xml .....Thanks for the pointer :)
Thanks
FooShyn
On Thu, Jul 5, 2012 at 6:10 PM, Deepak Agarwal <da...@gmail.com> wrote:
> Setup whole project in eclipse and use Ctrl+Shift+R for the lookup.
>
> On Thu, Jul 5, 2012 at 3:38 PM, Foo Shyn Chung <ip...@gmail.com> wrote:
>
> > Hi Deepak,
> >
> > I'm having problem locating that file. May I know which component it's
> in?
> >
> > Thanks
> > FooShyn
> >
> > On Thu, Jul 5, 2012 at 6:02 PM, Deepak Dixit
> > <de...@hotwaxmedia.com>wrote:
> >
> > > Please refer CommonEntityUiLabels.xml.
> > >
> > >
> > > Thanks & Regards
> > > --
> > > Deepak Dixit
> > > HotWax Media Pvt. Ltd.
> > > www.hotwaxmedia.com
> > > Contact :- +91-98267-54548
> > > Skype :- deepakdixit
> > >
> > > On Jul 5, 2012, at 3:08 PM, Foo Shyn Chung wrote:
> > >
> > > > Hi all,
> > > >
> > > > I'm not sure whether this is a obvious function or not, but I can't
> > find
> > > > much info about it from the net. Currently I have a set of key +
> values
> > > > stored in a entity and they are constants figures that will be used
> in
> > > > performing calculation.
> > > >
> > > > The sample value are like:
> > > >
> > > > ID VALUE
> > > > factorA 222
> > > > factorB 333
> > > >
> > > > However in display , i would like to display the ID with i18n
> support,
> > > > which can be obtain from XUiLabels. Since the values are fixed
> (they're
> > > > constants) so is it possible for me to map them using the description
> > > field
> > > > in the <display> tag?
> > > >
> > > > Example something like:
> > > >
> > > > In the form XML:
> > > >
> > > > <field name="typeId" title="${uiLabelMap.TypeId}"><display
> > > > description="${uiLabelMap.<Some way to put in the value of typeId
> here>
> > > > }"/></field>
> > > >
> > > > In the XUiLabels XML:
> > > >
> > > > <property key="factorA">
> > > > <value xml:lang="en">Factor A</value>
> > > > <value xml:lang="my">Faktor A</value>
> > > > </property>
> > > >
> > > >
> > > > Thanks
> > > > FooShyn
> > >
> > >
> >
> > --
> > Thanks,
> > Deepak Agarwal,
> >
> > Paxcel Technologies Pvt Ltd.
> > Hartron Complex, Sector 18, Gurgaon, India.
> > E-Mail: deepak.agarwal@paxcel.net
> > Mobile: +91 9910322604
> >
> >
>
Re: Display UILabels dynamically?
Posted by Deepak Agarwal <da...@gmail.com>.
Setup whole project in eclipse and use Ctrl+Shift+R for the lookup.
On Thu, Jul 5, 2012 at 3:38 PM, Foo Shyn Chung <ip...@gmail.com> wrote:
> Hi Deepak,
>
> I'm having problem locating that file. May I know which component it's in?
>
> Thanks
> FooShyn
>
> On Thu, Jul 5, 2012 at 6:02 PM, Deepak Dixit
> <de...@hotwaxmedia.com>wrote:
>
> > Please refer CommonEntityUiLabels.xml.
> >
> >
> > Thanks & Regards
> > --
> > Deepak Dixit
> > HotWax Media Pvt. Ltd.
> > www.hotwaxmedia.com
> > Contact :- +91-98267-54548
> > Skype :- deepakdixit
> >
> > On Jul 5, 2012, at 3:08 PM, Foo Shyn Chung wrote:
> >
> > > Hi all,
> > >
> > > I'm not sure whether this is a obvious function or not, but I can't
> find
> > > much info about it from the net. Currently I have a set of key + values
> > > stored in a entity and they are constants figures that will be used in
> > > performing calculation.
> > >
> > > The sample value are like:
> > >
> > > ID VALUE
> > > factorA 222
> > > factorB 333
> > >
> > > However in display , i would like to display the ID with i18n support,
> > > which can be obtain from XUiLabels. Since the values are fixed (they're
> > > constants) so is it possible for me to map them using the description
> > field
> > > in the <display> tag?
> > >
> > > Example something like:
> > >
> > > In the form XML:
> > >
> > > <field name="typeId" title="${uiLabelMap.TypeId}"><display
> > > description="${uiLabelMap.<Some way to put in the value of typeId here>
> > > }"/></field>
> > >
> > > In the XUiLabels XML:
> > >
> > > <property key="factorA">
> > > <value xml:lang="en">Factor A</value>
> > > <value xml:lang="my">Faktor A</value>
> > > </property>
> > >
> > >
> > > Thanks
> > > FooShyn
> >
> >
>
> --
> Thanks,
> Deepak Agarwal,
>
> Paxcel Technologies Pvt Ltd.
> Hartron Complex, Sector 18, Gurgaon, India.
> E-Mail: deepak.agarwal@paxcel.net
> Mobile: +91 9910322604
>
>
Re: Display UILabels dynamically?
Posted by Foo Shyn Chung <ip...@gmail.com>.
Hi Deepak,
I'm having problem locating that file. May I know which component it's in?
Thanks
FooShyn
On Thu, Jul 5, 2012 at 6:02 PM, Deepak Dixit
<de...@hotwaxmedia.com>wrote:
> Please refer CommonEntityUiLabels.xml.
>
>
> Thanks & Regards
> --
> Deepak Dixit
> HotWax Media Pvt. Ltd.
> www.hotwaxmedia.com
> Contact :- +91-98267-54548
> Skype :- deepakdixit
>
> On Jul 5, 2012, at 3:08 PM, Foo Shyn Chung wrote:
>
> > Hi all,
> >
> > I'm not sure whether this is a obvious function or not, but I can't find
> > much info about it from the net. Currently I have a set of key + values
> > stored in a entity and they are constants figures that will be used in
> > performing calculation.
> >
> > The sample value are like:
> >
> > ID VALUE
> > factorA 222
> > factorB 333
> >
> > However in display , i would like to display the ID with i18n support,
> > which can be obtain from XUiLabels. Since the values are fixed (they're
> > constants) so is it possible for me to map them using the description
> field
> > in the <display> tag?
> >
> > Example something like:
> >
> > In the form XML:
> >
> > <field name="typeId" title="${uiLabelMap.TypeId}"><display
> > description="${uiLabelMap.<Some way to put in the value of typeId here>
> > }"/></field>
> >
> > In the XUiLabels XML:
> >
> > <property key="factorA">
> > <value xml:lang="en">Factor A</value>
> > <value xml:lang="my">Faktor A</value>
> > </property>
> >
> >
> > Thanks
> > FooShyn
>
>
Re: Display UILabels dynamically?
Posted by Deepak Dixit <de...@hotwaxmedia.com>.
Please refer CommonEntityUiLabels.xml.
Thanks & Regards
--
Deepak Dixit
HotWax Media Pvt. Ltd.
www.hotwaxmedia.com
Contact :- +91-98267-54548
Skype :- deepakdixit
On Jul 5, 2012, at 3:08 PM, Foo Shyn Chung wrote:
> Hi all,
>
> I'm not sure whether this is a obvious function or not, but I can't find
> much info about it from the net. Currently I have a set of key + values
> stored in a entity and they are constants figures that will be used in
> performing calculation.
>
> The sample value are like:
>
> ID VALUE
> factorA 222
> factorB 333
>
> However in display , i would like to display the ID with i18n support,
> which can be obtain from XUiLabels. Since the values are fixed (they're
> constants) so is it possible for me to map them using the description field
> in the <display> tag?
>
> Example something like:
>
> In the form XML:
>
> <field name="typeId" title="${uiLabelMap.TypeId}"><display
> description="${uiLabelMap.<Some way to put in the value of typeId here>
> }"/></field>
>
> In the XUiLabels XML:
>
> <property key="factorA">
> <value xml:lang="en">Factor A</value>
> <value xml:lang="my">Faktor A</value>
> </property>
>
>
> Thanks
> FooShyn