Book a Demo

Author Topic: Inconsistent Bookmarking using DocumentElement  (Read 2844 times)

Screwtape

  • EA User
  • **
  • Posts: 93
  • Karma: +4/-0
    • View Profile
Inconsistent Bookmarking using DocumentElement
« on: November 04, 2015, 07:51:46 pm »
Hi!

I had written a script in EA 11 which worked brilliantly. When I called DocumentElement for a full template, it bookmarked the element with it's GUID. In EA 12, it appeared to bookmark the element incorrectly. In 12.1 it's working better again, except where I reference the element more than once.

It appears, that if I have element X referred to (as a custom fragment via a specific template) in the document, and then document element X again using a normal template, the start bookmark is the first time I referred to it, and the end bookmark is the end of the second time I document it.

Is there any way of preventing the engine from bookmarking the references from the custom fragment?
(I manually generate a table which includes bookmarked references to the main entry for the element, which worked beautifully in EA 11, but hasn't worked properly since. The custom fragment reference could be before or after the main entry.)

Any suggestions gratefully received.

Screwtape.
Screwtape