Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Hull and Outfitting

Example to Set and Get Status Data

  • Last UpdatedDec 15, 2023
  • 1 minute read

The example assigns Design Status to an equipment item then promotes it with a comment. Then it gets the status data and returns the status value, description, number and comment. The comment comes direct from the assigned status object, but the other values are via the reference to the status value object.

!status = object status('/DesignStatus')

!status.assign('/E1301')

!status.promote('/E1301', 'Ready for checking')

!currentStatus = object assignedStatus('/DesignStatus',

    '/E1301')

!valueName = !currentStatus.currentValue().name()

!description = !currentStatus.currentValue().description()

!number = !currentStatus.currentValue().number()

!comment = !currentStatus.comment()

TitleResults for “How to create a CRG?”Also Available in