Creating and configuring additional contract types
In the Contract types area you can add further configuration parameters to the stored contract types.
You can create additional lists, such as "Costs", for certain contract types.
Please also refer to the following chapters:
Creating contract types
Contracts can be classified by contract types. It is possible to assign different fields to the contract types.
Create the term:
Open the Site settings.
Open the Term Store Management under Site Administration.
In the Term Store Management Tool open the TAXONOMY TERM STORE of the site collection.
Select the term set ecsContractTypeTerm.
Create a new term by clicking on the term set ecsContractTypeTerm and selecting Create term
Enter a new name for the term.
Optional: Assign a default label for additional languages by selecting the appropriate language.
Save the new term.
Delete the site data from the memory of your web browser to directly display the changed configuration.
Assigning specific fields to contract types
This step is optional.
It is assumed that the SharePoint columns have already been created previously at the main level of the site collection. Please refer to the chapter Which field types are supported in d.velop contracts for Microsoft 365? in the FAQ.
Open the Site settings.
Open Site content types under Web Designer Galleries.
Select Create.
Assign the following properties:
Name: Any name.
Description: Any description.
Select parent content type from: ecsContract.
Parent content type: ecsContractContentType.
Save this site content type. Select an existing group or create a new group.
You will be redirected to the administration page of the new site content type.
Select Add from existing site columns and add the desired columns.
Define the site content type in the previously created term in the Term Store Management Tool.
Store content type in the Term Store Management Tool:
Open the Site settings.
Open the Term Store Management under Site Administration.
In the Term Store Management Tool open the TAXONOMY TERM STORE of the site collection.
Select the term set ecsContractTypeTerm.
Select the term created in the step above.
In the Custom Properties tab, add the Local property with the property name ContentType with the value of the title of the site content type you created in the previous step.
Save the new term.
Delete the site data from the memory of your web browser to display the changed configuration directly.
Add the site content type to the existing contract libraries:
Open the settings of the document library Contracts0.
Select Add from existing site content types below the Content types.
Select the Site content type from the Available site content types and add it.
Confirm the selection with OK.
Repeat this process for all libraries whose name begins with Contracts.
Parameter for configuring contract types
You can make the following settings for each contract type:
applyToContractTypeTermIds: The expression IDs (Term IDs), of the contract types to which the customLists are added. You can find the ID of the expression in the terminology memory management.
customLists:
listName: The name of the list, without the number at the end.
Create the following lists for the sample configuration:
CustomNotes0
CustomNotes1
ecsCosts0
ecsCosts1
isList: This parameter must currently always be "true".
documentDetails: This section refers to the document list within the contract view.
additionalFields: Additional fields for the document list are configured here.
name: Internal name of the field to be displayed in addition.
orderby: Can be optionally specified to customize the default sorting of documents in a contract.
fieldname: Internal name of the field to sort by.
direction: Specifies whether to sort in ascending ("asc") or descending ("desc") order.
See also the chapter Including additional lists.
Example of configuring contract types
In this sample configuration for the contract types, you will learn how to add more lists to the contract types. These lists are displayed when viewing the contract.
Example configuration for contract types
[ { "applyToContractTypeTermIds": [ "c607e213-fbe1-40f2-test-3ebee18dfbd8", "0ebfda0f-046a-479c-test-eca81328c367" ], "customLists": [ { "listName": "ecsCosts", "isList": true } ] }, { "applyToContractTypeTermIds": [ "6a2fbb47-56b3-4649-test-c182b9b0863c" ], "customLists": [ { "listName": "CustomNotes", "isList": true } ], "documentDetails": { "additionalFields": [ { "name": "Created" }, { "name": "Modified" } ], "orderby": { "fieldname": "Modified", "direction": "ascending" } } } ]
Create the lists as described in the chapter Including additional lists.