Developer forum

Forum » Ecommerce - Standard features » FieldDisplay group field system names

FieldDisplay group field system names

Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi guys,

I am sorry for the lack of inspiration in naming this thread.

I have the following situation. I have a couple of ProductCategoryFIelds defined as reference fields. They are all added to a FieldDisplayGroup:

When listing the fields on the ProductDetailPage I have to perform some processing depending on the ProductCategory the field is assigned to.

The first problem is that the list of fields will only return one instance of the Icon_reference, the last one. Which seems like a bug

The second problem is that the SystemName property of the FieldValueViewModel will only return the system name of the field, without the ProductCategory SystemName and I cannot differentiate them.

Do I have any alternative?

Thank you,

Adrian

 


Replies

 
Steffen Kruse Hansen Dynamicweb Employee
Steffen Kruse Hansen
Reply
This post has been marked as an answer

Hi Adrian,

It seems like all the problems you are having can be fixed with the GlobalSetting "/Globalsettings/Ecom/FieldDisplayGroup/UseCombinedSystemNamesAsIdsInViewModel". It was something that was introduced long time ago, but it we could not enable it as default, because it could potentially break existing solutions. 

So you if just enabled that one, it should solve both of the issues, you are describing :)

I hope it fixes your problem.

Best regards,

Steffen

Votes for this answer: 1
 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Steffen,

Thank you for the clarification.

It looks like it could solve both issues.

Thank you,
Adrian

 

You must be logged in to post in the forum