Administration: Mask File Configurations for the New Component Request Wizard and Properties Tab

An Administrator can configure mask files to specify the attributes that display in the New Component Request wizard and in the component request Properties tab in the Information panel.

Administrators can specify:

  • The list of authorized values for custom attributes.
  • The properties that are mandatory or optional.
  • The attributes that you want to display or hide.

This page discusses:

Extension and Type Sections

An Administrator can configure the settings used in the type and extension mask files in JSON format.

  • To configure the required settings in the type mask JSON file, open the SRCComponentRequest.json file located in "/resources/sourcing/bus/".

    You can configure these component request types. The syntax column shows how to refer to the type in the mask file.

    Type Syntax
    Description description
    Due Date duedate
    Input Items impactedItem
    Context Project SRCREQUEST.Context Project
    Context Product contextProduct
    Context Plant contextPlant
    Development Reason SRC Development Reason
    Development Plan Date SRC Development Plan Date
    Comments SRCREQUEST.Comments
    Part Source Source.SRC Part Source
    Attachments Source.document_ID

  • To configure the required settings in the extension mask JSON file, open the <name of the interface>.json file located in "/resources/sourcing/itf/". For example, CRQCRQ_DEP_EXT1.json file.

Mask File Settings

This section contains the settings used to customize the behavior of both the Properties tab in the Information panel and the attributes in the New Component Request wizard.

Setting Data Description
authorizedValues Array Specifies the possible values for the attribute.

If a list is already defined in the database, then you can use this parameter to limit the possible values.

If there are no authorized values in the database, you can specify any value.

hidden Boolean Hides the attributes.

If set to true, the attribute does not display. If set to false, the attribute displays.

status String Specifies the editing status of the attribute.

If set to RO, the attribute is read-only. If set to RW, the attribute is editable.

By default, the value is RW.
mandatory Boolean Specifies whether the attribute is mandatory or not.

If set to true, the attribute is required. If set to false, the attribute is not required.

By default, the attribute is false.

Example

This section contains an example to customize the behavior of both the Properties tab in the Information panel and the attributes in the New Component Request wizard.

This code snippet shows the syntax for configuring the Due Date as editable and mandatory in the type mask file SRCComponentRequest.json file.

{
    "attributes":[
        {
            "name": "duedate",
            "status": "RW",
	      "mandatory":true
        }			
    ],
}

This section contains the structure for the extension: CRQCRQ_DEP_EXT1.json file.

{
    "attributes":[
            {
                "name": "CRQCRQ_DEP_EXT1_Attr5",
                "status": "RW",
                "mandatory": true,
		   "authorizedValues": [
                    "1",
                    "2",
                    "3",
                    "4"
                ],
                "hidden": false
            }
}