Parameters with Hyperlinks
We want to include links in our html help projects to certain
pages on our website that are available by subscription only. We
were hoping to be able to pass the serial number as a parameter
when they click the link. The target page would then check the
serial number and direct them accordingly. The serial number is
stored in the registry, but we could also place it in a
configuration file if necessary. Any ideas?
Hi
In your last post you refer to a .chm file, but previously
you had talked about web pages so I assumed you were using webhelp.
It is not possible to pass parameters within a .chm file as these
are done with server side software.
I just tried linking this forum to my .chm file and it worked
fine. Even though it was going to a cold fusion page rather than a
static HTML page. I just copied the URL from my browser and linked
it in the .chm. It even logged me in automatically. Of course, this
only works because my computer "remembers" the login and password.
I would think you could achieve what you want if the
installation program could write the correct cookies to automate
access. Then you would only need to create the link to the web
page. I think it would also be possible for the end user to limit
their own access with their security level settings, so I'm not
sure this is a good idea.
John
Similar Messages
-
hi,
I have a problem with passing parameters thru hyperlink, I get an error called no data found..
the program works fine as the parameters I have passed are hello and hai.
But if I try to pass the value retrieved from the database as parameter
then I get an error.
<a href=" "hday.jsp?title= <%= rs.getString(1) %">&cdid=hai"
if somebody finds a soln ... pls inform me..
My code is pasted below: file name hday.jsp
<html>
<body>
<%@ page import="java.lang.*" %>
<%@ page import="java.sql.* " %>
<%@ page import="java.util.*" %>
<script language="javascript">
function funSubmit(strval)
var strBool = false
var st=""
var strHDate,strHDay
strHDate = document.frmHDay.txtHDate.value
strHDay = document.frmHDay.txtHDay.value
strHDay = trimWhitespace(strHDay)
if (strval== "mod")
document.frmHDay.action = "hdaydb.jsp?state="+strval+""
document.frmHDay.submit()
</SCRIPT>
<form name="frmHDay" method="post">
<BR><BR><BR><BR><BR><BR><BR><BR>
<table border="0" cellpadding="0" cellspacing="0" width="50%" align="center">
<tr>
<td colspan="2">
<table cellpadding="1" cellspacing="0" border="0" align="center" bgColor="GRAY" width="100%">
<tr>
<td>
<table border="0" cellPadding="5" cellSpacing="0" width="100%" align="center" bgColor="GRAY">
<tr>
<td align="left" width="30%" ><b>Cdkey</b></td>
<td align="left" colspan="2"><b>Title</b></td>
</tr>
<tr>
<td align="left" width="20%"><input type="text" name="txtHDate" value="<%=request.getParameter("cdid")%>" maxlength="50" disabled style="width:70"></td>
<td align="left" width="30%"><input type="text" name="txtHDay" value="<%=request.getParameter("title")%>" maxlength="22"></td>
<td align="right" width="40%"><input type="submit" name="butMod" value=" Modify " class="searchb" Onclick=""javascript:funSubmit('mod')"">
<input type="button" name="butCanc" value=" Cancel " class="searchb" Onclick=""></td>
<input type="hidden" name="hidDate" value="">
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2">
</td>
</tr>
<tr>
<td colspan ="2">
<table cellpadding="1" cellspacing="0" border="0" align="center" bgColor="LIGHTGRAY" width="100%">
<tr>
<td valign="top">
<table border="0" cellPadding="5" cellSpacing="0" width="100%" align="center" bgColor="GRAY">
<% String flg;
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
String url = "Jdbc:odbc:newslms";
Connection cd = DriverManager.getConnection(url," "," ");
Statement sm = cd.createStatement();
String str = "SELECT CDId,Title FROM dbo_tb_CDDetails" ;
ResultSet rs = sm.executeQuery(str);
ResultSetMetaData rsmd = rs.getMetaData();
int coloumn = rsmd.getColumnCount();
while(rs.next())
{ %>
<tr>
<td colspan ="2"> <a href= "hday.jsp?title= hello&cdid=hai"><% out.print(rs.getString(1));%></a></td>
<td colspan ="2"> <% out.print(rs.getString(2));%></td>
<td align="right" width="30%">
<input type="checkbox" name="chk" >
</td>
</tr>
<%}
%>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</body>
</html></a>I guess the space between title= and hello is the problem.
There must not be any space inbetween.
so instead of
try
also if there are spaces or characters like ? = ... in the data of your database the strings have to be escaped. In javascript the function is escape("some string"), I don't know the correct function in java.
PHP uses urlencode() or rawurlencode() btw.
Hope that helps -
Hyperlink Bag : Passing two Parameters to Hyperlink bag
Hi,
Pls let me know if any one has worked on how to Pass two parameters to Hyperlink Bag in MSA 5.0.My code is working fine with single Parameter but when I pass two parameter it is throwing an error.
Appreciate if some one can share a code for the same.
Thanks in Advanace.
Thanks and Regds
HarishHi Ramakrishna,
Thanks for your prompt reply. I have gone through this document. My requirement is different than what's stated in the document. The users filter their records in the VC application by using more than one filter and press the button called 'Open Query' button. The system then takes them to WAD. The WAD should be able to set the same filter value/s that they select in VC application. But at the moment, it passes only one parameter to WAD regardless of how many filter values that users select in VC. Please suggest on this matter.
Thanks. -
Compact Journal - RFEPOJ00 - Print List with hyperlinks not working ECC 5.0
Hello,
Has anyone run into any issues with running the compact journal report and hyperlinks in 5.0?
Im not getting the hyperlink functionality to work when I execute the job in the background and I have optical archiving box check. I have set up all the customizing and I can run the test report OACONTA2 report and successfully produce a printlist with hyperlinks. When I run the same process for RFEPOJ00 I get a printlist but without hyperlinks. The same process works just fine in 4.7 or 4.6C.
I have found nothing in OSS
Any Ideas?Dear Gustavo,
ERROR => e=28 semget(20554,1,2047) (28: No space left on device)
Shows some meaningful error message, check your profile parameters for both instance ... and your disk resources as well.
somthing should not be there for running both instances.
You posted in wrong forum brother. you can post this in Upgrade forum for better and quick reply.
Regards
Shailesh Mamidwar -
Sorting not working in a report with hyperlinks
I have a report with hyperlinks for one column and I noticed that sorting is no longer working on that report. If I use another version of the same report witout hyperlinks; sorting does work fine.
I was wondering if anyone has encountered this issue before and what would be the solution.
Thanks!I didn't remove the sorts and was trying to sort again on another column.
So this is resolved.
Now another issue; when viewing this report in Interactive mode; the column with hyperlinks doesn't have the sort option when I right click on that column. The sort option does show up but it's grayed out (disabled). When I go to Edit mode; it does allow me to sort on that column.
Anyone has noticed this? -
I have a page of text with hyperlinks in a master indesign file.
I place that file into another indesign file.
(It is like an html include file for a webpage.In this way i only have to update the file in one place.)
But when i export the indesign file to pdf, the hyperlinks fail to work.
They work in the original but not in the second.
Does anyone have any suggestions?
Abby EagleMy apologies. My tests were done using URLs. They function in Acrobat regardless of their state in InDesign.
Aside to Bob: Since I had just made a PDF that worked, I mistook your "Since when" to mean since when won't a placed ID file work? I guess I was blind sided by the fact that the only hyperlinks I ever come into contact with are full URLs.
If Abbey's situation is as I envisioned -- that the placed files are more akin to smaller graphics within the layout of a page rather than discreet pages at all -- then is this not a insolvable problem given how InDesign works now? -
Query parameters with the same name and different values
According to HTTP, multiple query or post parameters with the
same name and different values are permitted. They are transfered
over the wire in the following format -
name1=val1&name1=val2&name1=val3
The problem is that I can't see anyway of assigning multiple
parameters with the same name and different values to the request
object of mx.rpc.http.HTTPService. I have tried using the
flash.utils.Dictionary object as it does strict key comparison but
that doesn't work too. I have tried setting an array of values to a
property of the request object but that sends the request to the
server in the following format -
name1=val1,val2,val3
The java servlet engines throw exceptions when they see this.
Any help would be greatly appreciated.If you're not on 8.1.4 move there. 8.1.3 had limitations in the wsrp
release.
wrote:
I have an html select box that contains several values, and multiple
selection is enabled. When my code runs as a remote portlet, the
following is showing up in the soap monitor when I select multiple
values and submit the form:
<urn:interactionParams>
<urn:portletStateChange>cloneBeforeWrite</urn:portletStateChange>
<urn:interactionState>_action=addEmployeesToGroup</urn:interactionState>
<urn:formParameters
name="P62005wlw-select_key:{actionForm.selectedEmployees}OldValue">
<urn:value>true</urn:value>
</urn:formParameters>
<urn:formParameters
name="P62005wlw-select_key:{actionForm.selectedEmployees}">
<urn:value>beatest1</urn:value>
</urn:formParameters>
In this case, I selected beatest1 and beatest2, but only beatest1 comes
through to the remote portlet. Is this a known bug, and, if so, is
there a patch or workaround available?
Thanks in advance,
Andy -
I saved a word document with hyperlinks in it as a pdf. When following the links in the pdf, i can't the browser to go back to the pdf. Help ..
You cannot save word files to pdf using reader. When you click a link (in Reader or in the browser using the Reader plugin) you open the url in your browser (what browser)? We need detailed information to help.
-
I created a word document with hyperlinks. When my default browser is Chrome the hyper links work. When the default browser is Safari, the hyperlinks bring to pages that just lines and lines of symbols. I need these links to work in both browsers. Any ideas?
version 10.6.8
-
Insert a spreadsheet and word docs into a PDF with hyperlinks
I have a spreadsheet index with hyperlinks to 455 single page word docs. I want to make a single pdf by inserting the spreadsheet followed by the word docs.
Is there a way of having the hyperlinks recognize the inserted word docs pages inside the pdf via the original hyperlinks, or do I need to remove the hyperlinks before inserting the spreadsheet and then do bookmarks for all 455 pages? Or some other method?James,
I doubt that will work. But it should be easy enough to find out. If you
print to pdf from ID, I guarantee is will not work. If you export from
ID, I doubt it will work, but ask in the ID forum, since the creation
does not depend upon Acrobat.
Mike -
How to get the UIDRef of Text frame associated with hyperlink?
Hi,
I have a document which contains Text hyperlinks . I am able to get the number of hyperlinks present in document using "IHyperlinkTable" and text range to which hyperlink is associated using interface "IHyperlink".
InterfacePtr<IHyperlink> hyperlink(tableDb, table->GetNthHyperlink(i), IID_IHYPERLINK);
if(hyperlink)
hyperlink->GetName(&sHyperlinkName); //sHyperlinkName is text to which hyperlink is associated
now I need to find the UIDRef of Text frame with which hyperlink is associated.
I can get the UIDRef of "Image frame" using interface "IHyperlinkPageItemSourceData".
InterfacePtr<IHyperlinkPageItemSourceData> sourceHyperLink (tableDb, hyperlink->GetSourceUID(), UseDefaultIID());
if (sourceHyperLink)
UID sourceHyperLinkUID = sourceHyperLink->GetSourceUID();
but this interface may be not helpful in case of text in the frame (word/words) associated with hyperlink.
If anyone has done this please do let me know.
Thank you all in advance.
PriyankaHi All,
I am still unable to get the solution of this issue. If anyone has done this please help me to find the solution.
Thanks in advance.
Priyanka -
Passing multiple URL parameters with same name
Hi,
I have a question which is not entirely related to Java. But although its related HTTP calls, so I thought I might get some ideas here.
Background:
I am making HTTP URL call from SAP ABAP code. Its pretty much similar to Java (creating URL connection, setting HTTP headers, connecting, receiving response and everything)
For example,
http://service_server:8080/a7/extension.services.SearchRequirements.a7x?RequestStatus=CR&RequestStatus=RR
Now, this service_server runs a query to database where it uses both these values of "RequestStatus" to form 'OR' condition for a field.
Issue:
When I run this URL from browser, it shows XML response containing results for both values. In short, this is the ideal response.
(I am using getParameterValues(string) at service_server to read multiple values for same parameter)
But when I see response in SAP system, I see that it is returning data for only one value of 'RequestStatus'.
I checked the logs of service_server, and I see that it has received only one parameter, not two.
Question:
It seems like SAP systems web server is truncating both parameters with same name and passing just one of them to outside server(??)
Is there any configuration at Web Server side or any HTTP headers to be set so as to avoid this?
Can anybody suggest something on this?I managed to resolve this issue by using HTTP 'Post' method to send the data.
CALL METHOD CL_HTTP_CLIENT=>CREATE_BY_URL
EXPORTING
URL = L_URL
IMPORTING
CLIENT = L_HTTP_CLIENT
EXCEPTIONS
ARGUMENT_NOT_FOUND = 1
PLUGIN_NOT_ACTIVE = 2
INTERNAL_ERROR = 3
OTHERS = 4 .
"STEP-2 : AUTHENTICATE HTTP CLIENT
CALL METHOD L_HTTP_CLIENT->AUTHENTICATE
EXPORTING
USERNAME = 'name'
PASSWORD = 'password'.
"STEP-3 : SET HTTP HEADERS
CALL METHOD L_HTTP_CLIENT->REQUEST->SET_HEADER_FIELD
EXPORTING NAME = 'Accept'
VALUE = 'text/xml'.
CALL METHOD L_HTTP_CLIENT->REQUEST->SET_HEADER_FIELD
EXPORTING NAME = '~request_method'
VALUE = 'POST' .
CALL METHOD L_HTTP_CLIENT->REQUEST->SET_CONTENT_TYPE
EXPORTING CONTENT_TYPE = 'application/x-www-form-urlencoded' .
"SETTING REQUEST DATA FOR 'POST' METHOD
IF L_PARAMS_STRING IS NOT INITIAL.
CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
EXPORTING
TEXT = L_PARAMS_STRING
IMPORTING
BUFFER = L_PARAMS_XSTRING
EXCEPTIONS
FAILED = 1
OTHERS = 2.
CALL METHOD L_HTTP_CLIENT->REQUEST->SET_DATA
EXPORTING DATA = L_PARAMS_XSTRING .
ENDIF.
"STEP-4 : SEND HTTP REQUEST
CALL METHOD L_HTTP_CLIENT->SEND
EXCEPTIONS
HTTP_COMMUNICATION_FAILURE = 1
HTTP_INVALID_STATE = 2.
"STEP-5 : GET HTTP RESPONSE
CALL METHOD L_HTTP_CLIENT->RECEIVE
EXCEPTIONS
HTTP_COMMUNICATION_FAILURE = 1
HTTP_INVALID_STATE = 2
HTTP_PROCESSING_FAILED = 3.
"STEP-6 : READ RESPONSE DATA
CALL METHOD L_HTTP_CLIENT->RESPONSE->GET_CDATA
RECEIVING DATA = L_RESULT .
"STEP-7 : CLOSE CONNECTION
CALL METHOD L_HTTP_CLIENT->CLOSE
EXCEPTIONS
HTTP_INVALID_STATE = 1
OTHERS = 2 .
{code} -
How to use lexical parameters with Sql Server Stored Procedure?
Hi,
I'm developing a BI Publisher report on a sql server database. I need to execute a stored procedure to dynamically build the query by replacing the lexical parameters with the values of varaibles of the stored procedure. With Oracle stored procedures, I have used data template and had reference the varaiable in SP by prefixing it with '&'.
It doesn't work if I try to do the same thing with SQL server. Is there anyone who has come across the similar situation? Please let me know if anyone has got any ideas...
Thanks in Advance
RagTopLink currently doesn't support multiple ResultSets. Multiple ResultSets support is considered for a future release.
-
Interactive pdf in indesign with hyperlinks warning
create adverts that are interactive pdf in indesign with hyperlinks and mail to links and now we are assembling the document back together in the form of a book but on importing the pdf back into indesign we are getting the
warning: “this file may contain newer extensions or information than this viewer can support. it may not open of display correctly and cannot be changed.”
when the pdf imports the hyperlinks on the text work but the hyperlinks on the images are gone?
Using version cs5 v7.0.4@Steve – I'm not so sure about that.
At least the OP could experiment with Acrobat Pro's "Import as Layer" function.
With "Import as Layer" you could import another PDF to a new layer.
But I don't know if all the interactivity will stay in place and will be working.
Did not test that yet.
See the screen where I did layer two different PDFs together. A German version and an English version of the same document:
"Import as Layer" is an option in the Layers at the sidebar of Acrobat Pro.
As you can see there are some options for positioning with "Manual positioning".
Acrobat Pro's Layers with options:
Uwe -
Problem with Hyperlink in JEditorPane!!
hi all!
I have some problem.
I create html page with hyperlink to myProgram.jar and when i open this html page in JEditorPane and click on hyperlink i have the some text but my program don't run.
How write HyperlinkListener for run the my program and setUrl for open other html pages.
thanks!In the future, Swing related questions should be posted in the Swing forum.
But, there is no need to repost the question because you can just read the JEditorPane API to find an example of how to write a HyperlinkListener.
Maybe you are looking for
-
Can I share my ipod between my work PC and my home Mac?
I have an iPod mini that i routinely sync with my mac at home. I just started a new job and am foced to use a PC in my office (Windows XP Pro). I want to connect the iPod to my PC and play music off of it, sync contacts, etc. I installed iTunes on th
-
PatchBay error while running ATG application
Hi All, I am getting the following error while running ATG application. Error /atg/dynamo/messaging/MessagingManager PatchBay failed to startup properly : a Scheduler job will be registered to continue trying to bring PatchBay up : note this will ma
-
Error while validating the xml file
Hello All, DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); dbf.setValidating(false); DocumentBuilder db = dbf.newDocumentBuilder(); doc = db.parse(new ByteArrayInputStream(xmlString.getBytes())); In this code even though I have set
-
SAP Netweaver parameter tuning for retail systems.
Hi Gurus I am working in retail. I want to know if there are specific parameters that you must tune for retail systems, that you not usually tune for other businesses? Info: OS = AIX 5 Database = Oracle 10.2.0.2.0 System = SAP ECC 6.0 Patch level = 7
-
Help! I can't get my computer to start!
I have had my PowerBook for about 3 months now. I type a lot of things in word. When I am done, I usually just hit the sleep button. When I go back, I just open the screen, and it pops right back up. Today, however, I could not get the screen to ligh