Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

Linking A Stored File In A Container


This topic is 6869 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I am trying to create a link to files stored in container fields.

What I want is for the customer to see the record on the web and be able to click on the "link" to the stored file and have that start downloading.

I have worked out what the link is, if I put it in the browser it downloads everytime. I just don't want people to have to cut and paste this into the browser.

The link is stored in a calculation field in the database. I currently have this appear on the xml layout for the record.

If you need more info let me know, but I think this covers it.

Any help?

Posted

Ok. Now in the file that should display your download file link, add the two lines I have given before at place where the link should be shown.

The XPath is a path that locates the correct element in the XML tree that is returned by the web publishing engine.

An example (for the fmresultset grammar) would be:

/fmrs:fmresultset/fmrs:resultset/fmrs:record[1]/fmrs:field[@name = 'url_calc']/fmrs:data[1]

which addresses

the first repetition (fmrs:data[1])

of the field with name url_calc (fmrs:field[@name = 'url_calc'])

of the first record (fmrs:record[1])

of the result set you got (fmrs:resultset)

within the fmrs:fmresultset root element (fmrs:fmresultset)

Posted

So i am looking at something like this:

Download

It's still not working, i've detailed a bit more on what I am working with below:

Database Name: Results

Layout Name: Tests

Table Name: Tests

Field Name: Report (this is where the calculation is stored linking to the container field file)

Any more help you can give is much appreciated! I am new to XML and really have no idea about the language.

  • Newbies
Posted

I tried the solution and it is only picking up the value from the first record. Is there a way to make the code work on a list of records?

This topic is 6869 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.