Giving Hyperlink
Hi,
How to give hyperlink for text in a page... I have created an item (Display as text does not save state), now I want to give an hyperlink to that so that it will navigate to another page. Is there any other way of doing the same..please help me.
Regards,
Pa
To render those cells with an underline have your TableCellRenderer return a JTextPane set up as follows:
// Do this once somewhere
SimpleAttributeSet hyperlinkStyle = new SimpleAttributeSet();
StyleConstants.setForeground(hyperlinkStyle, Color.BLUE);
StyleConstants.setUnderline(hyperlinkStyle, true);
public class MyRenderer implements TableCellRenderer
JTextPane hyperlinkRenderer = new JTextPane();
public Component getTableCellRendererComponent(JTable table,
Object value,
boolean isSelected,
boolean hasFocus,
int row,
int column)
// When its a hyperlink cell do something like...
hyperlinkRenderer. setText("");
// ...assuming toString is OK for you
hyperlinkRenderer.getDocument().insertString(0, hyperlinkStyle, value.toString());
return hyperlinkRenderer;
}and for the mouse cursor add a MouseMotionListener to your JTable and implement mouseMoved(MouseEvent e). Then
Point p = event.getPoint();
// Locate the model coordinates under the event location
int hitColumnIndex = columnAtPoint(p);
int hitRowIndex = rowAtPoint(p);
if (its a hyperlink cell)
myJTable.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
else
myJTable.setCursor(Cursor.getDefaultCursor());
}You can either do the click with a MouseListener or by cell selection events, if that is OK.
Hope that helps - good luck.
Similar Messages
-
Alternative for result from other query and merge dimension option option
Hi Everyone ,
Am Developing one webi report over bex Query.
Actual scenario is output of one webi report should be the input of other webi report.
Eg:
Table 1
2010 Cus 1
2010 Cus 2
2011 Cus 3
table 2
cus1 m1 100
cus2 m2 200
Cus3 m1 400
Report 1 designing
First report created using table 1 and prompt for year
Report 2 designing
Second report created using table2 and prompt for customer
So when am Running first report it will ask for parameter year and if am selecting 2010 then the report will return C1 and C2
this out put should e the input for report 2.
So out put will be 100+200=300
NOTE:1. Result from other query is not working in webi filter pane since am building on olap universe.
2. Merge Dimension performance is very slow .
Any Solution ?
Regards,
Kannan.BHi,
Thanks for ur reply
As you said , If am giving hyperlink to other report .
Eg: User selected Tamilnadu then report 1 opened then he has to click the some cell or hyperlink cell to view the actual report(2nd report).
Suppose user Clicked that hyperlink cell and 2nd report opened and he is viewing the data for Tamil nadu and he decided to see the report for
Andrapradesh so according to this logic he has to select first report and refresh the data for Andra and from there he has to come to 2nd report.
totally 4 screen will be opened for seeing the two states report.
So Some other alternative....... -
Dear all,
My requirement was hyperlinking to a original file which is stored in one DIR from another file which is stored in same or another DIR.
MY client requirement is to open of original of nay document thrperlinkough giving hyperlink . he wants all original files of the same or different DIR
Should be open through hyperlink
SAP has been replyed
Not possible through Standard DMS
But i can be possible through URL link to document info record.which point to be a serverwhere the original are stored(i.e. wed server)then file has not to be checked in and path could be same in several info record .setting for adding URL link to document info record.
How to link DIR with URL ? Wht r the setting required ?
kindly helphi,
go to,-- CV02n, Basic data screen go to SYTEM, click 'Servises for Object. u wil get left hand side GOS, generic object Service tool bar.
Click Create, in that u will be finding, Creat External Document (URL). Click and add URL.
This is stored in your SAP DB
Benakaraja
??P -
Hyperlinks giving me a migraine!! seeking help... and advil
dear mac geniuses,
i had a previous mac site with the regular navi bar. all links worked. then i redesigned it so that it would load faster, putting most of the content on the Page Background (photoshop) and custom made my navi bar. i used shapes (no color no line) and hyperlinked them to the appropriate pages in my site. i've published it, oh i don't know, about a billion times, trying little things here and there but nothing's worked. NONE of the hyperlinks work, even down lower on the page.
i've done the following with no effect:
-checked the display navi bar but unchecked the display this page.
-put the header height to 0.
-burned incense and tried speaking in tongues.
have a look at my site (though just the home page comes up
-http://web.mac.com/jokesmalone/iWeb/JAYMALONE.COM/HOME.html)
it's usually just www.jaymalone.com but i had to change it during my many tinkering attempts.
thanksdear mac geniuses,
i had a previous mac site with the regular navi bar.
all links worked. then i redesigned it so that it
would load faster, putting most of the content on the
Page Background (photoshop) and custom made my navi
bar. i used shapes (no color no line) and hyperlinked
them to the appropriate pages in my site. i've
published it, oh i don't know, about a billion times,
trying little things here and there but nothing's
worked. NONE of the hyperlinks work, even down lower
on the page.
i've done the following with no effect:
-checked the display navi bar but unchecked the
display this page.
-put the header height to 0.
-burned incense and tried speaking in tongues.
have a look at my site (though just the home page
comes up
-http://web.mac.com/jokesmalone/iWeb/JAYMALONE.COM/HOM
E.html)
it's usually just www.jaymalone.com but i had to
change it during my many tinkering attempts.
thanks -
Problem Creating Hyperlink to another workbook
I am having a problem creating a hyperlink to a worksheet in another workbook.
Here is what I have done:
Created the master and detail reports in 2 different workbooks.
Executed the master worksheet to display the data
Right clicked the field in the first row where I want to create the hyperlink, and chose Manage Links
Clicked the New Link button
Chose Worksheet for Where do you want to link to?
Clicked Browse by the Destination Worksheet
Clicked the detail report from the list of workbooks but the select button is grayed out
Does anyone have any idea why it won't let me select the detail report to link to?
I have OracleBI Discoverer Plus 10g
Any suggestions would be deeply appreciated.Yes, I did add a parameter to the detail report so that I could get detail just for that one item. The part that is giving me trouble is specifying the Destination workbook/worksheet. I see the detail report when I browse but the Select button is grayed out so I haven't made it to the part where you identify what values to pass to the detail report yet.
-
Java to create hyperlinks from database-specified paths
Hi, I�m using Tomcat 5.5/Java 5.0. and Windows 2000 and Internet Explorer 6
I have a network path specified in a MySQL database table (e.g. one path might be: \\Rpfs01\Department\Finance\Public\Requisitions 4000+\req 4005 Sigma.xls)
I�d like to query this database table and display the results in an HTML table with the above path to be used as a hyperlink (i.e. the user clicks on the hyperlink and up pops a 2nd page containing the xls file specified by the path).
the problem is that web-page is viewing the path as containing escape characters. (i.e. if I click on the link as specified above, I get a file not found error. But if I add extra backslashes directly to the html code, the link works fine [e.g. \\\\Rpfs01\\Department\\Finance\\Public\\Requisitions 4000+\\req 4005 Sigma.xls]).
Is there a way to have java automatically add the required back-slashes to make this work? I tried replaceAll (i.e. myPathString.replaceAll(�\\�, �\\\\�) ) but this is giving me a PatternSyntaxException.
Any suggestions on how to fix?
Thanks!Have you tried the URLEncoder class? Something like:
String urlPath = java.net.URLEncoder.encode(networkPath, "UTF-8"); -
Hyperlink in cells of WDALV ?
Hi,
I am creating a hyperlink in Cells of ALV Output for a URL .but it not working
Here is the code from component controller
if 'TPLSIZE' ne 0.
data:
v_link_to_url type ref to cl_salv_wd_uie_link_to_url.
create object v_link_to_url.
v_link_to_url->set_text_fieldname( ls_column-id ).
v_link_to_url->set_reference( 'http:\www.test.com' ).
ls_column-r_column->set_cell_editor( v_link_to_url ).
endif.
a®Did you check this..
SALV_WD_DEMO_TABLE_EVENTS
for price it is done, and it is working. may be some thing you missed.
if 'TPLSIZE' ne 0. "why are you giving this conditon any specific reason.., exlcude this and see
endif. -
Hyperlink in ALV output and when downloaded to Excel, maintain that hyperli
Hi SAP Friends,
I want to know if this is possible. My requirement is, display a column with Invoice # and hyperlink (or you can call it as Hotspot in SAP language). When clicked on the hyperlink, it should open a webpage, giving details of Invoice. I tried testing BCALV_GRID_VERIFY program. I can see hyperlink in ALV output and when I click, it opens a webpage. However, when I down load data to Excel using Excel inplace, hyperlink is gone. Only data is down loaded. How can we make it happen that hyperlink is maintained even after downloading data from ALV ?
Any ideas ?
NiranjanWaiting for any suggestions from users.
Niranjan -
Pages converts hyperlinks to local source in .pdf
We use Pages '09 v4.0.5 in page layout mode to do a monthly newsletter for our MUG. Something I am doing, periodically and not always, causes a hyperlink to become referenced or linked erroneously to my local machine. Even if everything in the document and in the hyperlink box says go to a proper YouTube link. And then we cannot get rid of it. This is the second or third time in recent monthsit has occurred.
In the current instance, in the the Pages version of the document, with hyperlink enabled, a click makes it reference/go to the proper place. Print/Save that file as a .pdf and it goes to the localhost, wrong place.
So, we have another MUG member save the Pages version of the newsletter with the hyperlink turned off and the hyperlink replaced in the actual printed document with the total proper URL - not hyperlinked. He emails it back to me - I do not enable hyperlinks nor even open any link in the document. I can copy and paste that URL to a browser and all is fine. I then save the Pages file as a .pdf through the Print dialog and the hyperlink is active automatically, again, in the .pdf to the wrong location.
One more step. The other MUG member has the Pages version open, with the hyperlink not enabled and the entire URL typed in place. He converts it to a .pdf and emails it. When I receive that email, the link is not active, but when I roll the mouse over the text, not selecting, the little box pops up with the wrong linked reference - not selectable, but still there.
We think this is a Pages bug. How do they get the word (NPI)?If it is only happening on you machine it is probably there the problem is.
For diagnostic purposes to rule in or out that it is Pages on you machine create a new account an log on to it. Open Pages and do the thing you explained above. does it work now or is it still giving the wrong link. -
Is there a way to make firefox open hyperlinks to local files?
My company has a custom developed ticketing system and of course its developed for IE but none of the engineers like IE. We all use and want to continue using Firefox. One of the sections in the ticketing system has a spot for links to local files on a shared drive. I have created the link and it points to a word document. That hyperlink works fine in IE but it does nothing when clicked in Firefox.
Of course the dev team is giving me the age old line ".NET doesn't play nice with Firefox... developed for IE.... blah blah use IE."
Surely creating a link to a local file like excel or word or even a directory is simple idea and should be accomplished somehow with FireFox right? Can anyone shed some light on this and give a suggestion how to make this work?
For example:
N:\KNOWLEDGE BASE\Cisco Price List\2012\pricelistaugust2012.xlsx
i am trying to share with a hyperlink like:
<a href=file://companyname.local\Shares\Services\KNOWLEDGE BASE\Cisco Price List\2012\pricelistaugust2012.xlsx
Looking for any suggestions on how to make this work. Thank you so much!!I think there are two aspects to this:
(1) URL format
If you navigate to that file using the browser's Open File dialog (Ctrl+O), you can get the workable link format for it. For example, the separators will be forward slashes instead of backslashes.
(2) Local file security
Firefox limits access from pages on web servers to pages on local disk or UNC paths. This article has more info: [http://kb.mozillazine.org/Links_to_local_pages_do_not_work Links to local pages do not work - MozillaZine Knowledge Base]. This extension provides a workaround: [https://addons.mozilla.org/en-US/firefox/addon/locallink/ LocalLink] (I haven't tried it myself). -
Exporting PDF files on CS5 - hyperlinks to URLs only work for first page
I'm new to InDesign and am working through the "Classroom in a Book" training workbook for CS5, I 've got to lesson 14 and have found that when exporting to PDF (interactive) format, the hyperlink to a URL only work for the first page of the document.
I made my own document with links on multiple pages, and the same thing happened. I followed the lesson to the letter (3 times!)
I also tried setting up individual links for individual pages and that did work, so how do I get one piece of text to link to one URL on multiple pages of a document (ie on a Master page) ???Thanks Peter, I've actually got CS5.5, so I presume this patch is already updated on this version, because when I tried the 7_0_4 patch it wouldn't run; giving the message: "Some updates failed to install, and "update is not applicable". So I tried the latest update: 7_5_2 patch, but I'm still experiencing the same problems with hyperlinks not working from the Master pages.
-
HI All,
I have sharepoint calendar and in comments column when i am typing "8:00" it gets converted to "
10:00 8:00"
in google chrome. In IE it works fine. To reproduce follow the below steps.
1. Create a calendar library
2. Add an event.
3. Edit the column "comments".
4. By default you dont find any options to select the type of column.
5. Now to add a one more column say "comments 2" with multiple line of text.
6. By default it type will be
"Enhanced rich text (Rich text with pictures, tables, and hyperlinks)".
7. Add an event and type "8:00" in new ly created column.
8. Edit the new column and change the type to "Plain Text"
9. It will display the above html tag as well "10:00 8:00"
10. If you change the column type again to rich text it will behave normal.
Now the issue is with default column "comments" which is still giving the above html tag in google chrome when we write similar to 8:00
Please assist.
Regards
SandeepHi Sandeep,
Since the issue only occurs to third party product, I'd suggest you contact their support engineer for more assistance. For your convenience:
https://productforums.google.com/forum/#!forum/chrome
In addition, you could also update your Chrome browser to the latest or test on another PC client.
Thanks for the support and understanding.
Regards,
Rebecca Tu
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
Hyperlinks become awkward to use in viewer
We have created a hyperlink in a EUL by making a FILE item based on a column with URLs. "Alternative display value" is set to "Document".
When a workbook with this item is opened in Viewer we get the word "Document" in the cell, with a small blue triangle just left of it. The word is NOT a link (<a>) and clicking it has of course no effect.
The only way to get the URL to work is to click the small blue triangle. Some sort of pop up menu appears, with only one option in it: Document. Clicking this opens the correct page in a new window.
OK, it works, but no user will understand that operation unless someone shows it three times first.
Have we done something wrong in the definition or is this the expected behaviour?
Kind regards
Tomas Albinsson
PS This is version 10.1.2.1 of Discoverer Administrator.Hi,
I think this is expected behaviour, you may be able to change the hyperlink symbol by some configuration on the server. What I have done is not to have any description or alternative display value for the FILE item and set the column heading in the workbook to be something like "Click to display document". Then have another text column before the FILE item giving a description of the file.
Hope that helps,
Rod West -
Create hyperlink for all images
Hello everyone,
I am new to scripting, but I am assuming my current task needs some scripting.
I have a catalog laid out in InDesign. It is about 250 pages and each page has about 10 image so there are about 2500 images. The way I have them laid out is each image is placed inside a frame. Now, I need to hyperlink each image to an external web site. For example, for an image whose name is (12345.jpg), the hyperlink will be "https://www.testabc.com/productdetails.aspx?itemnum=12345". Similarly if the next item is 67890, then the hyperlink would need to be "https://www.testabc.com/productdetails.aspx?itemnum=67890". All images are linked to a folder on the computer.
Can you please suggest how best to write and run this script. Any and all help would be greatly appreciated.
Thank youI can't test the script at the moment, but looking at it, I do notice that the entire for loop is within a try-catch. That means that if it encounters an error, it stops processing any more graphics. There may be a good reason for this, but I think you could just move the try-catch into the for loop, so it can catch any individual linking error without stopping completely. Something like this:
var myDoc = app.activeDocument;
var myGr = app.activeDocument.allGraphics;
alert(myGr.length)
for(i=0; i<myGr.length; i++)
try{
var myGrName = String(myGr[i].itemLink.name);
var mySplitName = myGrName.split(".")[0];
app.select(myGr[i].parent)
myHyperlinkPageItemSource = app.activeDocument.hyperlinkPageItemSources.add(app.selection[0])
var myHyperlinkURLDestination = app.activeDocument.hyperlinkURLDestinations.add("https://www.testabc.com/productdetails.aspx?itemnum=" + String(mySplitName)));
var myHyperlink = app.activeDocument.hyperlinks.add(myHyperlinkPageItemSource, myHyperlinkURLDestination, {name: "https://www.testabc.com/productdetails.aspx?itemnum=" + String(mySplitName)})
} catch(e){}
alert("Process Completed")
The forum's syntax highlighting is giving me a hard time, but I would probably throw an "alert(myGrName)" into those catch brackets so you can begin to try to figure out where it's erroring out (if that is indeed the problem).
Another thought is that, if there's a chance of multiple images with the same number, you might want to have your hyperlinkURLDestination check for an already existing destination before adding a new one. -
Hyperlinks in epub document don't work on sony reader for pc
I have downloaded a document wich contains hyperlinks. On Sony reader for PC it doesn't work, while it does on others ereaders I have tested.
Why?Hello isalherbo,
I find it odd that you are not able to open hyperlinks as well. I have tested and confirmed that clicking on a hyperlink from a book does launch my default web browser on my PC. Can you confirm the version of Reader for PC you are running and the book details for which book that is giving you an issue please.
Direction for Reader for PC version:
Launch Reader for PC
Press HELP in the top left
Choose ABOUT READER
The version information will be display in the top right area.
Maybe you are looking for
-
My MacBookPro with Mountain Lion seems to be making copies of files in my download folder. Why is this happening and how do I stop it?
-
AP2 new features not available for older cameras
Hi Can somebody please confirm that older camera's such as Fuji S3 and S2 do not have new raw conversions in the fine tuning adjustments, mine only shows up with the 1.1 or 1.0 options listed, and also the Recovery and Black point sliders are grayed
-
Communication type cannot be used.
when i try to issue an output type using va01/va02, (menu:->extra->header->output->edit)and assign the output to send it to mail,using cs01 communication type ,it gives an error communication type cannot be used
-
TOC Links Cause Merged Topics To Open in New Window
Hi All, I have a master .chm file and several .chm files merged into it. Under RH5/6 these were working fine when I clicked on their TOC links; they opened properly as expected in the same viewer as the master help file. Now, after installing RH7 yes
-
ARE 1 does not update Educ cess & Higher edu cess
Dear SD gurus. Today when I was posting Excise to ARE1 I found that Edu cess & higher EDu Cess is not getting updated. We are using ECC 6.0. Is there any kind of Note to be applied? or there is any setting required for this. Kindly help Regards Sreek