Skip to main content
10-Marble
January 5, 2021
Question

Determining section level in Javascript?

  • January 5, 2021
  • 0 replies
  • 848 views

Hey all,

I've created a custom trigger to do some cleanup after importing a reqif file from DOORS into Windchill. The script grabs the document container, walks through the contains field using walkHeirarchy(), then modifies a couple of the fields in each record.

Is is possible to determine what section level an item is at?  So I need to do something different if a Heading is Section 1 vs Section 1.2.3 for example.