Refresh display image item without reload page

hi all, is a way to refresh (requery) a display image item to change the image via botton and do not reload page ?
thanks
Edited by: Reza.Gh. on Sep 24, 2012 11:56 AM

I create a sample app :
https://apex.oracle.com/pls/apex/f?p=9310:1
code of item  P1_CAPTCHA_IMG :
SELECT captcha_img FROM captcha WHERE response = :P1_CAP_V;
item P1_CAP_V  code (computations) :
SELECT *
FROM (
SELECT response
FROM captcha
ORDER BY
dbms_random.value
WHERE rownum = 1 ;
Refresh botton code :
action 1 :
SELECT * into :P1_CAP_V
FROM (
SELECT response
FROM captcha
ORDER BY
dbms_random.value
WHERE rownum = 1;
action 2:
refresh item P1_CAPTCHA_IMG

Similar Messages

  • How to get Value of tree node without Reload Page

    hi,
    i worked with apex 4.2 and i created Tree and tabular form to retrieve the date according the value of tree select node the code of tree something like this
    select case when connect_by_isleaf = 1 then 0
    when level = 1 then 1
    else -1
    end as status,
    level,
    "ENAME" as title,
    null as icon,
    "EMPNO" as value,
    null as tooltip,
    'f?p=36648:34:5234984107903::::P40_SELECTED_NODE:'||empno as link
    from "DEPT"."EMP"
    start with "MGR" is null
    connect by prior "EMPNO" = "MGR"
    order siblings by "ENAME
    and i put Selected Node Page Item: P40_SELECTED_NODE . the tree worked good and retrieve the data into tabular form according to tree node value
    my Question :
    1- i want to retrieve the data without submit the page where each time i select value from tree make page reload to update the tabular form with new value ,there is any way to pass the value of tree node to P40_SELECTED_NODE item and refresh tabular form without page reload .
    2- i want when selected from tree run page process according to value of tree node i tray to create Dynamic action with *(jquery selector : div.tree li>a)* but the Value of node incorrect.
    Regards
    Ahmed;

    look at this link
    Re: How to get Value of tree node without Reload Page ..!

  • Apex 4.0 display image item :BLOB column returned by SQL statement

    Hello
    I'm creating an display image item in apex 4.0. The source is a BLOB column returned by SQL statement.
    When I'm issuing an sql statement like this:
       select lado.blob_content
       from   large_documents      lado
       ,        large_doc_headers    ladh
       where lado.ladh_nr = ladh.nr
       more criteriait works fine.
    When I create a function inside a package with the same query (in a cursor)
    function get_image(some parameters in) return blob
    Following in apex by:
    select get_image(some parameters) from dualI get a
    ORA-06502: PL/SQL: numeric or value error: character string buffer too smallAnybody any idea why this does not work?
    Regards Erik

    Hi Eric,
    the environment assumes varchar2-output by default, which will be limited to 32767 characters and may have problems with binary formats. You could define a blob-variable to select the value into.
    DECLARE
      l_blob BLOB;
    BEGIN
      SELECT get_image(some parameters)
        INTO l_blob
        FROM dual;
    END;
    /If you expect the BLOB-Content to be text (you should consider CLOB then), you may use UTL_RAW.CAST_TO_VARCHAR2 to convert the content. If your object is larger than the maximum varchar2 size, or you want to convert BLOB to CLOB, you might be interested in some converter like described here: {message:id=559749}
    Hope this is what you were searching for.
    -Udo

  • How to resize display image item?

    How to resize an image in display image item not in column?
    I find a way to resize it in column which similar to this way
    decode(nvl(dbms_lob.getlength(PLAYER_PIC),0),0,null,
    '<img style="border: 4px solid #CCC; -moz-border-radius: 4px; -webkit-border-radius:
    4px;" '||
    'src="'||
    apex_util.get_blob_file_src('P5_PLAYER_PIC',ROWID)||
    '" height="75" width="75" alt="Player Image" title="Player Image" />')
    detail_img
    but when I try to implement it to display image item which I returned the image from the column, I cant resize it this way, or may be I used wrong syntax, can you please help me finding way to resize it with steps?

    I guess it is because of some carriage returns in your dynamic img tag that is being generated may be not, so make sure there are no breaks half-way through he attributes of the img tag.
    decode(nvl(dbms_lob.getlength(PLAYER_PIC),0),0,null, '<img style="border: 4px solid #CCC; -moz-border-radius: 4px; -webkit-border-radius: 4px;" '|| 'src="'|| apex_util.get_blob_file_src('P5_PLAYER_PIC',ROWID)|| '" height="75" width="75" alt="Player Image" title="Player Image" />')  detail_imgand also inspect the element/img to see if the code is rendered correctly
    Thanks

  • Populate a select Box without reloading Page

    I have about three to four select boxes (dropdowns), that I
    want to populate the next select drop down based on user selection
    from the previous select dropdown and vise versa without having a
    page reload. This is an app we are migrating from flash to CF
    because of too much problem with flash.
    Please can you show examples of doing this

    eziokolo wrote:
    >
    > Is there a way I can get this done without reloading or
    refreshing the page? I
    > mean refresh data in the Select Drop down and textboxes?
    >
    > Thanks
    > E
    >
    Yes, but you must first answer yourself, "Where does the data
    come from."
    From a user interface point of view you simply use
    JavaScript to access
    the various form control DOM elements and change their values
    on the
    desired events.
    But you have to know where the data can come from. To do it
    without a
    refresh, the client has to already have to data. If there is
    too much
    data do deliver all at once to the client, then you can *not*
    do it
    without some type of request to the server.
    But you can make such a request without refreshing the user
    interface by
    accessing it with other technologies such as asynchronous
    JavaScript and
    XML, popularly known as AJAX.
    Or you could go to a more advanced client interface then the
    HTTP
    browser. Adobes preferred tool is Flex, but that gets you
    back to
    Flash, and I do not know why you are trying to get away from
    Flash so
    that may not be that appealing to you.

  • Displaying Image on th JSP page

    Hello All,
    I am using following code to display the image on the JSP page in my iView
    <% String PublicURL = componentRequest.getPublicResourcePath()+ "/images/Image1.gif"  ; %>
    <hbj:image id="Logo" width="70" height="35" 
                               src="<%= PublicURL %>"
                               alt= "picture Ericsson.gif" />
    Am I missing anything. I am still not able to display the image.
    Regards,
    Sanjeev

    change
    componentRequest.getPublicResourcePath()
    to
    componentRequest.getWebResourcePath()

  • Displaying text item inside the page I would like

    Hi, is it possible to open and display from text item link new window with formatting title, description and own text, but not only on the blank default page, but on the special page which I have created for this (with my layout as a template)?
    Thanks
    Marek

    Hi Marek,
    I believe what you are looking is for the new Portal 10.1.4 feature - itemplaceholder:-
    http://download.oracle.com/docs/cd/B14099_15/portal.1014/b13809/template.htm#CIADAEGG
    "You can use Portal Templates for items to enforce a particular layout, style, and associated content. With Portal Templates for items, a requested item displays within the layout defined by the template rather than in place on the item's container page. For example, when a link to an item displays on the item's container page, users click the link, and the item content displays within the context of its associated Portal Template. The item's content is displayed in place of the item placeholder on the template."
    I hope it helps...
    Cheers,
    Pedro.

  • Creating Items without a Page

    Hello
    It is possible to create an Item that is not associated to a Page?. And it is possible to insert an existing Item in a Page?
    Thanks in advanced

    Hello,
    I would like to Create a Content Management Application in order to manage all the Content that is being created. The intention is to have an Area to create and classificate Content and to use this content all over the Portal.
    This means that if I am creating my personal page I would like to include in my page some interesting content. For that purpose I will search through all the content repository and finally I will add in my page some item that seems interesting. I am not creating any content only reusing an existing one.
    Thanks in advance

  • How to display image on the welcome page of a workset.

    Hello Experts,
    I have company image in KM docs.
    MasterRole on top level navigation.
    Then I have subrole.
    When I click on the sub role. It directly open the first iview contained in the workset.
    Here, I want to display a imagelike a welcome image  instead of the first iview.
    The user can navigate to his choice of view after seeing this image. can any post a document on how to do it?
    I am on EP 7.0 portal.
    Thanks in anticipation,
    Raj

    Thanks for information on workset mpa iview. But, at our client. They have assigned Iview directly to a role.
    Also, I have created the KM iview as url iview . When I preview it, it works fine.
    I have added that iview to the folde runder the role where i want this iview to show up as entry point.
    I changed the properties invisible in navigation (yes) and set as entry point (yes).
    But, it is giving me the following error. Page can not be found and in logs
    Meta name for property
    ID cop:cop_search_resourcetype can not be created.
    No namespace mapping for the given namespace alias.
    Null will be returned!

  • Having trouble displaying images on my results page

    I have tried placing the following code (<img src="*<?php echo $row_rsppleresults['picture_upload']; ?>*>) BOLDED AREA (see code below very last entry) in hopes that it would display the image. However, what happens after I place the code in that location is that I get an invalid code error that there is something wrong with the Italic BOLDED area (see below very last entry). In addition, to that it changes the html formatting on my page when I try to view the page and no image shows up.  As of right now when someone fills out the input form the photo automatically get uploaded into the following directory-/public_html/rescuealerts/fomdata/uploads_missing_person_form.  I am clueless how to connect the correct image with the correct input information in the search display table. Below you will find the following- my code for the results page and my dynamic table.  Everything else in the dynamic table displays correctly. It the images that I can seem to get displayed. Any help would be greatly appreciated.
    Results page:
    <?php require_once('../Connections/rescue.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    $currentPage = $_SERVER["PHP_SELF"];
    $maxRows_rsppleresults = 10;
    $pageNum_rsppleresults = 0;
    if (isset($_GET['pageNum_rsppleresults'])) {
      $pageNum_rsppleresults = $_GET['pageNum_rsppleresults'];
    $startRow_rsppleresults = $pageNum_rsppleresults * $maxRows_rsppleresults;
    mysql_select_db($database_rescue, $rescue);
    $query_rsppleresults = "SELECT missing_name, `description`, picture_upload, missing_person_form.missing_name, missing_person_form.`description`, missing_person_form.picture_upload FROM missing_person_form";
    $query_limit_rsppleresults = sprintf("%s LIMIT %d, %d", $query_rsppleresults, $startRow_rsppleresults, $maxRows_rsppleresults);
    $rsppleresults = mysql_query($query_limit_rsppleresults, $rescue) or die(mysql_error());
    $row_rsppleresults = mysql_fetch_assoc($rsppleresults);
    if (isset($_GET['totalRows_rsppleresults'])) {
      $totalRows_rsppleresults = $_GET['totalRows_rsppleresults'];
    } else {
      $all_rsppleresults = mysql_query($query_rsppleresults);
      $totalRows_rsppleresults = mysql_num_rows($all_rsppleresults);
    $totalPages_rsppleresults = ceil($totalRows_rsppleresults/$maxRows_rsppleresults)-1;$maxRows_rsppleresults = 10;
    $pageNum_rsppleresults = 0;
    if (isset($_GET['pageNum_rsppleresults'])) {
      $pageNum_rsppleresults = $_GET['pageNum_rsppleresults'];
    $startRow_rsppleresults = $pageNum_rsppleresults * $maxRows_rsppleresults;
    $colname_rsppleresults = "-1";
    if (isset($_POST['missing_name'])) {
      $colname_rsppleresults = $_POST['missing_name'];
    mysql_select_db($database_rescue, $rescue);
    $query_rsppleresults = sprintf("SELECT missing_name, `description`, picture_upload FROM missing_person_form WHERE missing_name LIKE %s", GetSQLValueString("%" . $colname_rsppleresults . "%", "text"));
    $query_limit_rsppleresults = sprintf("%s LIMIT %d, %d", $query_rsppleresults, $startRow_rsppleresults, $maxRows_rsppleresults);
    $rsppleresults = mysql_query($query_limit_rsppleresults, $rescue) or die(mysql_error());
    $row_rsppleresults = mysql_fetch_assoc($rsppleresults);
    if (isset($_GET['totalRows_rsppleresults'])) {
      $totalRows_rsppleresults = $_GET['totalRows_rsppleresults'];
    } else {
      $all_rsppleresults = mysql_query($query_rsppleresults);
      $totalRows_rsppleresults = mysql_num_rows($all_rsppleresults);
    $totalPages_rsppleresults = ceil($totalRows_rsppleresults/$maxRows_rsppleresults)-1;
    $queryString_rsppleresults = "";
    if (!empty($_SERVER['QUERY_STRING'])) {
      $params = explode("&", $_SERVER['QUERY_STRING']);
      $newParams = array();
      foreach ($params as $param) {
        if (stristr($param, "pageNum_rsppleresults") == false &&
            stristr($param, "totalRows_rsppleresults") == false) {
          array_push($newParams, $param);
      if (count($newParams) != 0) {
        $queryString_rsppleresults = "&" . htmlentities(implode("&", $newParams));
    $queryString_rsppleresults = sprintf("&totalRows_rsppleresults=%d%s", $totalRows_rsppleresults, $queryString_rsppleresults);
    ?>
    Here is my code for the dynamic table (this is also where I have been trying to edit the code to look for the images that were uploaded with the initial form.
    Dynamic Table:
        <tr>
          <td style="font-weight: normal; color: #000; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"><div align="left"><?php echo $row_rsppleresults['missing_name']; ?></div></td>
          <td style="font-weight: normal; color: #000; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"><div align="left"><?php echo $row_rsppleresults['description']; ?></div></td>
          <td style="font-weight: normal; color: #000; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"><div align="left"><?php echo $row_rsppleresults['picture_upload']; ?></div></td>
        </tr>
        <?php } while ($row_rsppleresults = mysql_fetch_assoc($rsppleresults)); ?>
    </table>
    Thank you,
    hjohnson2011

        <tr>
          <td style="font-weight: normal; color: #000; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"><div align="left"><?php echo $row_rsppleresults['missing_name']; ?></div></td>
          <td style="font-weight: normal; color: #000; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"><div align="left"><?php echo $row_rsppleresults['description']; ?></div></td>
          <td style="font-weight: normal; color: #000; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"><div align="left"><?php echo $row_rsppleresults['picture_upload']; ?></div></td>
        </tr>
        <?php } while ($row_rsppleresults = mysql_fetch_assoc($rsppleresults)); ?>
    </table>
    First off, you should style the table, rows and cells by using CSS. Also, there is no need for a div within the cell because, again, you can use CSS to do the styling for you. Not only that, depending on the DOCTYPE that has been used, tou will get an invalid markup when using align=left.
    Depending on what is included in the picture_upload field (just the name and extension or the complete path and file name) your markup should look like
    <table>
      <tr>
        <td><?php echo $row_rsppleresults['missing_name']; ?></td>
        <td><?php echo $row_rsppleresults['description']; ?></td>
        <td><img src="<?php echo $row_rsppleresults['picture_upload']; ?>"></td>
      </tr>
    </table>
    if the picture_upload field contains all of the info, or if it only contains the filename+extension
    <table>
      <tr>
        <td><?php echo $row_rsppleresults['missing_name']; ?></td>
        <td><?php echo $row_rsppleresults['description']; ?></td>
        <td><img src="escuealerts/fomdata/uploads_missing_person_form/<?php echo $row_rsppleresults['picture_upload']; ?>"></td>
      </tr>
    </table>
    Gramps

  • Display Text Items in New Page

    I am currently designing a Content Area for our new site and have come across a problem which I really need to find a way round.
    I am adding HTML articles as text items into the Content Area. For the interface, I am using a Portal page and publishing the Content Area as a portlet onto this page. I need to do it this way rather than exposing the actual Content Area page as our organisation needs to use an external style sheet on the page for accessibility purposes.
    What I need to be able to do is when a user clicks on the link for the item, it will open up inside a blank page inside the same browser window, preferably with a template added to it. I know there is actually an option to set the item to display inside a blank page but this 'blank' page is actually the Content Area page and this uses the internal Portal style.
    There doesn't seem to be any way of specifying your own template for a Content Area page which is pretty much what I need to do.
    Thanks in advance for any help!
    Richard

    Erik:
    Very good to know! I ended up logging an SR after all, and included your post to help guide the support rep.
    I'm pretty sure it's a server side problem, because the MIME type is served up incorrectly. IE seems to handle text/plain encoded that are actually HTML more gracefully than Firefox.
    (As for handling anything else gracefully, well... that's another story :-) )
    Thanks!
    -John

  • How to display the search result without reloading the whole page

    HI,
    I have separate fragments for Search Box to enter keyword and Search Result to display the result. Also I have different sections within the page to put these fragments. So how could I display the results without reloading the whole page.
    Also if I have next button in my search result area, how could I display the search results in next page without reloading all other sections present in our page. Please let me know if any service or idoc function present such that result could be shown in search result section without reloading whole page.
    Please let me know how to restrict page reload for every action within a page.
    Thanks,
    Ramesh
    Edited by: Ramesh_Est on May 27, 2010 3:14 AM
    Edited by: Ramesh_Est on May 27, 2010 8:39 PM

    This is default behaviour of the template of your space. You can create a new page template and than you can create a region for the search results.
    Or you can create a custom taskflow were you use the webcenter taskflows to search for the space.
    Take a look at this white paper:
    Extending webcenter spaces: http://www.oracle.com/technology/products/webcenter/pdf/owcs_r11_extend_spaces_wp.pdf
    and this one:
    Customizing site templates: http://www.oracle.com/technology/products/webcenter/pdf/owcs_ps1_site_template_wp.pdf
    Edited by: Yannick.O on 13-Apr-2010 02:32

  • Displaying image in html page

    hi one and all!!
    how can i display an uploaded image in same html page??
    i have uploaded that image using file input...but i couldn't able to make this image visible in the page where i want.plz write ur snippet..
    thanks!!

    A few things (also referring to the other topics in your topic spree):
    1) Chill down.
    2) Please write normal human readable English sentences.
    3) Show your effort in your problems.
    4) Ask specific coding problems. What have you written so far and what is failing exactly?
    5) Bookmark http://www.google.com and learn how to use it.
    To get straight on your initial question: you can display images in a HTML page using the <img> tag.

  • Refresh Display vs Reload Server Metadata

    Hi Gurus,
    can any one let me know what is the significance of having "Refresh Display" and "Reload Server Metadata" in answers selection pain. For example if i have changed the name of column in the symantic layer. Now if i hit "Reload Server Metadata" only then the new name is getting reflected, i m unable to get for what reason or purpose "Refresh Display" is there. Reload Server Metadata itself refreshes the selection pane and clicking on "Refresh Display" the new name is not getting reflected.
    So Please let me know the significance of "Refresh Display" link.
    Thanks,
    Sreekanth.

    Hi Daan,
    i am aware of the bookshelf definition, what i wanted to know was based on a scenario.
    Suppose i changed a join in the RPD in online mode, to reflect the changes in answers, will i have to hit "Refresh Display" or "Reload Server Metadata"?
    Suppose i changed the name of the presentation column in RPD in online mode, to reflect the changes in answers, will i have to hit "Refresh Display" or "Reload Server Metadata"
    for this scenario the book shelf says "To refresh the *information* for saved requests, filters, briefing books, and dashboard *content*, click the Refresh Display link at the bottom of the selection pane" does this mean what ever i renamed after clicking "Refresh Display" they will get changed in the saved requests? I tried it but it is not changing
    i want to know what INFORMATION as told in book shelf in saved requests / filters / briefing books will get changed after hitting "Refresh Display"
    Thanks,
    Sreekanth.

  • Display Image

    Apex 4
    Database : 10g EE
    Good day apex users, Im having a hard time in displaying an image in a html region. How can I fetch the image in a database and put it in the html region. I have my blob files stored in my databse I only want to get that files and view it in a html region. How can I do that?
    regards,
    jose

    Hi Jose,
    what is the exact error you are getting from the DML process? Actually that one shouldn't really be used, just the fetch process is relevant.
    To try out the "Display Image" item type,
    1) open the Sample Application,
    2) go to page 6
    3) open the page item "P6_PRODUCT_IMAGE"
    4) change "Display As" to "Display Image"
    5) apply changes
    6) run the page and the image should be visible instead of the "Browse" button.
    Regards
    Patrick
    My Blog: http://www.inside-oracle-apex.com
    APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

Maybe you are looking for