Skip to main content
Solved

Hyperlinks using a dynamic excel writer

  • April 24, 2019
  • 4 replies
  • 129 views

krisvesweco
Contributor
Forum|alt.badge.img+4

I cannot get hyperlinks to work when using a dynamic excel writer using schema. This is how I hook the hyperlink up to the file_path field.

Basically just creating a new attribute as suggested in the manual: file_path.hyperlink

I get no errors but there are no hyperlinks in the written excel-file.

Does anyone have a workaround for this?

Best answer by ebygomm

I think the problem will be that your schema doesn't reference the file_path.hyperlink attribute so it does not get written out. You would need to amend the schema to include the file_path.hyperlink for the attribute to be written out. This may not be straightforward, depending on your workflow.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

4 replies

ebygomm
Influencer
Forum|alt.badge.img+46
  • Influencer
  • Best Answer
  • April 24, 2019

I think the problem will be that your schema doesn't reference the file_path.hyperlink attribute so it does not get written out. You would need to amend the schema to include the file_path.hyperlink for the attribute to be written out. This may not be straightforward, depending on your workflow.


lars_de_vries
Forum|alt.badge.img+10

Up to my knowledge, a local file reference uses three forward slashes, like file:///

Maybe that'll help as well. And have a look at this post. Especially the answer by @takashi at the bottom of the post. In short, only have the file_path as an attribute in your writer.


ebygomm
Influencer
Forum|alt.badge.img+46
  • Influencer
  • April 24, 2019

Up to my knowledge, a local file reference uses three forward slashes, like file:///

Maybe that'll help as well. And have a look at this post. Especially the answer by @takashi at the bottom of the post. In short, only have the file_path as an attribute in your writer.

I don't know whether something has changed, but in my experience the hyperlink doesn't work unless you set it on the writer

hyperlink.fmw


krisvesweco
Contributor
Forum|alt.badge.img+4
  • Author
  • Contributor
  • April 24, 2019

Thanks guys! If I set the file_path.hyperlink in the schema file the hyperlink was written.

Now I have big problems getting the hyperlinks with foreign characters such as åäö to work in the hyperlinks, somehow excel dislikes these characters in a folder path. I tried many different combinations and none seems to work so far:)