?
Solved

SAS Enterprise Manager -- Can a Hyperlink be in the DATA-Rows of a Report?

Posted on 2011-02-23
3
Medium Priority
?
530 Views
Last Modified: 2013-11-16
Hello.
I know I can place a Single link on a section of a report.
However, for a generated report that goes out to users (like an html page or a pdf or excel file), can I code the data results to DISPLAY one text (like a Short account number, 12345), but then have it be a lengthy hyperlink that can be clicked to go the URL?  

Perhaps a Calculated Field that is AccountURL that is calculated as  "www.myurl.blah?Account=" || AccountNo  ,  or something similar?  I have done it as such a field, but that DISPLAYS the entire lengthy URL, but I would like to have it be more of an intelligent Hyperlink that JUST SHOWS the Short Account Number.

-----  Report1 ------
Account      Name   Total
12345         Smith    $500
45222         Jones    $300
34428         Taylor    $200
------ Generated by EM -----

Thank you!
murach


         
0
Comment
Question by:murach
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 11

Accepted Solution

by:
theartfuldazzler earned 2000 total points
ID: 34967383
0
 

Author Comment

by:murach
ID: 34971521
Excellent article!  Very Close...
So far, I've redone the query to make it include the HTML tag.
It looks something like this.
'<a href="http://www.abc.com?id=' || t1.test_id || '">' || t1.test_id || ' </a>'

But, it still Displays the lengthy URL text and html tags.   So, the PDF article says just apply the Custom Format. So, I read that part, and then looked up PROC FORMAT.... but (maybe I'm not understanding it right) it is showing how to do a format for SPECIFIC "values" that are hardcoded into the URL (as well as the Display).

Is there a "format" I can apply to make it just display the "id" (and Different IDS for each record)? Would you let me know how to do a PROC FORMAT more generically?
ie, FORMAT1URL is "http://www.abc.com?id=" + differentIDfromData + || '">' || differentIDfromData || ' </a>'

Thanks.

 
0
 

Author Comment

by:murach
ID: 34971633
Actually, It DOES Work with just the correct HTML (and no need for a Custom Format), as long as I Export as HTML report.  (It does Not work, btw, if exported out as a PDF --- which displays the long tag w/o resolving, though it does behave as a hyperlink in the PDF).

Thank you!
0

Featured Post

Fill in the form and get your FREE NFR key NOW!

Veeam® is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows the steps required to install WordPress on Azure. Web Apps, Mobile Apps, API Apps, or Functions, in Azure all these run in an App Service plan. WordPress is no exception and requires an App Service Plan and Database to install
In this article, we’ll look at how to deploy ProxySQL.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

649 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question