cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X

Translate the entire conversation x

Merge Fields in Word Template export do not work when edited

MM_10991077
12-Amethyst

Merge Fields in Word Template export do not work when edited

Hello all,

export tracker to word using eg. default system template works fine and data are visible.

But it does not work if Merge Field is edited:

 1) { MERGEFIELD  author \* MERGEFORMAT }  -> author is rewritten manually

or

2) { MERGEFIELD  author \* MERGEFORMAT }  to { MERGEFIELD  baseline \* MERGEFORMAT }

 

or manually inserted : Insert tab > Text > Quick parts > Field > Merge field

 

If working Merged Field is copy/past then it works.

 

Is there any special formatting or syntax needed for working with Merged Fields in Word document?

thank you

 

ACCEPTED SOLUTION

Accepted Solutions

Hi @MM_10991077 ,

 

We have some articles regarding to description and Word export:

https://www.ptc.com/en/support/article/CS431288

https://www.ptc.com/en/support/article/CS405694

https://www.ptc.com/en/support/article/CS430570

 

Sadly I cannot identify the issue without more specific data.

Report it on the eSupport page where you can share sensitive data, and we can check this problem more detailed.

View solution in original post

9 REPLIES 9

Hello @MM_10991077 ,

 

I usually manually insert them with the Quick parts > Field function, but without the { MERGEFIELD ... MERGEFORMAT } commands:

EvaBertalan_0-1741705651665.png

 

Hello EvaBertalan,

I did the same but for some reason it is not working.

MM_10991077_0-1741763253928.png

 

the { MERGEFIELD ... MERGEFORMAT } is shown when you press ALT + F9

Below you can find picture with original working merge field and manually inserted via above step.

They look the same but it is not working.

 

MM_10991077_1-1741763411316.png

 

thank you

 

Hi @MM_10991077 ,

 

Sorry, I cannot reproduce this.

Are you sure, you change it back with ALT + F9 on the exported document to see the actual result?

Hi @MM_10991077 ,

 

What is the version of MS Word you use?

Is it a desktop application, or an online application?

What is your operating system? Windows? Mac? Linux?

Hello EvaBertalan,

yes, I change it back with ALT + F9.

We use Office365 running on Windows 11 machine.

What confuse me is that it stop works when edit working merge field.

Pure open and close field window is enough.

 

MM_10991077_0-1741864546162.png

MM_10991077_1-1741864580314.png

 

MM_10991077_3-1741864754130.png

 

result:

MM_10991077_4-1741864776660.png

 

 

 

 

Hi @MM_10991077 ,

 

Mergefields are processed during the Codebeamer export.

They won't be evaluated if you change them in the exported document.

Try to change them in the template document.

See: https://support.ptc.com/help/codebeamer/r2.2/en/index.html#page/codebeamer/user_guide/ug_merge_fields_export.html#

Hello @EvaBertalan ,

I downloaded systems templates from: $CB_HOME/tomcat/webapps/cb/exporttemplates/Trackers

Templates work fine.

Below is example for tracker:

MM_10991077_0-1742553910370.png

 

 

I made a copy of "template-items-all.docx" and delete all fields except Description (line 1).

Then created same merged field (Description mine).

 

MM_10991077_2-1742554342394.png

 

 

And copy original description from first line (Description copied).

Made export to office:

MM_10991077_3-1742554404499.png

Result is below:

 

MM_10991077_1-1742554290849.png

There is also second issue.

I am not able to populate data from header in blue square on the first picture.

 

thank you

Hi @MM_10991077 ,

 

We have some articles regarding to description and Word export:

https://www.ptc.com/en/support/article/CS431288

https://www.ptc.com/en/support/article/CS405694

https://www.ptc.com/en/support/article/CS430570

 

Sadly I cannot identify the issue without more specific data.

Report it on the eSupport page where you can share sensitive data, and we can check this problem more detailed.

Hello @EvaBertalan ,
I will report it on the eSupport.

thank you

Announcements


Top Tags