Srw.set_hyperlink

hi
srw.set_hyperlink('http:\\jeet-683c5b1609:8888/reports/rwsservlet?report=C:\projectfinal\stock_report.rdf&userid=zensol1/vikas@orcl&destype=cache&desformat=html&dd'||:stock.item_code);
-- bad bind variable stock.item_code
i have report with the name of stock_report
i create a menu and write this code in that but bumistake error occur
please help
or give suggesion how i remove this
thanks

srw.set_hyperlink('http:\\jeet-683c5b1609:8888/reports/rwsservlet?report=C:\projectfinal\stock_report.rdf&userid=zensol1/vikas@orcl&destype=cache&desformat=html&dd'||:stock.item_code);Seems as if :stock.item_code is an item in the form the menu is attached to?
In a menu you have to access the item using NAME_IN('stock.item_code');
srw.set_hyperlink('http:\\jeet-683c5b1609:8888/reports/rwsservlet?report=C:\projectfinal\stock_report.rdf&userid=zensol1/vikas@orcl&destype=cache&desformat=html&dd'||NAME_IN('stock.item_code'));btw: isn't SRW.SET_HYPERLINK a reports-command? Never seen that being used in a forms-menu. Would like to know if it works.

Similar Messages

  • SRW.SET_HYPERLINK - Handle SPACE in filename AND open in NEW WINDOW

    Report 10g (10.1.2.3.0 - 32bit on Windows 7 64bit)
    Issue #1:
    using srw.set_hyperlink to get a handle on *.pdf file on remote server. Report is launched as PDF. PDF that is opened via the URL launches in same window as report. I need run report as PDF, click hyperlink to get handle on another file which should launch in New Window.
    SRW.SET_HYPERLINKATTR only useful with HTML and HTMLCSS. Javascript? If so, sample code?
    Issue #2:
    possible that file retrieved will have spaces in its name. Hyperlink defaults %20 in the spaces of the name, but the link does not successfully retrieve file. Tried replacing spaces w/ %20, but like defaults does not retrieve document; due to actual file name not having the %20 in its actual name. Is there are way to account for the spaces in the URL then "remove" them to find the correct file and open in new window?
    Tried using virtual path as well as physical path.
    Help with either or both issues is truly appreciated,
    Thanks!!

    Hello,
    When you set the property "Hyperlink", the property "Additionnal Hyperlink Attributes (HTML)" is displayed. Set this property to :
    target="_blank"
    Regards

  • SRW.SET_HYPERLINK without USERID, How ?

    I run a report in which I want to drill to another report passing some parameters.
    I use srw.set_hyperlink(/reports/rwservlet.....) and it works fine.
    However I'm forced to set userid and password in the url and this is a big hole in the security.
    How can I avoid this ?
    Is there any way to run that report in the same context of the running one ?
    Another solution could be logon using a dummy user and then, in the report logon again with the correct one, however I didn't find the way (any LOGON od CONNECT procedure).
    Could someone suggest a solution ?
    Tks
    Tullio
    P.S.: I can't use SSO

    Hello,
    You can launch the first URL with an userid like :
    userid=username@database
    The Database Authentication page will de displayed and a cookie will be stored in the memory browser when you 'll provide the password.
    It will be possible to call other reports without specifying userid. The one stored in the cookie will be used ..
    Regards

  • Open a PDF report from a PDF report

    I would like to open a PDF report from a PDF report, but in a new IE window.
    I have the following code attached to an item in the report:-
    function F_RECONFormatTrigger return boolean is
    begin
    IF trim(:btch_ref) = 'PL' and trim(:recon) is not null and trim(:recon) <> ' ' then
    srw.set_font_weight(srw.bold_weight);
    srw.set_font_style(srw.underline_style);
    srw.set_text_color('blue');
    srw.set_hyperlink_attrs('onMouseover "window.status="Click here to see what is in your shopping basket"; return true"'||'onMouseout ="window.status=" "; return true"');
    srw.set_hyperlink('/reports/rwservlet?cmdkey=famis+desformat=pdf+report=FAMREP011+p_orderno='||trim(:recon));
    srw.set_hyperlink_attrs('target=_blank');
    -- srw.set_hyperlink_attrs('target="_blank"');
    END IF;
    return (TRUE);
    end;
    All of the commands work except for the 2 srw.set_hyperlink_attrs commands. The "onMouseover" and the "target" seem to have no effect. Can anyone help?
    Thanks in advance
    Michael

    The built in srw.set_hyperlink_attrs does not work , if the report format is PDF. There is no way to open another PDF report from a PDF report in a seperate window. Also think there is no way to hide URL which apperars when the mouse pointer moves over the hyperlink.
    In other report formats like HTML, the built in srw.set_hyperlink_attrs works.
    Kranthi

  • Link to a New Browser window

    Anybody knows of an easy way to open a report through the link on another report into a new browser window by default? Thanks.

    hi you can do this in a couple of ways
    create a format trigger on the column that you want to use as the link :-
    function F_organizationFormatTrigger return boolean is
    begin
    srw.set_hyperlink('http://' || :BASEURL || '/anotherjsp.jsp?REPORT_ID=1&destype=cache&desformat=' || :desformat || '&WHERECLS=' || :DRILLCLS || '&DRILLVALUE=' || chr(39) || :column1 || ' ' || chr(39) );
    srw.set_hyperlink_attrs('target=_blank');
    return (TRUE);
    end;
    or you can put it in the Web Settings piece of the Property Inspector for the column that you want to link from . there is a paramter for hyperlink and hyperlink destination.
    hope this helps

  • Deactivate Hyperlinks in reports when it is saved as pdf

    Hi,
    i have a report designed in 10g, report contains bookmark/url on code(empcode) when clicked call another report for detail info,created the hyperlinks using SRW.SET_HYPERLINK('http://myserver.com/reports/rwservlet?userid=user/user123@mydb&server=rep_myserver&report=d:\myreport.rdf&destype=cache&desformat=pdf'').
    The report works fine but the problem is that it is generated in pdf and when the user save pdf copy, the hyperlinks/url are still active i.e the detail report can be called by clicking the code without log in..
    - I Want to either deactivate the hyperlinks when user save the report.
    - or server prompts for login if the user is not logged in i.e directly accessed the report using browser.
    Thnks

    Multimedia is not embedded in exported .pdf files.
    You will need to relink them again in the .pdf using Adobe Acrobat Pro.
    Peter

  • Hyperlink in Excel cell

    Is it possible to write hyperlink in each cell of Excel (report 6 and/or 10) in a way to run hyperlink after run report with one mouse click on the cell (active hyperlink) when excel is displayed.
    I was trying with this example below but without succes beside this I can not find any solution on metalink:
    Re: Hyperlink Related Issue
    function F_enameFormatTrigger return boolean is
    begin
    if :ename = 'SMITH' then
    srw.set_hyperlink('http://www.smith.com');
    elsif :ename = 'JONES' then
    srw.set_hyperlink('http://www.jones.com');
    end if;
    return (TRUE);
    end;

    nagornyi, that is the problem, because I must type Enter if I want to make hyperlink active! So it is not enought just writing tekst but type Enter as well. Try to do this and tell me if I'm wrong.

  • How to hide parameters in the URL ?

    Hi,
    Iam using Reports 6i on web. Now Iam calling report from a report (Drill done report) using SRW.SET_HYPERLINK.
    Iam passing lot of parameters to this detail report.
    When I call the main report the URL looks like:
    http://devreports.wwt.com/dev60cgi/runrep.sh/15369?
    But when I click on the link in this main report for details, the detail report URL looks like this.
    http://devreports.wwt.com/dev60cgi/runrep.sh/15369?emp_detail&p_emp=45&p_job=clerk&p_format=PDF
    Iam hiding userid/passwd@database in the cgicmd.dat file
    I want to hide all the other parameters also like
    the Main report URL :
    http://devreports.wwt.com/dev60cgi/runrep.sh/15369?
    How to do this ?
    Please help me if anybody has the solution.
    Thanks alot.

    Hi Ram,
    Not sure if this is possible.
    However, one workaround might be the following:
    1. Write a javascript that submits the URL using, say a POST method, and does not show the parameters in the URL. You will have to write this javascript code in the "Before Report" Report Escape. For a generic example on how to use javascript in a report, see Metalink Note 125652.1. This note shows javascript to disable the right-click of the mouse on the report output.
    2. Use the Hyperlink peroperty of the report to call this javascript function, eg,
    javascript:myfunction('http://machine:port/reports/rwservlet?report=...+server=...+empno=&empno')
    I am not a javascript expert, so I cannot give you an example of the function, but I hope someone in your team can find out.
    Navneet.

  • Adding Hyperlink to a Field

    Hi,
    Newbie here. I'm trying to figure out how to add a hyperlink to a field in a report. There are five fields in the table and I'm trying to allow the user to click on one of the fields to bring up a new report or a page.
    I've looked into using srw.set_hyperlink but is having trouble associating the wanted field with the hyperlink. Any help would be appreciated. Thank you.
    <function name="beforereport">
    <textSource>
    <![CDATA[function AfterReport return boolean is begin
                   SRW.SET_HYPERLINK('#F_FID&<' || LTRIM(TO_CHAR(:F_FID)) || '>');
                   return (TRUE);
      end;]]>
    </textSource>
    </function>
    Do I need to specifically call the function in my jsp?

    Its me again. I did a search and found some examples of appending a html a href=... tag in the Select statement. But I'm getting a improperly terminated query error. I believe the error has to do with the single quotes.
    Any help would be greatly appreciated. Is there any document on protocol for JDBCQuery?
    SELECT
    'ahref="http://somesite.com"' || f.fid || '/a',
    FROM table f
    WHERE ...
    This query is working fine when I execute it in DBVisualizer.

  • Report to report hyperlinks 10g

    I have been developing a report which calls another report via a hyperlink set using srw.set_hyperlink
    Until now it has not been necessary to enter the host name in the url and the hyperlink is set as:
    srw.set_hyperlink('rwservlet?reportname....
    When clicking the link in the report the hostname was automatically appended and the link worked.
    I have recently come back to the development and the link no longer seems to append the host name. We have recently upgraded to 10g AS is this a known thing or could it be something unrelated.
    Old documentation:
    "Now we need to embed this URL in the master report which shows the customer orders, but make it sensitive for a particular product id. A point to note here is that it is not required to embed the hostname. We are calling this URL from another, and thus when the browser sees a virtual URL for a hyperlink (such as /ows-bin/rwcgi60.exe?item+100871), it will
    append the current host."
    TIA

    Also before I had code in the "BEFORE REPORT TRIGGER" which fired before the "REPORT ESCAPRES > BEFORE REPORT VALUE" now the value that is referenced from the before report trigger is not picked up implying that the report escape is done before the before report trigger. I have added table inserts to the before report trigger which show the value is valid.
    Can anyone verify this ?

  • Hyperlink to pdf on the local file system

    Hello,
    I'm using Oracle Reports 6i. I'm trying to set hyperlinks in my report through the pl/sql command srw.set_hyperlink to another pdf document.
    When I set the hyperlink to a URL, eg, http://localhost/document.pdf#dest, it works fine, the pdf opens in IE to the destination. Now when I specify the link to a file on the local file system, eg, file:///c|/document.pdf#dest, I get a file not found within IE. If I take out the destination, it works ok, that is, it opens up the document with IE.
    What am I doing wrong here? Is there a way to link a report to another pdf to a named destination within the local file system?
    Thanks,
    Ricky

    Ricky,
    This is more of IE - PDF issue I guess. Also this problem is seen more specifically for IE + File protocol + PDF
    Nothing related to the Reports PDF here. You can try by just referring a PDF section through file protocal in IE and you would see the same behaviour
    Thanks
    Rajesh

  • How to update cgicmd.dat file during runtime?

    I'd like to know how do update cgicmd.dat file during runtime. For example, I run a report one.jsp as
    http://<machine>:<port>/reports/rwservlet?one.jsp&USERID=uid/pwd@db&DESTYPE=cache&mode=bitmap&desformat=htmlcss
    within this report there is a hyperlink to open another report named two.jsp.
    before creating this hyperlink, I'd like to update cgicmd.dat file with passed in userID, pwd, and connection, so two.jsp can use this key for userinfo
    so I can create hyperlink as follows
    srw.set_hyperlink('/reports/rwservlet?report=two.jsp'||
    '&cmdkey=userinfo&DESTYPE=cache&mode=bitmap&desformat=htmlcss');
    Thanks

    To my knowledge the cgicmd.dat is only read when the OC4J starts, so you would have to come up with another solution. Using Single-Sign-On (SSO) is quite a good idea, and it's there for cases like this.
    Regards,
    Martin Malmstrom

  • Subreport shows no images nor formatting when invoked from the portal

    Hi,
    I am not 100% sure if this is the right forum, but my problem is related to running subreports on the portal.
    We run OracleAS 10gR2 (10.1.2).
    I have some reports I created with the builder. They are "registered" on the Portal, i.e., I have created report access definition files.
    My reports server is defined to run not only registered reports.
    Actually the report access definition files do not contain the file name for the reports. I rather handle it through the ORACLE_HOME/reports/conf/cgicmd.dat and set the corresponding hidden key in the parameter form.
    On the developer PCs, running the standalone OC4J instance, we have ORACLE_HOME/reports/conf/cgicmd.dat files with entries of the shape:
    master: report=master_report.jsp userid=scott/tiger@mydb destype=cache %*
    detail: report=detail_report.jsp userid=scott/tiger@mydb destype=cache %*
    On the application server we have a SSOCONN resource scotttiger defined as an OracleDB connect string (scott/tiger@mydb), and the cgicmd.dat entries show:
    master: report=master_report.jsp ssoconn=scotttiger destype=cache %*
    detail: report=detail_report.jsp ssoconn=scotttiger destype=cache %*
    The master_report.jsp has format triggers that will invoke srw.set_hyperlink('/reports/rwservlet?detail_report.jsp&...'), for linking to the subreport(s).
    This used to work perfectly and it still works on the standalone OC4J instance.
    Now, if I run the master report on the portal and navigate to the detail report, the detail report shows the right results, but neither formatting nor the images or graphs. When I do a 'show image' on the subreport, then I get a REP-50171: Authentication failed. On ther address bar, I see that the portal is invoking 'http://server:port/reports/rwservlet/getfile/HW/...'
    On the reports trace file, nothing abnormal is shown. I haven't found any entry in any log and am already out of ideas.
    Any hint will be appreciated.

    I fixed it myself.
    The reason was I had a parameter p_authid that conflicted with the portal's parameter authid.
    As soon as I removed it, the problem disappeared
    I personally think this is a bug in the portal.

  • Hyperlink title in pdf

    Hi!
    i have generate a report in pdf format which has hyperlink
    i have set that using srw.set_hyperlink. when i move cursor to that hyperlink. it shows target address. how can this remove. i want to show my own text.
    thanx

    Omer,
    In HTML you can set this with the attribute title. So in reports you can use the command
    srw.set_hyperlink_attrs('title=mytitle');
    I've not tested with pdf, but should work also.
    regards
    Rainer

  • Hyperlink in PDF vs. HTML

    I have figured out a way to create an ASCII file from our report
    that can be opened from Excel. This file must include headers
    so that is the reasoning for not using Oracle's delimited
    option. I have then added a boilerplate text object to the
    report. I then added the following PL/SQL to the format trigger
    of the boilerplate text object:
    srw.set_hyperlink('http:\\ourserver.lanyon.com\test\' || RTRIM
    (LTRIM(SUBSTR(:P_FILENAME, INSTR(:P_FILENAME, '\', -1) + 1))));
    where :P_FILENAME is the absolute path to the Excel file (e.g.,
    f:\oracle\reports\test\test.xls)
    On the parameters page, I allow the users to run the report to
    HTML or PDF (some customers demand HTML and others, PDF). If
    the user selects HTML, the hyperlink works as expected.
    However, if the user runs the report to PDF and clicks on the
    link, the following URL is displayed in the browser and, of
    course, does not bring up the Excel file:
    http://ourserver.lanyon.com/dev60cgi///ourserver.lanyon.com/test/
    test.xls
    Why is the 'http://ourserver.lanyon.com/dev60cgi/' included in
    the URL in PDF and not in HTML?

    hello,
    you might try to use the protocol prefix file:
    e.g. file:///d|/myfiles/test.xsl
    relative urls like d:/... are interpreted differently by
    browsers or acrobat reader.
    regards,
    the oracle reports team

Maybe you are looking for

  • Some settings not saved in Presets file

    I'd like to setup my fme environment with preset Xml files (and with some dirty scripting hacks, we make the app load them automatically). Unfortunately, not all the Device settings are saved. There is a tuner specific Settings tab whose settings are

  • Abap WebDynpro and WDY_EXECUTE_IN_PLACE

    I have implemented a "standard" ALV report in abap web dynpro... I use function WDY_EXECUTE_IN_PLACE because I want to run it in SAP GUI. So far so good. My simple question: Can I navigate via a "call transaction" from my dynpro ALV report to e.g ME2

  • Sales Management Report: RFBILA00

    The program RFBILA00 generates a sales report. It can generate it as: 1. Classical format 2. ALV grid 3. ALV Tree Classical format generates detailed report at the company code level. If summarization without account is used it generates company code

  • Make one bitmap have same "look and feel" as another

    Hello community. First time I am coming across this problem for a client. He wants an old photograph (b/w, scanned) to be the "blueprint" for another one, which he just made with his digicam. The latter is of course quite different in lighting etc.,

  • Messages won't automatically preview received pictures?

    When I had OSX 10.8, the messages app showed recieved pictures that were attached to images automatically. Now I have 10.9 and I have to select the name of the image and hit the spacebar to actually see it.. Is there a way to change this?