Skip to main content
Solved

Hyperlinks using a dynamic excel writer


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.

View original
Did this help you find an answer to your question?

4 replies

ebygomm
Influencer
Forum|alt.badge.img+31
  • 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+31
  • Influencer
  • April 24, 2019
lars_de_vries wrote:

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:)


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings