cancel
Showing results for 
Search instead for 
Did you mean: 

Different labels for inherited attributes

Former Member
0 Kudos

Say that we got Product and VariantProduct. The both have the attribute name defined on Product.

Say that we got the labels

 type.product.name.name=Product Name
 type.variantproduct.name.name=Variant Name

In PCM (and HMC), the view for the VariantProduct will show the label "Product Name", nomather if we reference the Product or the VariantProduct in the qualifier.

This gets really annoying when you might want to show the name of the Product in the VariantProduct view.

Prefered presentation in VariantProduct Product Name : Snowshovel Variant Name: Awesome small Snowshovel

Current presentation in VariantProduct Product Name : Snowshovel Product Name: Awesome small Snowshovel

Please advice on how we can override the inherited label?

Former Member
0 Kudos

Hi Magnus,

Did you find any solution for this?if yes can you please share the approach.

Regards Rahul

Former Member
0 Kudos

Hi Rahul! The solution proposed by works. I just wish there were more information about it in the documentation so that i can tell our customer if its officially supported or not.

Former Member
0 Kudos

Hi Magnus,

Thanks Magnus. Yeah I echo the same. Consider performance implications of fetching localised information from file system instead of DB as I believe this is going to impact all localised types.

Regards Rahul

Accepted Solutions (1)

Accepted Solutions (1)

former_member469962
Contributor
0 Kudos

Hello Magnus,

Try setting this property: types.localization.jdbc.mode.enabled=false in the local.properties, rebuild hybris and then execute the platform update with Localise types checked.

Hope this helps.

Br, Shwetha

Former Member
0 Kudos

Hi Shwetha, Can you please explain this? What is this property for and how will it work? I am looking for some advice to handle similar scenario.

Thanks Rahul

Former Member
0 Kudos

Setting this property solved my issue and allowed be to add unique labels to inherited entities. thank you very much!

former_member469962
Contributor
0 Kudos

Hello Rahul/Magnus,

This is a property used by the TypeLocalization.

Setting the property value to false switches the localization from the faster jdbc way to the older Jalo way. The dev team is already aware of this TypeLocalization behaviour and there is an internal jira ticket to track the same.

Br, Shwetha

Former Member
0 Kudos

Hi Shwetha, Many thanks for the advice. This helps.

Regards Rahul

Former Member
0 Kudos

Thanks a lot for the solution !!!. Working likes like a charm.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Magnus! I dont know of an official solution here, but i guess it works when you change the name on the attribute-descriptor.