can we give the alias for field name?

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

can we give the alias for field name?

Anurag Walia
Hi all,


can we give the alias for field name in the entitymodel.xml?

Thanks
Anurag walia
Reply | Threaded
Open this post in threaded view
|

Re: can we give the alias for field name?

Ankit Jain-3
Hi Anurag,

Yes this is possible, just set the "filedname" you want and the actual
name of filed in the "col-name" like :

<field name="oldAmountPerQuantity" col-name="AMOUNT_PER_QUANTITY"
type="currency-amount"></field>

--
Thanks & Regards:
Ankit Jain
Jr. Enterprise Software Developer
Hotwax Media Pvt. Ltd.
www.hotwaxmedia.com



Anurag Walia wrote:
> Hi all,
>
>
> can we give the alias for field name in the entitymodel.xml?
>
> Thanks
> Anurag walia
>  


Reply | Threaded
Open this post in threaded view
|

Re: can we give the alias for field name?

Anurag Walia
Thanks Ankit for ur valuable reply.
can we use like this in product table for <field name="productId" type="id-ne"></field> ?

<field name="skuId" col-name="productId" type="id-ne"></field>
 it will give the same value.
1->product.skuId == product.productId

Regards
 Anurag Walia

Reply | Threaded
Open this post in threaded view
|

Re: can we give the alias for field name?

Ankit Jain-3
Anurag Walia wrote:

> Thanks Ankit for ur valuable reply.
> can we use like this in product table for <field name="productId"
> type="id-ne"></field> ?
>
> <field name="skuId" col-name="productId" type="id-ne"></field>
>  it will give the same value.
> 1->product.skuId == product.productId
>
> Regards
>  Anurag Walia
>
>
>  
Yes Anurag it will give the same result.

HTH

--
Thanks & Regards:
Ankit Jain :-)
Jr. Enterprise Software Developer
Hotwax Media Pvt. Ltd.
www.hotwaxmedia.com