Skip to content

Allows assigning UOMs based on locale and converts values based on user's locale

License

Notifications You must be signed in to change notification settings

kaftab/UOMConversion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 

Repository files navigation

UOMConversion

The project allows adding locale based standard units to properties of any ItemType. Property values are converted to be displayed in the units of the browser locale. A sample application to the Part ItemType is included in the package

Part in US Locale:

image

Same Part in French Locale:

image

Project Details

Built Using: Aras 11.0 SP11

Browsers Tested: Internet Explorer 11, Chrome

Though built and tested using Aras 11.0 SP11, this project should function in older releases of Aras 11.0 and Aras 10.0.

Installation

Important!

Always back up your code tree and database before applying an import package or code tree patch!

Pre-requisites

  1. Aras Innovator installed (version 11.0 SPx preferred)
  2. Aras Package Import tool

Install Steps

  1. Backup your database and store the BAK file in a safe place.
  2. Open up the Aras Package Import tool.
  3. Enter your login credentials and click Login
    • Note: You must login as root for the package import to succeed!
  4. Enter the package name in the TargetRelease field.
    • Optional: Enter a description in the Description field.
  5. Enter the path to your local ..\UOMConversion\Import\imports.mf file in the Manifest File field.
  6. Select Select All Packages in the Available for Import field.
  7. Select Type = Merge and Mode = Thorough Mode.
  8. Click Import in the top left corner.
  9. Close the Aras Package Import tool.

Steps for Configuration (A sample configuration is included in the package)

Modify the ItemType that needs the convertible properties

  1. Add dimensional property(s) to the itemtype and form
  2. Add a UOM property to the itemtype and form, set a default value (used when locale is not defined)
  3. Make the UOM property “Disabled” on the form
  4. Ensure UOM property “Name” is same as the Data Source name

image

image

image

Add method “UOM_OnFormPopulated” to the form “onFormPopulated” event

image

Ensure that the List "UOM" has all the units you want to use

image

Ensure that the List "UOM Multipliers" has all the conversions for the units you want to use

image

Create a new UnitConversion item

  1. Administration --> Unit Conversion --> File --> New
  2. Select the itemtype that this applies to
  3. Select the UOM property this applies to
  4. On “Locale Units”, define a standard unit for each locale
  5. On “Associated Properties”, add properties associated with this UOM

image

image

image

About

Allows assigning UOMs based on locale and converts values based on user's locale

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published