BookmarkSubscribeRSS Feed
Filipvdr
Pyrite | Level 9
compute Event_type;
if event_type eq 'Move In' then
call define (_col_,'style','style=[preimage="http://www.stapleheadquarters.com/industrial-staplers/arrow-r.gif" hreftarget="_blank"]');
if event_type eq 'Move In' then
CALL DEFINE(_COL_, 'URL', 'http://www.google.be' );
endcomp;

can i make a link on the preimage?
7 REPLIES 7
Filipvdr
Pyrite | Level 9
it is possible

found it in http://www.wuss.org/proceedings10/TUT/3027_1_TUT-Zender.pdf (this is a quite good paper)
[pre]
compute Event_type;
if event_type eq 'Move In' then
call define (_col_,'style','style=[preimage="http://www.stapleheadquarters.com/industrial-staplers/arrow-r.gif" PREHTML="" POSTHTML="" hreftarget="_blank"]');
endcomp;
[/pre] Message was edited by: Filipvdr
Filipvdr
Pyrite | Level 9
how can i put an id in this url?

compute Event_type;
if event_type eq 'Move In' then
call define (_col_,'style',"'style=[preimage='http://www.stapleheadquarters.com/industrial-staplers/arrow-r.gif' PREHTML='' POSTHTML='']'");
endcomp;
seems to not work..

LINK = A

Message was edited by: Filipvdr Message was edited by: Filipvdr
Cynthia_sas
SAS Super FREQ
Hi:
I generally see a <LINK> tag used in the <HEAD> section of an HTML page to link to the location of a CSS file or other content.

The way I was taught to use "named" anchors within a document was to use the NAME= attribute in 1 ANCHOR tag to "set" the name and then code another ANCHOR tag to navigate to the section. So, assuming you have this in your HTML:

<a name="IDX"></a>
...more HTML for a TABLE of some kind...

<a name="IDX1></a>
...more HTML for a second TABLE ...


Then this ANCHOR tag link, probably used in an HTML FRAME, would take you to the FIRST table:
<a href="c:\temp\body.html#IDX" target="body">Table 1</a>

And this ANCHOR tag link would take you to the second table:
<a href="c:\temp\body.html#IDX1" target="body">Table 2</a>

Can you explain in a bit more detail what you are trying to accomplish?

cynthia
Filipvdr
Pyrite | Level 9
the goal is to link to an other stored process giving along the ID as a parameter

so not to an anchor
Cynthia_sas
SAS Super FREQ
Hi:
I have only seen stored processes use ANCHOR tags for URLS or HIDDEN form items for passing parameters (and only seen LINK tags used for CSS) --

These may be of use to you:
http://support.sas.com/documentation/cdl/en/stpug/61271/HTML/default/viewer.htm#datapass.htm
http://support.sas.com/kb/19/475.html

With stored processes, the general scenario is that something displays in the Portal on a web browser, such as an HTML form and the form action of the form is a link to SASStoredProcess/do? -- but in your case, you are trying to build the link from within PROC REPORT -- without knowing how THIS stored process will itself be invoked and under what configuration it is running, it is hard to comment.

I don't know how to code a direct call to a stored process via URL without using an <A> tag. Perhaps your best resource for this issue is to open a track with Tech Support.

cynthia
Filipvdr
Pyrite | Level 9
this is a piece of my code:


compute Event_type;
urlstring = "http://www.sas.com/" || compress(Facility) ||"";
if event_type ne '' then
call define (_col_,'style','style=[preimage="http://www.stapleheadquarters.com/industrial-staplers/arrow-r.gif" PREHTML="" POSTHTML=""]');
if event_type ne '' then
CALL DEFINE(_COL_, 'URL', urlstring );
endcomp;

what i can manage is make an urlstring of for example a STP-url (sas.com) and attach a variable (Facility). That link i can put behind each column item thanks to a call define. But that means there is text in my column, i don't want text, i want an image.

Therefore i want to use PREHTML, POSTHML and PREIMAGE. It was no problem to make the link to http://sas.com but i couldn't concat the parameter/variable.

I hope it is clearer now..
Cynthia_sas
SAS Super FREQ
Hi:
I understand what you're trying to do. I am not sure that your approach is going to work. If you want to append something to URLSTRING variable, you will need to do it when you build the temporary variable.

Aside from that, a preimage has to "pre" something in the cell -- you don't need it to be text, but there has to be something in the cell -- even a space. Generally, I make it a one character variable like an "x" or a "-" and then I turn the background and foreground of the character the same color -- then the image looks like it is in the cell by itself.

I still think that your usage of PROC REPORT and stored processes and chaining URLS needs to be looked at in the WHOLE context of what you are doing and that you best bet for resolution is to open a track with Tech Support.

cynthia

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 7 replies
  • 1190 views
  • 0 likes
  • 2 in conversation