Developer forum

Forum » PIM » Concat fields with multiple fields per line

Concat fields with multiple fields per line

Michael Knudsen
Reply

Hello forum,

- any concat sharks out there?  I'm strugling with formatting a concat field, so I hope to get some help here.

I have two product category fields, which should result in 4 different outcome in a concat field.

#1: None of the fields are filled-in:
Result: ""

#2: TankWasteWaterNo is filled-in, but TankWasteWaterCapacity is empty:
Result: ""

#3: TankWasteWaterNo is filled-in and TankWasteWaterCapacity is filled-in:
Result: "Spildevandstank: 2 stk. 1.500 l"

#4: TankWasteWaterNo is empty and TankWasteWaterCapacity is filled-in:
Result: "Spildevandstank: 1.500 l"

Currently my concat field looks like:
"Spildevandstank: [{ProductCategory|Toilet|TankWasteWaterNo} stk. ][{ProductCategory|Toilet|TankWasteWaterCapacity} l]"

Currently results:
#1: "Spildevandstank: " (not ok)
#2: "Spildevandstank: 2 stk." (not ok)
#3: "Spildevandstank: 2 stk. 1.500 l" (ok)
#4: "Spildevandstank: 1.500 l" (ok)


Br. Michael Knudsen


Replies

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

Hi Michael,

Above has been tested, and we have extended function to support nested OptionalBlocks ([ ... ]) in template expressions.

As soon it has been tested, it will be implemented in our release (Feature #25697)

/Søren

Votes for this answer: 1
 
Søren Jensen Dynamicweb Employee
Søren Jensen
Reply

Hi Michael,

Above feature are implemented in new DW10 release (R0)

/Søren

 
Michael Knudsen
Reply

Thanks Søren, I'll make a test assp.

Br. Michael Knudsen

 

You must be logged in to post in the forum