maintattribute Element

 

Content

maintattribute Element

Description

Example

Properties

Adding a maintattribute Element

Description

The maintattribute Element maintains Attribute details on SDI Maintenance pages.

Example

See Attributes for examples.

maintattribute Element Properties

Property Name Description
SDC Id Identifier of the SDC being maintained by the Maintenance page.
Maintenance Mode Mode of operation:
Property Name Description
AdhocAdds an adhoc detail (see Attributes → Adding Attributes Directly to SDIs).
LinkAdds a linked detail (see Attributes → Adding Linked Attributes). Selecting this shows the "Information Mode" (below).
TemplateAdds a template detail (see Attributes → Adding Attributes to SDI Templates).
Information Mode Determines the display mode of Attributes linked to LES Worksheets. See Attributes → Attribute Integration in LES.
Tab Properties of the tab that adds and maintains the Attributes.
Property Name Description
ShowYes (default) displays the Element.
TextText displayed in the tab header.
WidthWidth of the tab in pixels (defaults to the size of the tab).
body WidthWidth of the content body (text area beneath the tab). The default is 100%.
body HeightFixed height of the content body. A scrollbar is added as required.
ExpandableYes (default) allows the tab to be expanded and collapsed. No disables this feature and the tab is always expanded.
ExpandedYes (default) initially expands the tab if Expandable property is set to Yes.
HighlightYes (default) highlights the tab on a mouseover event. The CSS defines this.
TipHelp text to appear on mouseover.
IdIdentifier of the Element (defaults to the Element name).
FunctionOptional JavaScript function to execute.
GroupDefines a tab group. See Tab Groups and Field Groups in the maint Element.
Required as Mandatory This determines behavior of the "Required" option (see the example in Adding Linked Attributes):
"Yes" prevents the SDI Maintenance page from saving unless all Attributes marked "Required" have a value.
Set this to "No" when you want custom business rules to determine which operations require an Attribute value and which do not. This is useful for situations such as when a business rule checks and validates the Attribute value when an SDI is saved or when Data Entry is performed, with the condition that saving the SDI will not require an Attribute value, whereas execution of an Action will. For example, suppose a Sample has an Attribute that is required only when performing Data Entry. When data are entered, your custom Sample business rule validates the existence of the Attribute value. However, when the Sample is edited and saved, the Sample Maintenance page does not validate the existence of the Attribute value.
Viewonly "Yes" indicates that the detail is read-only.
Target SDC Filter Semicolon-delimited list of SDCs to show in the Element. If left blank, the Element will show all SDCs. This will filter SDCs only where copy-down is defined.
Enable Dynamic Audit Determines if "Dynamic Auditing" is enabled for the Page Type. See Dynamic Auditing for a complete description of this feature with examples.

Alternatively, this property can be left blank, in which case the "Enable Dynamic Audit" property setting in the maint Element or MaintenanceForm Page Type is used.

Adding a maintattribute Element

See Attributes for information about how all of this should work. This example shows how Product and Sample are setup for Linked Attributes.

Setup the SDC and Attributes Master List:

1. Setup the SDC and Attributes Master List for both the child and parent SDCs (we use Sample and Product for this example, respectively).

Setup the Maintenance page for the child (target) SDC:

1. Edit the Maintenance page for the child (target) SDC (we use SampleMaint in this example).
2. Add the maintattribute Element to the page. For the Element Id, use "adhocattributes".

3. In the maintattribute Element, set the "Maintenance Mode" to "Adhoc", then set the "SDC Id" to the current SDC (which is "Sample" in this example).

4.

Add the Element into the MaintenanceForm Page Type Elements collection. For the "adhocattributes" property, set "Include in Request" to "Yes".

Setup the Maintenance page for the parent SDC (the screens are the same as the previous steps except for the property names as described below):

1. Edit the Maintenance page for the parent SDC (we use ProductMaint in this example).
2. Add the maintattribute Element to the page. For the Element Id, use "adhocattributes".
3. Select the Adhoc custom node for the Element.
4. In the maintattribute Element, set the "Maintenance Mode" to "Adhoc", then set the "SDC Id" to the current SDC (which is "Product" in this example).
5. Add another maintattribute Element to the page. For the Element Id, use "linkattributes".
6. In the maintattribute Element, set the "Maintenance Mode" to "Linked", then set the "SDC Id" to the current SDC (which is "Product" in this example).
7. Add both Elements into the MaintenanceForm Page Type Elements collection. Set "Include in Request" to "Yes" for both Elements.