cancel
Showing results for 
Search instead for 
Did you mean: 

How to create UoM context for the Quantity data type of your base unit and conversion units.

DavidRSG
Explorer
410

Hello experts!

I am trying to replicate some standard functionalities of the sales orders and I need to create the standard function of in the products where you select a product and change its unit of measure based on its conversions and base unit. Does anyone know how I can achieve it? I am using the standard "Quantity" data type added to an AdvancedListPane. This image shows what

I have added for now:

In this other image it shows the result of the standard object that I want to obtain:

I want to filter only the units of measure that correspond to the product, that is, the base unit and its conversion units. Hope someone can help me.

Best regards!

Update

Investigating further, I found out that you can put a context in fields of type "Code". The unitCode has some context options, including the QuantityTypeCode, but I don't know how to add more than one unit of measure to this data type, so when sending the context, I only retrieve the one for a quantity. If anyone knows how to pass the context of conversion units, I would appreciate it.

Thanks!

View Entire Topic
Reinaud
Explorer
0 Kudos

Hi David,

I don't think this is possible.

What you can do is create a warning / error message to notify the user of the 'wrong' UoM and pass the allowed UoM values in the warning / error message, so the user is informed which values they can choose from.

If anyone does know of a way to limit the code list, I'm happy to learn.

Kind regards,

Reinaud