Methods - HxGN EAM - 12.1.1 - Customization & Programming - Hexagon

HxGN EAM Web Services Toolkit Programmer

Language
English
Product
HxGN EAM
Search by Category
Customization & Programming
HxGN EAM Version
12.1.1
  • GetValue - Given an instantiated object and a fieldname, this method will return the value stored by that field as a string.

  • Example - Assume you have an instance of WorkOrderData named WO. To read the value of the status code, you would call FieldAccess.GetValue(WO, Codes.Status), which will return the value or Nothing if the value has not been defined.

  • SetValue - Given an instantiated object, a fieldname, and a value, this method will attempt to set the field to the value given.

  • Example - Assume you have an instance of WorkOrderData named WO. To set the value of the equipment organization, you would call FieldAccess.SetValue(WO, Equipment.Org, ORG1), which will set the value to ORG1.

  • GetFieldWithForcedInstantiation

See Appendix B - Diagrams.