Skip to main content
4everJang
Legend
June 21, 2017
Answered

Index no longer working in FM2015

  • June 21, 2017
  • 1 reply
  • 875 views

I have a structured FM book containing index markers. The index generates fine, but the hyperlinks do not work. The customer tells me it all worked fine in FM9 but no longer after moving over to FM2015. I tried wrapping the index markers in an indexmarker element but that did not make any difference. Trying the Ctrl+Alt-click in the generated index just brings up an alert that the object specified in the hypertext command cannot be found. Is this a reference page issue?

Thanks for any help. I really need to move on to new projects.

Jang

This topic has been closed for replies.
Correct answer 4everJang

Found the answer myself. Posting it so that others who might get into the same problem have an answer.

The definition of the index entry on the reference page should not include the <$pagenum>, as this is simply concatenated with the <$ObjectId> and then the target cannot be found anymore. The index works again after changing the definition to:

openObjectId <$relfilename>:<$ObjectType>  <$ObjectId>

This changes the marker to:

<Marker

    <MType 8>

    <MTypeName `Hypertext'>

    <MText `openObjectId 1 NL DD2054.fm:1 108975'>

    <MCurrPage `2'>

    <Unique 244570>

> # end of Marker

1 reply

4everJang
4everJangAuthor
Legend
June 21, 2017

More info on the issue:

This is the Level1IX string on the reference page:

openObjectId <$relfilename>:<$ObjectType>  <$ObjectId><$pagenum>

Here is a string in the marker in the generated index (dug out of the MIF file):

<Marker

    <MType 8>

    <MTypeName `Hypertext'>

    <MText `openObjectId 1 NL DD2054.fm:1 10897524'>

    <MCurrPage `2'>

    <Unique 244570>

> # end of Marker

The filename referenced is "1 NL DD2054.fm" and yes, it contains whitespace - could that be the issue? I will try replacing the white spaces with underscores.

4everJang
4everJangAuthorCorrect answer
Legend
June 29, 2017

Found the answer myself. Posting it so that others who might get into the same problem have an answer.

The definition of the index entry on the reference page should not include the <$pagenum>, as this is simply concatenated with the <$ObjectId> and then the target cannot be found anymore. The index works again after changing the definition to:

openObjectId <$relfilename>:<$ObjectType>  <$ObjectId>

This changes the marker to:

<Marker

    <MType 8>

    <MTypeName `Hypertext'>

    <MText `openObjectId 1 NL DD2054.fm:1 108975'>

    <MCurrPage `2'>

    <Unique 244570>

> # end of Marker