Introduction
Producing reports or other documents has now become much easier and more efficient. By creating a file template containing bookmarks that correspond to room metadata or the active folder's field names, the system can automatically populate the bookmarked fields in the template file with the corresponding entry field values. This is also referred to as merging of metadata.
Currently, the only file type supported is Open office Word (.docx).
Create a file template
- Create a file template in Word
- Place the cursor where you want the bookmark to be included in the template file
- Select Insert > Quick Parts > Field
- Choose the Mail Merge from the Categories drop-down
- Select MergeField in the Field names list
- Type a $ sign followed by the name of the entry field inside curly brackets in the Field properties > 6a. To use room metadata add the room metadata ID followed by _Room inside the brackets, e.g. ${Projectno_Room} or ${Contractno_Room}
6b. To use an active folder field add field name, e.g. ${EntryID} or ${Title} - Click the OK button to add the bookmark to the template
Note: The main rule for converting metadata field names to bookmarks is simple:
Use the same name but remove all non-alphanumeric characters like dots ("."), blanks (" "), hyphens ("-") and other special characters. Scandinavian characters in custom field names are supported.
- Example: Suppose you have a custom field called "Tel. No." in the folder definition. The corresponding bookmark will then have to be named "TelNo".
- The field is case sensitive.
Common fields that are created automatically in Interaxo Project, such as «Owner», «Created» or «Created by», can be inserted in the template file by using the following bookmarks:
- CreatedBy
- Created
- ChangedBy
- Changed
- CurrentDate
- CurrentUser
- Owner
- RoomShortname
- RoomTitle
- RoomDescription
- CommunityId
- CommunityName
- CommunityProject
Upload the file template to Interaxo Project
- Upload the template you created to File templates using the Interaxo Project Admin client
- In the Interaxo Project Web client, create an entry which will be merged with your template file
Note: Create the entry and save it before you upload the template file as an attachment to the entry
- Navigate to the desired entry
- Click the New > File from template button
- Select the appropriate file template
- Enter a file name for the document
- Tick the «Copy metadata from entry to template» check box and
- Click the Ok button
- Verify that the new report has been created as an attachment to the entry
Change bookmarks in a template file
- Select the bookmark you want to change
- Right-click and select Enable / Disable Field Codes
- Rename the bookmark
- Example: {MERGEFIELD $ {Change this} \ * MERGEFORMAT}
- Right-click again and select Update Field
- Save the file and upload it again under File templates in the Administration client
Note: Discrepancies between different versions of MS Word may occur
Comments
0 comments
Article is closed for comments.