# Office Suite

## Creating an own Office Suite Document Type

| The Office Suite is based on the document type "OFFICE_DOC" by default. Since the Office Suite version 4.1 it is possible to manage several document types. The actions "Check in existing File" of the Office Suite toolbar respective the command "Saving/Opening Agile-PLM" of the Office application open a dynamic menu to choose the specific document type.
| The dynamic menu will be defined by the default "GDM-DOCTYP" (standard value EDB-GDM-OPEN-DOC). The default GDM-DOCTYP interacts with the default GDM-DOCUSX which has to be set to the value MENU.
| The standard button menu EDB-GDM-TLB-SET (Office Suite toolbar) has to be enlarged with a selection for the new document type. The dynamic standard menus EDB-GDM-OPEN-DOC and EDB-GDM-OPEN-DOC-DDE have to be extended with a selection for the new document type.
| Some LogiView procedures use <GDM-DOCTYPE>-DDE for the identification of the dynamic menu!
| The following Office Suite configuration parameters have to be copied for the new document type: -GDM_WRK_TIT_1, 1,CRE -GDM_WRK_TIT_1, 1,TAB -GDM_WRK_TIT_2, 2,COM -GDM_WRK_TIT_2, 3,TAB
| Best practice
| Copy both the standard table T_DOC_GDM and the standard masks EDB-DOC-GDM-TFG and EDB-DOC-GDM-TLI.
| This has the advantage that all required mask triggers, field definitions and the Office Suite menu are also copied.
| Adapt the fields T_DOC_GDM.*** to the new type specific fields inside the new masks and their mask components.
| Copy and adapt the "TABT" standard menu EDB-GDM-BUT-CFN for the new Office Suite type.
| Expand the mentioned standard menu with a selection of the new document type.
| Copy and adapt the Office Suite configuration parameters for the new Office Suite type.
| Create templates for the property exchange.
| Property Exchange
| Create an application template for the new document type (System>OFS>Property Exchange).
| Create a template named like the application template
| Configure the mapping of the Office application properties with the fields of the new document type table.