Developer forum

Forum » PIM » Concatenation Provider Does Not Append Units or Respect Base Unit Conversion in Field Value Groups - DW10

Concatenation Provider Does Not Append Units or Respect Base Unit Conversion in Field Value Groups - DW10

Davy Capiau
Reply

Issue: when using the concatenation provider to concatenate Field value conversion groups, the unit is not added. (DW10)

Example:

Concatenationprovider input:

[
ca. {Lengte_Min|mm} - ][{Lengte_Max|mm} x ][{Breedte_Min|mm} - ][{Breedte_Max|mm} x ][{HoogteDikte_Min|mm} - ][{HoogteDikte_Max|mm}
]

Example field 'Lengte_Min'

Output concatenation field:

ca. 1 - 1.025 x 2.5 x 1 - 4

Expected output:

ca. 1cm - 1.025cm x 2.5cm x 1cm - 4cm

-> 1. Adding the units

-> 2. also following the value 1 that is returned; the base unit of the field conversion is used ('cm') instead of the presentation unit of the attribute itself ('mm'). Expected result: 10mm instead of 1(cm).

Documentation:

I saw the calculation provider allowed to add the unit for the calculation:

Testinput:

[
ca. {Lengte_Min|mm} - ][{Lengte_Max|mm} x ][{Breedte_Min|mm} - ][{Breedte_Max|mm} x ][{HoogteDikte_Min|mm} - ][{HoogteDikte_Max|mm}
]

Testoutput:

No result:


Replies

 
Søren Jensen Dynamicweb Employee
Søren Jensen
Reply

Hi Davy,

Look at below example, where I use Conversion as Default Presentation UNIT, and where I chose to use specific UNIT (like ":m")

Try it on you solution, there have to run on latest version ..

/Søren

----------------------------------------

Concat input expression:

Concat example
Weight [{ProductWeight:g}]
Total height [{Total_height:m}]
Netto weight [{Netto_weight:g}]

Dimension: 
Default WxHxD [{ProductWidth}] x [{ProductHeight}] x [{ProductDepth}]
Meter WxHxD [{ProductWidth:m}] x [{ProductHeight:m}] x [{ProductDepth:m}]

 

Result:

 

 
Davy Capiau
Reply

Hi Soren,

 

Thanks, I'll check it out.

 

Small remark: is the unit addition via the ':' or '|'? The documentation is confusing. I think it's ':' since you show that in your example.

 

 
Søren Jensen Dynamicweb Employee
Søren Jensen
Reply

Hi,

the Unit's delimiter character are ":"

/Søren

 
Davy Capiau
Reply

 

You must be logged in to post in the forum