Developer forum

Forum » PIM » Weight unit calculation

Weight unit calculation

Michael Knudsen
Reply

Hello forum,

- is it possible with one of the custom field providers to show product weight in either kg or gram based on value in {ProductWeight} ?  Currently is weight from Business Central and always in kg, but showing product weight as "0.050 kg" isn't very user friendly.

Would something like this be possible?
If {ProductWeight} >= 1 then display "Weight: {ProductWeight} kg" eg. "Weight: 125 kg"
If {ProductWeight} < 1 then display "Weight: {ProductWeight} gram" eg. "Weight: 50 gram"

I have been looking into the documentation, but someone might have a hidden gem regarding building a formula that solves my issue?
https://doc.dynamicweb.com/documentation-9/platform/platform-tools/field-types#sideNavTitle1-1

Br. Michael Knudsen


Replies

 
Michael Knudsen
Reply

*** bump ***

I'm missing a response... Dynamicweb or perhaps Søren Jensen?

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

Hi Michael,

Feature request has been created (#7655), but are not prioritized yet..

/Søren

Votes for this answer: 1

 

You must be logged in to post in the forum