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
Solved

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

Posted on 2011-02-23
3
514 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
  • 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

CCModeler offers a way to enter basic information like entities, attributes and relationships and export them as yEd or erviz diagram. It also can import existing Access or SQL Server tables with relationships.
Creating and Managing Databases with phpMyAdmin in cPanel.
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…
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…

808 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