question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to properly use the URLFormatter tag that was just introduced?

See original GitHub issue

So I have saved a string in my database for the upload path, and use the FileUploadEditor to upload it in MyEntRow.cs. In MyEntColumn.cs I’m using URLFormatter so that I can just have the users click the link and the pdf opens in another tab. The issue that I’m running into is when I click the button I don’t get the document because the string and the document path do not match.

If I hover over the ‘view’ link in MyEntColumn.cs the path it’s searching for is localhost:123//CommCenter/Kb/Kb/General/000.....pdf

But I need it to search for localhost:123/upload/Kb/General/000.....pdfI can view the document if it to edit, but not everyone will be able to modify.

Any idea how to resolve?

Love the new updates by the way!

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
volkanceylancommented, May 15, 2016

UrlFormatter(UrlFormat=“~/upload/{0}”)

0reactions
volkanceylancommented, May 15, 2016

There are not so many actually. Most are documented or sampled. Some are in wiki.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add a URL formatter for the image field [#2517030]
A URL only formatter is needed for Field based REST displays in views. Proposed resolution Add a URL formatter for images.
Read more >
Get Parameters Not returning correctly when using desired ...
1 Answer 1 · But try it again with /support/about.php? · Copied what you got verbatim and same thing. /support/about.php? · Have you...
Read more >
Get image's URL as a token for use in Views' replacement ...
When I try to export the thumbnail image as a link using the larger image's token, the token is apparently the <img> tag...
Read more >
jqGrid RESTful URL formatter - Ben Thurley - WordPress.com
First I had a look at the documentation to see what jqGrid has out of the box. There is a formatter called 'link'...
Read more >
Endeca Sitemap Generator: Developer's Guide
To properly generate search engine optimized URLs, you should use the SeoUrlFormatter class in your Assembler application. To copy URL configuration settings ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found