Using dynamic info in html region?

Is it possible to use the output of a query in the source area of an html region?
I'd like to display some data in the source I have in the html region of a page, but I can't find any documentation on how to do that.

Hi,
You have to create a dynamic pl/sql region and use PL/SQL and the Oracle Web toolkit (i.e. htp/htf packages). Also you can reference session state using variables bind (:MY_ITEM) syntax.
Example:
declare
  my_date varchar2(20);
begin
  select to_char(sysdate, 'dd-Mon-yyyy')
  into my_date
  from dual;
   htp.p('Actual date:'|| my_date);
end;Hope that helps,
Paulo Vale
http://apex-notes.blogspot.com

Similar Messages

  • Using bind variables in HTML Region source

    <nl>
    http://apex.oracle.com/pls/apex/f?p=49417:1   workspace: SVK demo/demo
    I am having problems incorporating an item variable into a string of embedded html that should popup a modal video when the button is pressed.
    Item 1 works fine and that is what I want to accomplish with item 2, but when I pass :p1_url, it does not work even though the contents of the two items text areas equivalent.

    svk1965 wrote:
    If you look at my app, you'll see what I am attempting. Click on the button "Pass Hardcoded URLs in Variable to HTML Region" and a modal video will pop up. The goal is to display video in a modal window. The first example in my app works just fine. It is the second one that is causing me problems. BTW - Sequence 18 in the second DA does the same thing as Sequence 10 in the first - and it does work there so I am not sure that removing it is the right thing to do. I am not trying to set a region value per se, but populate the region source and sequence 10 does just that. So I don't think it is "useless" as you say.I can't see anything in the documentation or any previous posts here that indicates that DAs are supposed to work that way. If you can point me to some I'd like to see it. Which is not to say I like the idea. Plays too fast and loose with terms and concepts.
    Rather than trying to use a "Set Value" DA, my understanding would be to manipulate the region content via an "Execute JavaScript Code" DA, which works exactly as intended.
    I'll have to investigate this DA behaviour with a simpler example that doesn't involve hidden regions and Dynamic Acrion plugins.

  • Use apex_util.get_blob_file_src in HTML region as a source of a PDF file

    Hello,
    How to make apex_util.get_blob_file_src servers as a src attribute of HTML Tag in an HTML region source ??
    my code :
    <div style="">
    <embed height="100%" width="100%" name="embed_content" src="apex_util.get_blob_file_src('P126_FILE',FILE_id)" type="application/pdf" />
    </div>So, I have PDF file in Blob. But The source here does not get rendered... What SRC do I have to use ??
    Regards,
    Fateh

    Hi Fateh,
    How to make apex_util.get_blob_file_src servers as a src attribute of HTML Tag in an HTML region source ??my code :
    <div style="">
    <embed height="100%" width="100%" name="embed_content" src="apex_util.get_blob_file_src('P126_FILE',FILE_id)" type="application/pdf" />
    </div>So, I have PDF file in Blob. But The source here does not get rendered... What SRC do I have to use ??>
    Please see the example here http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21676/apex_util.htm#CHDICGDA.
        THEN '<img src="'||apex_util.get_blob_file_src('P4_DOCUMENT',id)||'" />' The API gets called in a PL/SQL block, not embedded into a HTML tag.
    Cheers,

  • How use parameters on a html region for report query region

    Hi all.
    I have created a number of report regions which initially query some data.
    The requeriment now is to have a date range (initial and final) and use this range as a parameter for report queries.
    i created a new region containing these two date values. Now i need to:
    - Give this date fields and initial value: say first and last day of current month.
    - Perform a validation to ensure initial date is less or equal to final date.
    - And most importantly, i need to reexecute the queries based on this date range.
    How do i do it...?
    Thanks in advance ...!

    Start here http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21679/toc.htm#
    http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21674/concept_ses_val.htm#HTMDB25030
    I can guarantee that it will be easy

  • Use a static file as HTML region source

    Hi All,
    Sorry for maybe trivial question, but is there a way to use static files as HTML region source? The files are simple enough but have to be translated so we'd rather keep them as static files, rather than paste them in multiple region sources to display conditionally.
    I tried something like
    <embed src="#WORKSPACE_IMAGES#&FSP_LANGUAGE_PREFERENCE.file01.txt" >
    This however is showing the HTML source on screen and not rendering it as html.
    The other option I tried is creating an URL region that would get the content from the same server, e.g.:
    http://localhost:9080/apex/wwv_flow_file_mgr.get_file?p_security_group_id=4874627831984398&p_fname=en_file01.txt
    ... but I'm running against an access control list (ACL) error. The file opens when one loads the link directly in a browser but localhost apparently is not allowed in ACL and I would not have sysdba access where I deploy.
    finally I saw recommendation to use an iframe in a similar discussion to display pdf file here Display PDF in Apex Region land tried
    <iframe src="#WORKSPACE_IMAGES#&FSP_LANGUAGE_PREFERENCE.file01.txt&embedded=true" style="" ></iframe>
    but receive "Not found
    The requested URL /apex/wwv_flow_file_mgr.get_file was not found on this server" as if the file name is not received at all? Same name is parsed correctly in the embed tag.
    Please help
    Atanas

    Hello Atanas,
    >> the shortcuts text does not get into the translations …
    Just so you know, and for future reference, the shortcuts of type Message are fully translatable (as mentioned in the documentation Jari pointed out to you).
    Regards,
    Arie.
    &diams; Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.
    &diams; Author of Oracle Application Express 3.2 – The Essentials and More

  • How to add a link to html region to fire a dynamic action?

    Hi, guys:
    I need to add a hyper link to a html region (I wish it could be a button :( ) , the value of items in this region is loaded by a pl/sql process before loading header. And this link needs to fire a dynamic action to update database. I know how to add a hyper link to this region, but how to set this link so I can fire a dynamic action by clicking this link, could anyone give me a hint?
    Thanks a lot in advance.
    Sam
    Edited by: lxiscas on Apr 11, 2013 5:04 PM

    Hi, Jorge:
    Thanks for your reply. I cannot use updateRec, I have to use my own PL/SQL procedure. I tried to use similar way as people set dynamic action for modal page.
    I set column link for ncic_approve_link
    SELECT SOR_ALIAS.ALIAS_ID,
    SOR_ALIAS.OFFENDER_ID,
    SOR_ALIAS.FIRST_NAME|| ' '|| SOR_ALIAS.MIDDLE_NAME|| ' '|| SOR_ALIAS.LAST_NAME || ' ' ||  SOR_ALIAS.SIR_NAME   AS " Alias Name ",
    NVL(SOR_ALIAS.NICKNAME, 'No Nick names ') AS "Nick Name",
    (case when SOR_ALIAS.ncic_verify_date is null then 'NCIC' else null end) ncic_approve_link
    FROM SOR_ALIAS
    WHERE SOR_ALIAS.OFFENDER_ID    = :p216_detail
    AND SOR_ALIAS.ADMIN_VALIDATED IS NOT NULL
    AND upper(SOR_ALIAS.STATUS)    = upper('active')the link attributes is
    onclick="return false;" class="alias_ncic" title="NCIC Approve"then I pass two values to two hidden variables:
    P216_H_NCIC_APPROVE_TABLE_NAME--->'SOR_ALIAS'
    P216_H_NCIC_APPROVE_KEY_VALUE--->#ALIAS_ID#
    and I declare a dynamic action to execute PL/SQl code as :
    event: click
    selection type: JQuery seclector
    JQuery selector: a.alias_ncic
    declare
    begin
      sor_admin.update_NCIC_verify_date(:P216_H_NCIC_APPROVE_TABLE_NAME, :P216_H_NCIC_APPROVE_KEY_VALUE);
    end;However, the PL/SQL was called but raised exception that both the parameters are null. It looks when user click the column link, the value is not passed to hidden items. Could you help me on this?
    APEX 4.1
    Oracle 11G R2
    Thanks.
    Sam
    Edited by: lxiscas on Apr 29, 2013 10:00 AM
    Edited by: lxiscas on Apr 29, 2013 10:01 AM

  • 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.

  • Using htp.p for print dynamic data in apex region make my page slow?

    Hi, everyone!!! My name is Rafael, and...
    I search in the web and in this forum but i can´t find a answer for my doubt.
    Using the procedure htp.p for print dynamic data in apex region through on demand process , this will leave my webpage slow to load when the user access?
    Example:
    For build a menu in my webpage, it´s read a function in the database that returns variable string, so by a demand process this string is obtain and print in a web page using htp.p.
    I notice that this practice causes slow to load the data on the page.
    This is it...
    If someone help me, thanks...
    bye and Happy new Year!!!
    Edited by: user9518141 on 26/12/2009 17:19

    Hi,
    Try commenting out the function call and print some sample text in the htp.p like htp.p('Hello world..');
    I think the function call is probably taking a lot of time .. not htp.p.
    I have used htp.p to print out values dynamically in a lot of situations and have not ever come across any performance issues.It could be a problem with the function you are calling.
    Thanks,
    Rajesh.

  • Using a Target in an HTML Region

    Hi, I have a page with an HTML Region, which links to an external html page. The external page has links to other, secondary external pages. I'd like for the secondary links to open and replace the original external page within the same region on my HTMLDB page.
    I've considered trying to create a FRAME inside the region, then using the HREF TARGET= in the external files to point to that FRAME. But, I'd like to be able to do this without manipulating the html code inside the external pages (though that might be an option if I can't get there without doing so).
    Any other ideas?
    Thanks as always for your help...
    Mark

    Mark,
    Try using an iframe rather than a frame

  • 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

  • Use SESSION variable in URL from HTML region

    Hello,
    I have what looks like a simple question but i've been struggling with it for three days now, and i need your help!
    I have a page, with an HTML region. I want to display some links to other pages within the application, so i thought i'd use this:
    a href="http://server.xxxx.com:7777/pls/htmldb/f?p=114:13:&SESSION"
    But the session ID is not interpreted, and the link doesn;t work. Any idea what's wrong here? or how i should create links with the session id in it?
    Thanks!!!! Matt
    Message was edited by:
    matt_amsterdam

    Matt,
    You've missed off the period (.) off the end, use &SESSION. instead

  • (Solved) Calling a different page using HTML Region as a part of other page

    Hi All,
    I want to open a page as a part of other page as it is done using frames in HTML.
    For example :
    <html>
    <head>
    </head>
    <frameset cols="30%,*">
    <frame src="menu.html">
    <frame src="content.html">
    </frameset>
    </html>
    Now I want to use the HTML Region and try calling different page developed in the same application. How can I acheive this task.
    Hoping for a quick and easy solution for this.
    Thanks in advance.
    Regards
    Arif

    Once Agian Thanks Andrews
    http://www.dynamicdrive.com/dynamicindex17/iframessi2.
    htmThis web page i suppose is presently not available, atleast i'm not able to open it.
    Hope there are some more sites.
    I'm trying to search on Google but as I do not have much information about Java Script so cant identify the exact solution.
    Hoping to get some predeveloped JavScript that works with Internet Explorer and Mozilla Firefox atleast.
    Thanks once again.
    Regards
    Arif

  • Dynamic text box generation in jsp page by using net-ui jsp html tags

    Hi All,
    I Need to generate the "TextBoxes" Dynamically by using the "Net-UI HTML Tags".How can i do this ?
    I am using
    1. WebLogic portal server 8.1 sp4 (Workshop dev environment)
    2. JavaPageFlow Applications
    3. Net-UI tags html jsp
    I need to generate the textboxes dynamically and i have to
    get those values in the page flow .
    How it is possible by using the "Net-UI Tags".
    Thanks In Advance,
    KiranBabu.Karusala

    how we create dynemic text box in jsp based one value which we give at runtime

  • Problem pulling HTML region using AJAX

    Hi,
    I am using Ajax with Oracle apex, it pulls the report region ok, but when i try to pull the html region, it doesn't. I tried several different ways and in firefox, it does pull the html region but not also pulls the header and footer. On IE, it gives a javascript error.
    Is there any way to pull the HTML region from a page using AJAX on IE. I am using the htmldb_get.js's functions for ajax.

    see
    http://apex.oracle.com/pls/otn/f?p=11933:48
    working perfectly with latest version of apex on ie, ffox and opera.

  • Retain call info using dynamic label

    Hi
    Im using dynamic labels together with vxml app so depending on what e164 number the fromExtvxml variables is populated with the dynamic label diales to these extensions. Only problem with this as you all may know is that after label node in a dynamic label the script cannot continue. As i also need to have queuing if the dialed out phones do not answer. How could this be accomplished? Is there any way to use last label to be a dialednumber plan pattern or something else? I could for some smaller customers use a separate dnis / script for queuing but it will not fit all needs in the long run.
    Sent from Cisco Technical Support Android App

    I solved it. It works perfectly fine to do queuing after a dynamic label. Dont know why others says it does not work
    Sent from Cisco Technical Support Android App

Maybe you are looking for

  • How: can i get a specificated item from a list with more than 100.000 items

    Hi, i have a very large list and i got always an exception that the list has more than 5000 items and cant query!! But in the default list view i can see, order and filter all items. So how can i do this by c#?

  • A question in appending data to excel

    Hi, Just a quick question, when I tried to use "write file" component of transactions to append data (eg. 00012345) to .csv file, Excel automatically converted  it from "00012345" to "12345" . Anyone can tell me how to modify the expression in the Li

  • Goods movement from Maintenance order

    Hi Experts I have the following scenario, I have a component ( with Material master) in the maintenance order  and i use Item category N to trigger  a Purchase requisition. The Pur Req is converted to Purchase Order and then the GR is done directly t

  • Photos keep getting rearranged or disappearing

    Each week, I have to take a bunch of pictures and set them to an audio recording as part of my job, and I've been using iMovie to do this since the start of the year.  Basically, I just drag all my photos into iMovie and then drag the audio on top of

  • Please HELPPP! Apple ID messed up

    Please Help me...My husband decieded that he wanted to switch his Galaxy for my old Iphone 4s. So we did the switch online...I totally reset the phone to factory settings so he could get it all set up. Once he got his Icould and apple id all set up A