Creating Hyperlink from PL/SQL

I have created a procedure to create a course catalog listing and would like to include a hyperlink in the output. Is this possible? If yes, how would I go about doing this?
Any help would be deeply appreciative.

As you are using SQLPlus to create a file, you could use it to obtain a HTML file. <br>
<br>
Supposing you have a table named Courses, with three columns: ID, NAME and URL, you could try something like this: <br>
SET MARKUP HTML ON SPOOL ON HEAD "<TITLE>List of courses</TITLE>"
COLUMN NAME HEADING 'Course Name'
COLUMN URLLINK HEADING 'Link'
SET ECHO OFF
SPOOL C:\LIST_OF_COURSES.HTML
SELECT ID, NAME, '< a href="http://'||URL||'">'||URL||'</a>' URLLINK
FROM MIGUEL.COURSES;
SPOOL OFF
set MARKUP HTML OFF
SET ECHO ONAnd you could open your new HTML file in any browser. <br>
<br>
Regards, <br>
Miguel

Similar Messages

  • Hyperlink from PL SQL Report to a branch

    Hi,
    Is there a "good" way to hyperlink from PL SQL report to a branch?
    I cant use the regular report, as there is a lot of data and I need to control the layout.
    I would like to go to another page and pass data to one known field.
    Have tried googling and I found this page:
    http://www.lucidprocess.com/blog/building-hyperlinks-in-oracle-apex-reports/
    But it seems a bit "hacky", eg.. many places to edit if the page where to move or change in the future (or if one copies the page).
    Is there a more "clean" way to do this, or does one have to get his/her hands dirty for such a task?

    Thank you.
    I managed to write the other code too:
    "f?p='||:APP_ID||':686:'||:APP_SESSION||'::'||:DEBUG||'::P686_TBNR,P686_VIS_REGISTER:'||oppdrag.PE_TBNR_BET||'%2CHUSKNYTT"instead of firing the branch and using JS, I just set the two fields that change the logic and basis of the page. However as you see, the "flaw" with the code I wrote, is that if the fields or anything were to change, it will be harder to go in and edit reports that have this type of code.
    Have just started with APEX, but I must say I like it a lot..
    Just wish there where something inbetween the sql reports and the pl sql reports..
    The possibilities of the PL SQL Reports meeting the SQL Reports flexibility would be super.
    However, maybe it's good not everything is served on a plate, as this forces me to learn it more in depth. I also love challenges and I like making things properly :-)

  • How to Create PR from exeternal SQL Server through IDOC

    Dear all,
    I am in trouble while creating PR from exeternal SQL Server through IDOC . although I have created PR from TCODE we19 giving input as well as from function writen below
    My scnerio is from external system(Sql) want to send data to sap to create PR return PR No to SQl Server
    Not having idea how to do
    Basic Type for Idoc : PREQCR01
    Message Type       : PREQCR
    Function Module    : BAP_Idoc_Input1
    Thanxs in Advance

    if you have XI installed,
    than it would be easy,
    just use JDBC channel->XI->SAP IDOC.
    otherwise,
    you can export the table from the SQL to CSV file,
    and import it with LSMW with IDOC PREQCR01.

  • Creating Universes from a SQL Server 2008 Database....Options?

    Needing to create a Universe from a SQL Server 2008 DB, I am of course finding it difficult at best to get the ball rolling. Support tells me the only option I have is to use Designer, and to not use the "Automated Detection" features because they are not for production environment use <citing business requirement differences as one issue, as was noted during a support call when I was having problems with our VM server literally locking up while the "Automatic Detection" features were trying to run>.
    So what that means is, from what I see, I am expected to manually add all of the SQL DB tables, and then have a Developer spend multiple hours adding appropriate Joins, Cardinalities, Keys, etc. And, whenever there are any DB changes, this has to be done all over again to the Universe to allow for syncronization with the DB.
    This really seems like a heavy load to bear just to be able to use SAP. Is anyone else having these same challenges? Are there other options I am just not seeing? Seems to me Builder needs a SQL bridge honestly.
    Appreciate any help I can get!!
    -Carl

    While it may seem disappointing, as long as you have the data schema and knowledge of the joins and cardinalities, then you've got a lot of the easy stuff sorted out.
    What you need to provide is a presentation layer that is more than just turning the tables and columns into classes and objects. There are often things that you need to create that don't exist in the database, such as objects for relative dates. These can be found in the thread that I created over on the BOB Board here:
    http://www.forumtopics.com/busobj/viewtopic.php?t=152613
    Make sure that all objects have a description
    Make sure that all dates and numbers have a format; there's nothing worse than creating a report and finding your year displayed as 2,011.00
    Use predefined filters - include prompts
    Other useful tips are available here:
    http://www.forumtopics.com/busobj/viewtopic.php?t=15227
    Do you have a set of reporting requirements?

  • Trouble when creating webservice from PL/SQL via jdeveloper

    Hi,I'm new comer of this world,
    I've a pl/sql like this:
    package MY_WS_API is
    type record_set is ref cursor;
    PROCEDURE Get_User_Info(p_user_id VARCHAR2,
    p_rep_id VARCHAR2,
    p_flag out number,
    p_msg out varchar2,
    p_recordset out record_set);
    end MY_WS_API;
    when I using jdeveloper trying to publish it as a webservice, in the step 4 of the wizzard poping me choose the program unit to expose, the PROCEDURE Get_User_Info is not available and told me "Ref cursor Type is not supported due to a jdbc limitation and Ref Cursor Types are only supported for use of return type".
    THE QUESTION is:
    1.the cursor I used is of return type,I'm not very understanding the "why not" message upon.
    2.in such case , need I trans the return cursor into Object[] if have to?
    3.any other limitation for generating WS from PL/SQL using jdeveloper?
    Thanks!

    I had the same problem and found that JDeveloper uses the thin driver to connect to oracle, this driver doesn't support ref cursors or xmltypes etc. You have to assemble your own web service using the webservicesassembler command line utility (i.e. wsa.jar). This link should provide you with all you need:
    http://download-west.oracle.com/docs/cd/B25221_04/web.1013/b14434/wsassemble.htm

  • Firefox no longer creates hyperlinks from email addresses in my emails

    It used to be that when I created an email that contained an email address, the address would be displayed as a hyperlink. NOW the email address seems to be just text.
    I checked the same thing in IE and it still displays the email address as a hyperlink, so I assume the issue is with Firefox.

    Well I would assume the email you received from Apple explains why you can't.

  • Creating messages from PL/SQL

    I have created a button on a form and have some custom PL/SQL code which calls a report with some parameters from the form.
    I want to be able to check if any of these parameters are null, and then give the user a warning message and not do the report.
    I can code the condition to check in PL/SQL, but how do I output a message to the screen.
    Thanks in advance
    Andrew Cleland

    Andrew,
    You can do that from your own "Custom button" event code by changing the value of the following attribute:
    p_session.set_value(
    p_block_name => "_block",
    p_attribute_name => '_STATUS',
    p_value => 'My own message');
    This is the way the standard forms messages appear on the top of the screen.
    Hope this will help.
    Thanks,
    Dmitry

  • Create PDF from PL/SQL-Interface XML FOP / Oracle BI / Oracle APEX packages

    Hi All,
    I think this is perhaps the most often asked question. And people suggest using PL-FPDF or PL PDF. There is a constraint, I can't use PL PDF because of monetary reasons.
    I wish I could use some method to output PDF from the PL/SQL. I already have a document (word document stored as CLOB). Now, I need to output this file as PDF. I know doing this outside database is easy and advisable, but this what I have been asked to do.
    Is there any method of implementation, using either XML - FOP or Oracle BI publisher or Oracle APEX tools (and not Oracle APEX itself, I know how to do this if the application is built, run using Oracle APEX, but this is plain Oracle HTP).
    Database: Oracle 9.2 running in Windows server.
    Thanks in advance.
    Guru
    Edited by: guru paran on Oct 22, 2009 12:55 PM
    Added tags

    Apologies for that.
    I am looking into ways to use Apex. Like calling the FOP in Oracle OC4J server and generating PDF from it. As I told already, we have this application built on Oracle HTP, we can't move to Oracle Apex now. I can install Oracle APEX and use the tools it offers. No problem in that.
    PL-FPDF is free, but I can see this doesn't help much. What I have is CLOB, not data from table. :(
    I am just looking into different ways one can do this.

  • Acrobat X Standard does not creates hyperlink from Visio 2003 files ?

    I am workin in a big company (5000+ employees) and we just migrated from Windows XP to Windows 7 with Office 2010 and from Acrobat Professional to Acrobat X standard
    I am still using Visio 2003 (this is not migrated yet to Visio 2010), and I am not able anymore to generate pdf-files from Visio files with Hyperlinks!
    For excel files it works fine.
    What do we need to do? is there an extra Visio (2003) Add-In module needed for Acrobat X, or do we need to purchase another Acrobat version?
    Please Help!

    Should you submit a use/business need to have the company IT group install Acrobat Pro another reference to add to what Bernd provided is at:
    http://kb2.adobe.com/cps/333/333504.html
    Scroll down to the information for MS Visio.
    You will observe that for Vision 2010 (which you'll most likely be migrated to) you must have the PDFMaker asociated with Acrobat Pro X (for 32-bit only - no support for 64-bit Visio).
    Be well...

  • Steps to create Universe from Microsoft SQL oder Oracle Database

    Hi All,
    i am looking for a document which describe the steps to create an Universe base on Microsoft SQL oder oracle database.
    Thank you in advance
    Pat

    Hi,
    These links may be help for you:
    http://www.bidw.org/business-objects/universe-design/getting-started-with-universe-design/
    http://www.sap-businessobjects.info/universe-design.htm
    All the Best,
    Madhu...

  • Create PDF from PL/SQL?

    Hi all,
    has anybody experiance in creating pdf-files from an Oracle DB (Oracle 8.0.6 on Sun Solaris)?
    Thanks
    Imre

    There is a perl script txt2pdf (http://freshmeat.net/redir/txt2pdf/10849/url_homepage/) that you may be able to use.

  • SDO - how to create lines from PL/SQL

    Hello,
    I need to create a line objet in a table (TRAJECTORY) from selected points on another table (STATION).
    STATION description is
    station_id number,
    trajectory_id number,
    longitude float,
    latitude float,
    shape mdsys.sdo_geometry
    TRAJECTORY description is
    trajectory_id number,
    shape mdsys.sdo_geometry
    I would like to do something like
    update trajectory set shape =
    MDSYS.SDO_GEOMETRY
         2002,
         NULL,
         NULL,
         MDSYS.SDO_ELEM_INFO_ARRAY(1,2,1),
         MDSYS.SDO_ORDINATE_ARRAY
         (select longitude, latitude from station S where S.trajectory_id = trajectory_id)
    It does not work.
    I do not want to use an SQLLOAD because it is supposed to be updated with a trigger or a regular call to a store procedure.
    Thanks in advance for your help,
    Vincent ROBINE

    Thanks a lot for your advice,
    I have tried what you suggest, it seems to work fine for small line, but it does not work for big string.
    For the test I wish to make, I have the following result:
    update cycle_voyage set shape = MDSYS.SDO_GEOMETRY(2002,0,NULL,MDSYS.SDO_ELEM_INFO_ARRAY
    (1,2,1),MDSYS.SDO_ORDINATE_ARRAY(16.641400,42.758900,16.768600,42.597300,16.869500,42.471200,16.9806
    00,42.326300,17.097500,42.184100,17.211500,42.041200,17....
    ...00)) where platform_code = 'YTFL' and cv_number = 0
    longueur : 13690
    BEGIN fillSdoOrdinate('YTFL',0); END;
    ERREUR ` la ligne 1 :
    ORA-00939: too many arguments for function
    ORA-06512: at "CODBA.FILLSDOORDINATE", line 29
    ORA-06512: at line 1
    My procedure is done this way :
    create or replace procedure fillSdoOrdinate (p_platform_code varchar2, p_cv_number number) is
    l_listePoints varchar2(20000);
    l_nbPoints number;
    cursor listeCoords is
    select longitude, latitude from station
    where platform_code = p_platform_code
    and cv_number = p_cv_number;
    begin
    l_listePoints := 'update cycle_voyage set shape = MDSYS.SDO_GEOMETRY(2002,0,NULL,MDSYS.SDO_ELEM_INFO_ARRAY (1,2,1),MDSYS.SDO_ORDINATE_ARRAY(';
    l_nbPoints := 0;
    for curCoords in listeCoords loop
         if (l_nbPoints >0) then
         l_listePoints := l_listePoints||',';
         end if;
         l_nbPoints := l_nbPoints +1;
         l_listePoints := l_listePoints||trim(to_char(curCoords.longitude,'9999.999999'))||','||trim(to_char(curCoords.latitude,'9999.999999'));
    end loop;
    l_listePoints := l_listePoints||')) where platform_code = '''||p_platform_code||''' and cv_number = '||to_char(p_cv_number);
    dbms_output.put_line(substr(l_listePoints,1,245)||'...');
    dbms_output.put_line('...'||substr(l_listePoints,length(l_listePoints) - 50,51));
    dbms_output.put_line('longueur : '||to_char(length(l_listePoints)));
    execute immediate l_listePoints;
    end;
    show errors
    If the 'EXECUTE IMMEDIATE' is limited to 2000 characters, it wont work because this is not the longest line and it is already 13690 characters long.
    Any help would be welcome,
    Vincent ROBINE

  • 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");

  • ORA-12571 error while creating packages from Windows clients

    Hello,
    We are facing the ORA-12571 error while creating / replacing packages from Windows Clients connected to a 8.1.7.2.0 db on a Solaris server.
    However, there are
    1. no errors in connecting and creating transactions from a Sql session
    2. no errors in creating / replacing unwrapped/wrapped small (few lines) packages
    3. no errors in connecting from a Unix session (remote telnet sessions inclusive).
    This happens only when creating wrapped/unwrapped packages, source code of which is greater than 500 kb approx.
    Can somebody help me resolve this issue. Any Help would be greatly appreciated.
    Regards.
    Lakshmanan, K

    Update: I had unintentionally left my custom tablespace in READONLY state after an earlier experiment with transportable tablespaces. After putting the tablespace back into READ WRITE mode and creating a new template, I was successfully able to create a new db from the template.
    I'm still a little curious why this procedure wouldn't work properly with a READONLY tablespace, however.
    Ben

  • How to create hyperlinks in Acrobat 9 Pro?

    Hi everyone,
    Is there a way to create hyperlinks from within Acrobat 9 Pro? If so, can you let me know how? I am having a hard time finding out how to do so.
    Thank you in advance for your help:)
    Christine

    I did this from the advanced menu to make all hyperlinks work. All I got were boxes around my links that are not clikcable to the web page.
    Now I cannot undo this.

Maybe you are looking for

  • How do I determine the # of times a song has been down loaded; 7 is max?

    How do I determine the # of times a song has been down loaded? Is 7 max?

  • Interactive plots in Labview

    Hello I was wondering if it was possible to have interactive plots in Labview. Let me explain: for example I have plotted x by y and in this plot (graph) I want to be able to select data points by clicking the points on the plot. For example these ma

  • Update table record in a sequence

    Hi, There is a table with name Shift Schedule with the columns as ID Name Sr_no 1 XXX 55 2 XXX 44 3 XXX 34 4 XXX 23 5 XXX 12 6 YYY 44 7 YYY 22 8 YYY 11 9 YYY 98 10 YYY 78 I need to update the Sr_no from 1 to 5 where ever name xxx and yyyy is there sr

  • Open source Java proxy server?!

    Hi, I want to use a java proxy server in my application.Can someone suggest me some popular java proxy server with free source code? Also, the proxy should log URL details that the user navigates to. Any help is greatly appreciated. Thanks Aparna

  • Premiere claims Media Cache directory was not found or is not writable.

    Premiere claims Media Cache directory was not found or is not writable. I then change the cache settings to an external drive then it crashes regardless of whether I open an existing file or create a new one. I've re-installed, deleted preferences et