Jump to content

Open App Parameter File in Browser


Recommended Posts

This probably isn't possible, but thought I'd ask anyways. In my application, I have several App Parameters that are saved files. I have these App Parameters embedded into anchor tags like so:

<a id="obeRelCW" class="hideLinks" href="[@app:OBE_Rel_CW/]">Reliance CW Detail</a>
<a id="ElcoTO" class="hideLinks" href="[@app:ElcoTO]" target="_blank">Elco Detail PDF</a>

When one of these links are clicked, the file in the App Parameter is downloaded automatically. 

I am trying to make it so it opens in the browser instead of downloading the file each time. Something similar to the Download Options for PDFs on a datapage, where you can select either Download or Open in Browser.

I've tried adding target="_blank", which successfully opens up another tab, but just for a split second. Then the file is downloaded. 

Any ideas?

Link to comment
Share on other sites

Hi, @kpcollier. I suggest embedding the app parameter files on an HTML datapage using their article: https://howto.caspio.com/tech-tips-and-articles/tech-tip-embed-documents-in-datapages/, then use the datapage URL on your href with the target="_blank".

Or use the Google document viewer to the href. Your link will be like this: 

<a href="https://docs.google.com/gview?url=[@app:File/]&embedded=true" target="_blank">Reliance CW Detail</a>

 

-Potato

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...