Layout DXL

Layout DXL is used to populate a column within a DOORS view, typically to construct traceability or impact analysis reports. Layout DXL programs run in a context where the variable obj is pre-declared. The code calculates the value to display for each object. The current object to calculate is referred to as obj.

Recreating the Main Column

The following layout DXL displays the object heading and text in the same format as the main column.

// 	Recreate Main Column in Layout DXL

/*
	Layout DXL to display the Object Heading and Text
	in the same format as the main column.

   	Tony Goodman
*/

if (obj."Object Heading" "" != "")
{
	font(getCanvas, level(obj), HeadingsFont)
	displayRich(number(obj) " " obj."Object Heading" "")
}

if (obj."Object Text" "" != "")
{
	font(getCanvas, level(obj), TextFont)
	displayRich(richTextWithOle(obj."Object Text"))
}

Check Module for Bad Layout DXL

layout12It is common for modules to contain layout DXL columns that cause DXL errors when the view is loaded. This may be due to #included files being removed or because of syntax errors in the layout DXL itself. Most frustrating is when the default view for the module contains a column that causes DXL errors. This prevents scripts from running unattended. This function scans a module for layout DXL and reports any errors that are found.
View Source Code