Display PL/SQL funtion output in HTML Region dynamically

I have a form/report with just 2 items (one is hidden). When I click on the displayed field, I would like the output of a function/procedure (with the form/report field as argument) to display in a region on the same form. I already have a function with varchar2 as return value and also a procedure that prints out html output through htp.p package.
But couldn't figure out how to connect the form and the region and be in sync.
I have a chemical structure data stored as CLOB in the DB with an ID. Basically, clicking on the ID should pass the CLOB to the procedure that outputs the <embed and so on tags for a plugin to display my chemical structure.
Any help/guidance is appreciated.

Hi Carl,
Thanks for the post. I tried the static value and it works (structure displays). My problem is for it to pickup on the value of my field.
I could give you my login credentials on htmldb but I am not sure if that would help as you would need the plugin installed on your browser (frre version may be available at www.mdl.com and search for "chime").
I have something along these lines in procedure.
htp.p('Hello World, I am ' || :APP_USER);
htp.p('<table border=1 cellpadding=1 cellspacing=0 width=550><tr><td align=middle valign=top><font face=arial size=2>');
htp.p('<input type=hidden name="queryrxn" value = "'|| :MOLCHIME ||'">');
htp.p('<embed type=chemical/x-mdl-molfile width=300 height=100 queryformbox="document.query.queryrxn" structure='''||:MOLCHIME||'''></td></font>');
htp.p('</tr></table>');
Thanks for any input.
Sridhar

Similar Messages

  • Display word/pdf document in the HTML region or report

    Hi,
    How to display blob content stored in a table in HTML region or report region.
    I already have a process to display the image content.
    But my question here is how to display word/pdf document within the html region so that the user can read the document without downloading it.
    Any suggestions/solutions would be of great help.
    Thanks in advance...
    Thanks,
    Ramesh P.

    I was dead wrong.
    The display of images from BLOB is a special case because APEX provides a Display Image item type.
    Moreover, HTP/HTF packages also do not provide for handling of BLOB content. So AJAX cannot be used.
    Which implies that the only way to get binary content, other than images, is with the use of a WPG_DOCLOAD.DOWNLOAD_FILE call.
    This in turn implies that it may not be feasible to "inject" the BLOB into an exist HTML DOM in the Browser.
    Regards,

  • Add Html Regions Dynamicly

    Hi,
    Is there any way I can add html regions dynamically to the page.
    Depending on the number of rows returned by the refcurcor, I want to add the html regions.
    Please advise.
    Thanks.

    machan wrote:
    Is there any way I can add html regions dynamically to the page.
    Depending on the number of rows returned by the refcurcor, I want to add the html regions.
    Please advise.It is not possible to dynamically generate <em>regions</em>&mdash;HTML or otherwise&mdash;in APEX. All regions must be created statically using the Application Builder.
    It is of course possible to generate HTML <em>content</em> dynamically using predefined report, list and PL/SQL regions.

  • Save SQL select output as html page on another box.

    How can I save a simple sql select output on another server as a html page?

    Hi,
    You can use the Oracle product WebDB (Oracle Portal) to create reports in HTML over the DB (simplest way).
    Instead You can use SQL*Plus on the remote server (where You want to spool), enable the spool to file (using SPOOL) and create the select as
    SELECT 'html tags' &#0124; &#0124; field/s &#0124; &#0124; 'html tags'
    FROM your_table;Using this solution You have to manually "draw" the report.
    Hope this helps.
    Bye Max
    null

  • Can't display  xml sql function output in concuurent progarm in oracle apps

    I am able to get the xml output for this query in TOAD.
    but when i register this as sql*plus concurrent program,and run it and see output file , it has 0 bytes in it.
    Can anyone did this befor?
    Otherwise can any one suggest how to write this content to a file using UTIL_FILE ?
    SELECT
    XMLElement(
    "PoList",
    XMLAttributes(
    'http://www.manh.com/ILSNET/Interface' as "xmlns" ),
    XMLAgg(XMLElement(
    "PurchaseOrder",
    XMLForest(PURCHASEORDERID as "PurchaseOrderId"),
    XMLElement("Vendor",XMLForest(
    shipfrom as "ShipFrom"
    XMLElement( "ShipFromAddress", address1
    (SELECT XMLElement("Details",
    XMLAgg(XMLElement(
    "PurchaseOrderDetail",
    XMLForest(
    LineNumber as "LineNum",
    item as "Item"
    FROM cpo_wms_podl_lines pl
    WHERE PURCHASEORDERID=ph.PURCHASEORDERID)))).getClobVal() into result
    FROM cpo_wms_podl_HEADERS ph
    where rownum<10 ;

    Which database version are you using (all numbers please)

  • How to Display PHP Output as Portlet in HTML Region using utl_http.request

    I wanted to be able to parse PHP functions to add more functionality to my Page. nothing fantasy, something simple like: http://phpsysinfo.sourceforge.net/phpsysinfo-dev/?template=classic
    Where the realtime values are retrieved from the OS. this represent some kind of problem to me, I know how to do it from Shell Script, Perl or PHP, but not from PL/SQL.
    Based on my experience using Oracle Portal, Portlets, I think we really can make use of the feature used in Portal called Web Clipping. [ This feature basically goes to some Site a retrieve part of the site to show in the current page]. Well the PL/SQL utility utl_http.request does something similar.
    Make sure your request page does not retrieve some headers because that would cause a problem in your page and will not show up.
    This is what I did:
    <b> 1.- </b> Grant Privileges to execute [ <b> utl_http.request </b> ] to the owner of your schema.
    login into the OracleXE / APEX as SYS then go to the Object Navigator, then click on packages, find the utl_http.request then click on it, later click on grant and select your schema owner for your applicaion.
    <b> 2.- </b> Logout as SYS then login as your application schema user. just to test the functionality go to the sql command then enter the following command and then click run:
    <b> select substr(utl_http.request('http://www.oracle.com/'),1, 255) from dual; </b>
    If your output is:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>Oracle 10g, Siebel, PeopleSoft | Oracle, The World's Largest Enterprise Software Company</title> <meta name="title" content="Enterprise Applications | Database | Fusio
    <font color='blue'> Wow It worked </font>, this really could be useful !!, If not go back to step 1 and check your permissions to execute, or perhaps your Internet connectivity.
    3.- Once we know the package works and we can retrieve content from the Internet. lets go to some of our pages add some HTML Region.
    4.- Create an item and put into the new region. the source will be SQL, For the purposes of my test the query to the Oracle Page failed, so I decided to give a shot with a simple PHP script with no headers.
    The internal server is: http://mytest.com/hello_world.php
    Where the content of the hello_world.php is:
    <?
    echo '"<b> Hello World </b> ";
    ?>
    This PHP works fine and display the basic Hello World. can be the same server or not, also noticed this can be another port perhaps using something like Ruby,Mason or Java.
    <b> 5.- </b> Finally in my Item the source type is SQL and looks like this:
    <b> select substr(utl_http.request('http://mytest.com/hello_world.php'),1, 255) from dual; </b>
    Apply the changes and run the page !!!
    Excelent It worked as expected. now you know how use utl_http.request to create webclipping in your OracleXE / APEX from remote pages, or how to use it to parse the output from CGI, Perl, PHP, Ruby or Java pages.
    Note: [ Just make sure to strip the headers or parse into a PL/SQL Procedure to clean then show ]
    Best Regards <b> Dino </b>.
    Brains R Like Books only work when they R Open.
    http://www.htmldbhosting.com/

    Sorry, from your post in the LabVIEW board I did not understand that it was the Output message that you were looking for.
    I thought you wanted the results from your test steps displayed on the user interface. 
    It is the “Output Panel” in the sequence editor that displays your output message, but I do not know if there is default Output panel activeX indicator for user interface that the TestStand engine would update automatically like it does the execution view.
    Maybe someone else knows 
    As also pointed out, the UI messages is your other option.
    The Output Message event number is 40 
    http://zone.ni.com/devzone/cda/epd/p/id/3879
    UIMsg_OutputMessages–(Value: 40) TestStand sends this message at periodic intervals when it holds references to output messages that calls to the OutputMessage.Post method queue. TestStand transfers the queued messages to an OutputMessages collection attached to the UIMessage.ActiveXData property for this event. An application that processes output messages should copy the output message references from the collection in UIMessage.ActiveXData to its own private OutputMessages collection by passing its private collection to the OutputMessages.CopyMessagesToCollection method. An application calls the Engine.NewOutputMessages method to create a private OutputMessage collection. TestStand generates this event only if the Engine.OutputMessagesEnabled property is True. Because there can be more than one handler for this event, the application should not modify the OutputMessages collection the UIMessage.ActiveXData property holds.
    Omar
    Message Edited by OmarGator on 10-09-2008 10:12 AM

  • SQL query result with HTML Data in output

    Hello,
    I have a SQL table , in one column I store HTML data. I need to query the table and get the HTML data in the columns that have 'HREF'. The output shows as grid on the sql management studio, however when I export it to excel, the HTML data does not get copied
    correctly, since there are HTML tags etc.
    How can I export the report correctly from SQL ?

    Hello,
    The HTML data is stored in a column with datatype as nvarchar(max). Sample data in the column is shown below. It is with formatting etc and is rendered as is on the web page. the business wants to generate a quick report so that they can see the pages that
    have links displayed. I can do that by querying the columns that have a 'HREF' in the text.
    Can I get the exact HREF values using just sql query? There can be more than one links on a page.
    Also, If I just want to copy the whole column and paste it on excel, how can I do that? If I copy the data below and paste, it does not get copied in one cell.. it spreads across multiple cells, so the report does not make any sense.
    <br />
    <table border="0" cellpadding="0" cellspacing="0" style="width: 431pt; border-collapse: collapse;" width="574">
    <tbody>
    <tr height="19" style="height: 14.25pt; ">
    <td height="19" style="border: 0px blue; width: 431pt; height: 14.25pt; background-color: transparent;" width="574"><a href="https:"><u><font color="#0066cc" face="Calibri">ax </font></u></a></td>
    </tr>
    </tbody>
    <colgroup>
    <col style="width: 431pt; " width="574" />
    </colgroup>
    </table>

  • Display Blob content in HTML Region

    Hello,
    I'm trying to display the contents of an .htm file in an html region. I can get it to display as a link but I can't get it to display as an image. I have a page item that is display as text (do not save state). For the source value I use a PL/SQL function body. I use the following code to display the image,
    return '<img scr="#OWNER#.get_help_doc?p=U76.htm></img>';
    I get the broken link symbol.
    However, if I display it as a link as follows, it works:
    return '<a href="#OWNER#.get_help_doc?p=U76.htm'
    || '">Help</a>';
    How can I display the .htm file as an image? Thanks, Elizabeth

    I found my answer in message
    http://apex.oracle.com/pls/otn/f?p=11933:120:3919935161915118::NO:RP::.
    I used the <embed src=>
    Elizabeth

  • SQL queries inside html region

    Hi,
    I have html page in my application and i need to display result of the sql query inside this page. I would like to know if i can use the sql queries in html and if yes how can do that.
    My query is select count(*) from Quote Letter master where service = 'Premier Support'
    And i have similar queries like this which i would like to use in the html region.
    Thank you,
    rakesh

    rakesh119 wrote:
    Hi,
    I have html page in my application and i need to display result of the sql query inside this page. I would like to know if i can use the sql queries in html and if yes how can do that.You cannot/should not write sql queries in your html, but in APEX there are different ways to achieve this such as Page Items, PL/SQL Dynamic Content Region etc.
    My query is select count(*) from Quote Letter master where service = 'Premier Support'.For this you better use a page item and compute the items value using a page computation on on-load before header point. Then you can place the page items in a APEX region and also add any styling

  • How to display the value of a javascript variable in a html region ?

    Hello,
    I need to display my page title or name in a html region.
    I added a script in the <title> section of the template header... :
    (thanks Andy : Get page name from page attributes ?
    <script type="text/javascript">
    var pageTitle = '#TITLE#';
    </script>... so I can use it in a javascript variable.
    But now I don't know how to display it in a html syntax..
    Thanks!
    Fanny

    ... so I can use it in a javascript variable.Don't see any reason to modify page templates to introduce an unnecessary global JS variable when the document property is already there. Display it using an appropriate HTML element, e.g <tt>h1</tt> if it's the overall page heading.
    <h1>
      <script type="text/javascript">
        document.write(document.title);
      </script>
    </h1>

  • Formatted HTML output with Spry regions - is it possible?

    I have recently begun using the XML export extension in
    conjunction with an Access database to output dynamic data into a
    page with a Spry master/detail setup. So far, my simple example is
    going great, but I've run into a snag that I need some help with.
    To explain what I'm doing - it's a simple article page with
    the list of articles on the left with the title and date and the
    article title and full contents on the right hand side. So far it's
    all working very well, updating in real time when I click an
    article title on the left. The problem is the output with this one
    field which stores not only text, but also HTML formatting that is
    generated by a wysiwyg editor used on the article creation side of
    this little app. This HTML formatted content is the article body
    and is stored in a field named the same - "body". With traditional
    ASP, the HTML formatting displays as expected and all is well, but
    with Spry, it doesn't output formatted HTML, but instead shows the
    content and HTML code together as text. How can I get this one
    field ("body") to be output so all the HTML formatting is shown?
    This is my simple page example. Click through and you'll see
    what I mean.
    http://www.shoestodyefor.com/ajax.asp
    Here's the section of code in question regarding the output
    on that right hand panel where the body is displayed for each
    article:
    <div spry:detailregion="ds1">
    {title}<br />
    {entryDate}<br />
    <br />
    {body}
    /div>
    Is it possible to have that {body} section shown so the
    dynamically created HTML code from the wysiwyg editor is displayed
    correctly?

    Steve Skinner wrote:
    > Is it possible to have that {body} section shown so the
    dynamically created
    > HTML code from the wysiwyg editor is displayed
    correctly?
    The version of Spry that ships with Dreamweaver CS3 (Spry
    1.4) doesn't
    support the type of output created by the XML Export
    extension.
    This issue has been corrected in Spry 1.5, but no plans have
    been made
    public for integrating Spry 1.5 into Dreamweaver CS3. You
    would need to
    download Spry 1.5 from
    http://labs.adobe.com/technologies/spry/.
    Details
    of how to hand-code the fix for output from XML Export are
    here:
    http://labs.adobe.com/technologies/spry/samples/data_region/HTMLFragsInXMLSample.html
    David Powers, Adobe Community Expert
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Possible to display null item value as 'All'  in blank HTML region?

    Apex 4.1
    Theme 21
    Hi There,
    I have select list which has null and other values. I have created a blank HTML region with the following text
    Report for the year &P2_YEAR. and for geography &P2_GEOG.
    Now P2_YEAR works fine because, it is always populated with a year. However, &P2_GEOG has 'All' as null value since we can see the report for all geographies. However, if the all option is selected, the above &P2_GEOG. shows as null. Since its not a PL/SQL proc, I cannot put in a NVL. I am guessing one possible way is to write a PL/SQL code before region and then check if its null and then try to populate a new hidden field and show, something like that. Wondering if there is a way to do it directly in the HTML region?
    Thanks,
    Sun
    Edited by: ryansun on Jul 2, 2012 12:49 AM
    Edited by: ryansun on Jul 2, 2012 12:50 AM
    Edited by: ryansun on Jul 2, 2012 12:55 AM

    Hi Morten,
    in the validation callback you could use apex_util.set_session_state to modify the page items value. We do that ourself in the "Number Field" native item type plug-in.
    Regards
    Patrick
    Member of the APEX development team
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • How to display RTE item in a HTML region

    I have a process that is populating a hidden item with a RTE item from another page. I need to display this in its formatted state. I am using an HTML region to display this item but the page shows HTML tags instead of rendering them. I have tried both options under html region (escape special characters and plain HTML text).
    Can someone please help me to display this formatted RTE item on a page? Btw...I am using APEX 4.0.
    Thanks.
    Ashwen
    Edited by: Ashwen on Jul 26, 2010 2:23 PM

    user12601765 wrote:
    did you figure out how to display RTE item in a HTML region? Can you share with me how you did it?No he can't. He's not been active on this forum for over a year, and is totally unaware of your post as watches on threads only persist for a few weeks. Please stop posting follow-ups to ancient threads. Many of the participants in such threads will no longer be active on the forum (check the "recent messages" in their profiles).
    Posting follow-ups to ancient threads/departed users is NOT an effective way of getting help:
    <li>Other users may ignore the thread as it appears to be closed
    <li>Your assumption that the questions are related may be incorrect, leading to confusion about the nature of the problem and potential solutions
    <li>Watches on the thread may have expired, so the original participants may be unaware of the new post, or they may no longer be active on the forum
    <li>You have no ability to mark posts as helpful or correct
    Post your question as a new thread, including at least the following information:
    <li>APEX version
    <li>DB version and edition
    <li>Web server architecture (EPG, OHS or APEX listener)
    <li>Browser(s) used
    <li>Links to related posts and threads using the methods in the FAQ.
    Please read the FAQ and forum sticky threads for more information on using this forum effectively.
    From the information in the Allow users to use Rich Text Editor to build their own HTML/Apex Page you resurrected:
    >
    I am a business user developing apps, so my technical skills are limited.
    >
    you should be considering Websheets. (See this tutorial as well.)
    Also, please update your forum profile with a real handle instead of "user12601765".

  • How to display chart region based on select list in html region ?

    Hi all,
    i'm using 4.0.1.00.03 apex version,in a page i have 2 regions one is html and another one is Chart region.in html region i have a select list and button.when user sign into my application select list have some values in that page,user select's a value and clicks on the button then chart will be displayed.my query is when user first sign into my application i want to dispaly chart region when only select list is selected and clicks on the button.can any one guide me on this.
    thnx in Adv.

    Hi yann,
    thnx for ur reply,
    i have done what u have written but i didn't meet my requirement..
    let me explain what i need exactly
    as of now my application is like this..
    i have a html region in that i have select list(P6_LIST) and go button
    and chart region.
    chart query is like this..
    SELECT your_value
    FROM your_table
    WHERE your_value = :P6_LIST
    AND ...
    how it is working??
    when user sign into my application, user can see html region with 'select list and go button' and chart region with 'no data '.
    when user select a value in select list and click on go button automatically chart region will be dispalyed with chart.
    what i wanted to change is..
    when user sign into my application, user can see html region with 'select list and go button' and no chart region
    when user select a value in select list and click on go button then only user can see chart region with chart.
    plz help me how to do it.. :)
    thnx in Adv.
    Edited by: moulani on Nov 4, 2011 12:05 PM

  • Beginner ?:  How to align Items in HTML Region so they display nicely?

    I am new to Application Express so please be gentle....
    I have an HTML region that contains several items/fields that I am using to gather user input. So my Page or HTML region looks something like the example below.....
    Name:__________ Birthdate:_________
    Address: _____________________ City:__________ State: _______
    So with the example above in mind how can I get the fields "City" and "Birthdate" to line up nicely on the page so that they would appear something like.....
    Name:__________ Birthdate:_________
    Address: _____________________ City:__________ State: _______
    I have tried changing all kinds of things such as Begin on New Line, ...Field, Colspan, Rowspan. In playing with these various settings I am unable to make any headway with aligning the fields on my page so that they display nicely....but I AM making progress at confusing myself as to how AppEx actually stores the labels and fields. I never seem to be able to control the spacing between the fields being displayed.
    So with all of that said....is there a way to make page items line up in an HTML region? There seems to be no issue getting the first column of each new row to line up (Begin on New Line = Yes) but when in comes to lining up the 2nd and 3rd fields on a row I am at a lose. Looks like I could also use a lesson in how labels and fields are stored within underlying AppEx HTML tables.
    Many thanks in advance for any and all responses.

    Hi Andrei,
    Thanks so much for your response...it got me to realize what my issue really was......What you listed above in your response to my plea for help is almost what I had but I was so concentrated on the small fields that I had that I failed to notice that my problem was the text area below those fields which takes up quite a bit of space on the screen...so what I finally realized (bonehead / rookie mistake on my part) was that my fields were lining up in the second column but the second column did not start until the end of the text area.
    So I am going to look into moving my text area fields to a separate HTML region so that the smaller sized fields above will line up nicely.
    Thanks again for your response and helping me to step back and look again.
    Best regards,
    Shellie

Maybe you are looking for

  • How to read data from a excel and HTML file

    Hi     I am writing an 2D-array of string into Excel/HTML file using Report generation.     Can anybody tell me how to retrieve back the written data from the same files again and view in array format. Thanks & regards Visuman  Solved! Go to Solution

  • Download older version of a file from SharePoint Document Library using CSOM and 404 error

    Hi, I am trying to download previous versions including Major and Minor versions of documents from SharePoint Online using CSOM. I get 404 error when I try to download the file. I found several posts on various discussion forums where people are gett

  • Error in RFC-XI-JDBC scenario

    Hi All,   I have a Interface like RFC-XI-JDBC and triggering the RFC in SAP system i am getting the error like "<b>alternativeServiceIdentifier: party/service from channel configuration are not equal to party/service from lookup of alternative</b>".

  • Iphone 5 battery replacement problem.

    The battery for my iPhone 5 needs to be replaced. It's been showing the red needs charging sign for over a week now, and even after I left it charging for over a day it didn't start. I was looking through similar complaints and I was more than sure i

  • Hidden Tools always appear

    I'm running CS4 on a new unibody Macbook Pro. Whenever I click (just a regular ole' single left click) on the tools, all of the hidden tools also appear and then I have to select the appropriate tool or click out of the panel. When I first installed