Solved

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

Posted on 2011-02-23
3
527 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 500 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

Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

Question has a verified solution.

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

Shadow IT is coming out of the shadows as more businesses are choosing cloud-based applications. It is now a multi-cloud world for most organizations. Simultaneously, most businesses have yet to consolidate with one cloud provider or define an offic…
Microsoft Access is a place to store data within tables and represent this stored data using multiple database objects such as in form of macros, forms, reports, etc. After a MS Access database is created there is need to improve the performance and…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…

707 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