Home
Analytics
Embed a dynamic, external hyperlink in some text
michaelmmarks
<p>I have in my data a URL pointing to an external site. I try to embed this URL as part of an HTML hyperlink, but the result when rendered points instead to a different location. Is there any way to embed an external-pointing, dynamic URL in a link in text?</p>
Find more posts tagged with
Comments
mwilliams
<p>Does your data come in HTML format? If so, you should be able to display this field with an HTML text box. I'm a little confused about the URL pointing to a different location. Is your URL a "relative" URL or the full path?</p>
michaelmmarks
<p>See the attached. There are 4 entries in the grid. To explain each one:</p>
<ol><li>A hardcoded html link, just to prove that I can do that.</li>
<li>A text field with a link whose URL is taken from data. This fails because row["text"] is null.</li>
<li>An attempt to produce the link from javascript. Fails because there's no way to tell it that the result should be interpreted as html.</li>
<li>Encoding a link in a table. This actually works.</li>
</ol><p>I'd like a solution with the simplicity of #2 but that works like #4.</p>
mwilliams
<p>Take a look at the fifth option I added to the grid. It's a text element with html chosen as the content type.</p>
michaelmmarks
<p>That's exactly what I was looking for. Thanks very much.</p>
mwilliams
<p>You're welcome. Let us know whenever you have questions!
</p>
vijayshankar245
<blockquote class="ipsBlockquote" data-author="mwilliams" data-cid="133670" data-time="1423859367">
<div>
<p>You're welcome. Let us know whenever you have questions!
</p>
</div>
</blockquote>
<p>Hi</p>
<p> </p>
<p>I have a simlar requirement where I have a hyperlink which is not a URL site but the path to access an excel output of another report.</p>
<p>I have written the code same way as the above report.</p>
<p> </p>
<div><a href="</div>
<div><a data-ipb='nomediaparse' href='
http://****.com/iportal/viewer/viewreport.jsp?OutputFileType=XLSX&fromwhere=struts_viewDocument&outputName=excelReport.xlsx;1&__vp=Default+Volume&volume=Default+Volume&showBanner=false&showBreadCrumb=false&locale=en_US'>http://****.com/iportal/viewer/viewreport.jsp?OutputFileType=XLSX&fromwhere=struts_viewDocument&outputName=excelReport.xlsx;1&__vp=Default+Volume&volume=Default+Volume&showBanner=false&showBreadCrumb=false&locale=en_US"><B><FONT</a>size=""
; color="Blue" face="">Click here to view the detail report</FONT></B></a><BR> </div>
<div> </div>
<div>It works fine when I view the report in web viewer. when I click I could open the excel output.</div>
<div>But when I view the same in pdf, the URL is not working. Kindly help what im missing here.</div>