Article - CS197063

ScriptRelationshipBean - getCreatedDate() method does not work in Integrity Lifecycle Manager

Modified: 25-Aug-2018   


Applies To

  • PTC RV&S (formerly Integrity Lifecycle Manager) 2009 to 11.2

Description

  • ScriptRelationshipBean - getCreatedDate() method does not work
  • Example scenario:
    • Create two items: item1 and item2
    • Relate item1 to item2 via a relationship field, can be relField
    • View item1 to verify relationship exists between two items
    • Create a new trigger to fire when item1 is edited, it should run the following script (PRE trigger)
      • var serverBean = bsf.lookupBean("imServerBean");
      • var environmentBean = bsf.lookupBean("siEnvironmentBean");
      • var delta = bsf.lookupBean("imIssueDeltaBean");
      • var relBean = delta.getRelationshipFieldBeans("relField");
      • environmentBean.abortScript(relBean[0].getCreatedDate(), true);
    • Edit item1 modifying, modifying a summary field
    • Expected result:
      • Date that item1 was related to item2
    • Actual result:
      • null
This is a printer-friendly version of Article 197063 and may be out of date. For the latest version click CS197063