Developer forum

Forum » Feature requests » Extend FieldTypeProviders.ConcatProvider so it supports Listbox fields

Extend FieldTypeProviders.ConcatProvider so it supports Listbox fields

Michael Knudsen
Reply

Currently (DW9.13.3) it's not possible to get the 'name' part of a Listbox field, when using the Dynamicweb.Ecommerce.FieldTypeProviders.ConcatProvider.  Listbox fields are displaying 'value' and not 'name' as expected.

In the exampel below is the field: "DelogueLayers1" a listbox field.

Concat field parametre:
{ProductCategory|Products|DelogueLayers1}: [{ProductCategory|Products|DelogueMaterialPCT1} %]

Output:
LAYER01: 80 % 

Expected output:
Cover: 80 %

 

Listbox field options:

 

Could it be possible to change default behavior, so it returns the 'name' in the language context:

{ProductCategory|Products|DelogueLayers1}
Result: Cover

{ProductCategory|Products|DelogueLayers1.Name}
Result: Cover

{ProductCategory|Products|DelogueLayers1.Value}
Result: LAYER01

 


Replies

 
Søren Jensen Dynamicweb Employee
Søren Jensen
Reply
This post has been marked as an answer

Hi Michael,

We are working on a fix to solve this problem, and hope it will be released soon

/Søren

Votes for this answer: 1
 
Michael Knudsen
Reply

Sounds good Søren, I will look forward to a fix.

Br. Michael Knudsen

 
Michael Knudsen
Reply

Hello Søren,

- the documentation (https://doc.dynamicweb.com/documentation-9/platform/platform-tools/field-types) regarding the ConcatProvider have been updated with the following, but from which version of DW is it implemented?

You can fetch names/values in the following manner:

{ProductCategory|Products|DelogueLayers1.Name}
{ProductCategory|Products|DelogueLayers1.Value}

Br. Michael Knudsen

 
Søren Jensen Dynamicweb Employee
Søren Jensen
Reply
This post has been marked as an answer

Hi Michael,

This feature has been available since DW9.13.9 ..

/Søren

Votes for this answer: 1
 
Michael Knudsen
Reply

Hello Søren,

- it hasn't been implemented, so you can use the .Name or .Value notation in a ConcatProvider field, so could you please add this as a feature request again.
We are happy with the possiblitiy to use either Listbox Name OR Listbox Value in a ConcatProvider field, but we would love to have the option to mix.

You can fetch names/values in the following manner:

{ProductCategory|Products|DelogueLayers1.Name}
{ProductCategory|Products|DelogueLayers1.Value}

Br, Michael Knudsen

 

You must be logged in to post in the forum