How to use parametrized links with EAM Light

Introduction

This feature allows to load the entity screens Work Orders, Assets, Positions, Systems and Parts with pre-filled fields by using parameters in the URL.

The format of the URL is as follows:

https://eamlight.cern.ch/<pageName>?<parameter1>=<value1>&<parameter2>=<value2>…&<parameterN>=<valueN>

Where:

  • https://eamlight.cern.ch/ is the root URL to access the application
  • <pageName> specifies the screen in the application. Possible values are:
    • workorder
    • asset
    • position
    • system
    • part
  • <parameterN> is the code of the parameter to be posted
  • <valueN> is the value for the parameter.

Please note that the character “?” in the URL starts the part of the URL containing the parameters part, that each parameter/value pair is linked by the equal sign and that the character “&” separates the parameter/value pairs.

An example of a parametrized URL:

https://eamlight.cern.ch/workorder?description=Test%20WorkOrder&statuscode=R&typecode=CD&prioritycode=M&equipmentcode=E0104RTN08

If the value contains spaces or one of the characters “?”,”=” or “&”, they need to be encoded. Space is encoded as “%20”
The available parameters are listed below by entity.

Possible Parameters

Work Orders

Parameter CodeComments
descriptionDescription of the Work Order
classcodeWO class
statuscodeStatus code (e.g. R, RA,RDT)
typecodeWO type code (e.g. CD, EX)
departmentcodeService unit code
equipmentcode
locationcode
prioritycodee.g. L, M, H
reporteddateFormat dd-MMM-yyyy. Example 25-MAY-2017
requestedstartdateFormat dd-MMM-yyyy. Example 25-MAY-2017
requestedenddateFormat dd-MMM-yyyy. Example 25-MAY-2017
schedulingstartdateFormat dd-MMM-yyyy. Example 25-MAY-2017
schedulingenddateFormat dd-MMM-yyyy. Example 25-MAY-2017
startdateFormat dd-MMM-yyyy. Example 25-MAY-2017
completeddateFormat dd-MMM-yyyy. Example 25-MAY-2017
problemcode
failurecode
causecode
actioncode
costcodeValid CERN budget code
assignedby
reportedbyValid CERN ID
assignedtoValid CERN ID
standardwoStandard work order code

Assets Positions Systems

Parameter CodeComment
description
aliasUnique secondary code
classcode
categorycode
statuscodeStatus code (e.g. I)
departmentcodeService unit code
commissiondateFormat dd-MMM-yyyy. Example 25-MAY-2017
assignedtoValid CERN ID
criticality
partcode
manufacturercode
model
serialnumber
hierachyassetcode
hierarchypositioncode
hierarchylocationcode

Parts

Parameter CodeComments
description
uomUnit of measure code (e.g. pce)
classcode
categorycode
trackingmethod
commoditycode
trackbyassetPossible values: “true”, “false”
trackcoresPossible values: “true”, “false”

Additional parameters applicable for all screens

Parameter CodeComments
udfchar01 etc.
udfdate01 etc.Format dd-MMM-yyyy
udfnum01 etc.
udfchkbox01 etcValues can be “true” or “false”
<custom field code>The classcode is required when adding custom fields

An example of a URL with a custom field is: