I need to include the document filename in the header on the title page.
I've inserted a Field box from the RPE template palette in the right location, and in Properties > Formatting > specific > field type I've put Filename and in Properties > Formatting > specific > field code I've put FILENAME \* Lower \* MERGEFORMAT.
The filename is supposed to appear in parantheses, so on either side of the field box I've got a text box that contains a left and right parenthesis. The parentheses appear in the output, but there's nothing between them that suggests the presence of the field.
I might have the code wrong . . . or something else wrong . . . but I also wonder if RPE knows what the filename is when it's querying for the field? Is RPE able to make any connection between the filename field and the filename that appears in the RPE specification's target path for the RPE output?
I have a post-RPE macro that updates the fields in the document twice; the second time is to catch the correct number of total pages, which might have changed after the first update. I'm thinking that if the field is in place in the output, it would be updated during this second update.
I'll appreciate any comments or suggestions on this topic.