Display Image in a poppy on the click on a button/icon

Hello

Jdev: 12.1.3

My requirement is as below.

I have a table on the page that displays the details of an image in a database table (say imageInfo). I need to add the column to the table with an icon/button. When the use click the button I want to show the image in a popup. The image is stored in a different table (say Image) as BLOB. The primary key of the table of the image is available in my database table. available in both image_id table.

How can I get this feature.

See you soon

AJ

Your problem is that you have not set the mimetype for the files. In this case are treated as text. If you look at my sample of blog (the link is in the post of Cvele_new_account ) you see a method that tries to guess the type when you load data into the Database.

Timo

Tags: Java

Similar Questions

  • pop window is an open at the click of a button

    Hello

    I have a requirement to open a pop-up window at the click of a button, it's like once I click the button, it will open a pop-up window1 and once I close the popup window1, it should open pop-up window2

    Thank you

    Valsaint

    All,

    Thanks for the suggestions and advice.

    I realized it via javascript.

    StringBuffer l_buffer = new StringBuffer();

    l_buffer. Append ("javascript:alert('__');");

    l_buffer. Append ("mywin = openWindow (top, '" ");")

    String url = "";

    OAUrl popupUrl = new OAUrl (url, "S");

    String strUrl = popupUrl.createURL (pageContext);

    l_buffer. Append (strURL.ToString ());

    pageContext.putJavaScriptFunction ("openSrpage", l_buffer.toString ());

    This will display an alert on your basic page, after clicking OK, your page 2 will open in a new window.

    Hope this is clear

    Thank you

    Valsaint

  • Show/hide an element with the click of a button - Script works does not in Firefox

    Hi all

    Basically, I'm looking for show/hide a DIV with the click of a button.

    The script works in IE but fail in FF.

    I am sure that I am the problem here.

    <script type="text/javascript">

    function toggle(box) {
         var el = document.getElementById('box');
         el.style.display = (el.style.display != 'none' ? 'none' : '' );
         
         
         value = document.getElementById('content').value;
         if(value=="Show Calendar"){
         document.getElementById('content').value="Hide Calendar";
         }
         else{
         document.getElementById('content').value="Show Calendar";     
    }
    }
    </script>


    <style type="text/css">
    #box{
         background-color: #C0C0C0;
         height: 100px;
         width: 100px;
    }
    </style>
    </head>

    <body>

    <div id="box">
    </div>

    <input id="content" value="Hide Calendar" type="button" onclick="toggle(box)" />
    </body>
    </html>

    WE

    He also worked if you had changed-

    
    

    on this subject.

    
    
  • How to move to a new page on the click of a button?

    I use actionscript to develop a simple application and I'm new to application development. I don't know how to move to a new page on the click of a button. I need to go back to the old page as well. Kindly help me. The date deadline is almost.

    Welcome to the Forums Supprt.

    If you create your view that the enlargement of the Sprite class, you need to use addchild(), to remove the screen use removechild().

    // to add
    var sp : Sprite = new Sprite() ;
    addChild(sp) ;
    
    //to remove
    removeChild(sp) ; 
    
  • AF:train - Enable to train at the click of a button

    JDeveloper version - 11.1.1.7.0


    By default, when you use a component to train on a page, the 2nd train stop is enabled by default. Is there a possibility to disable and enable the same after the click of a button to the 1 train stop.

    JDev 11.1.2.3.0, you can bind the property 'Skip' of your activity to stop 2 train at a property in your bean (make you your TF).

    And then you can set the value of your property from bean according to the requirement, you need the button click.

    I don't know if you can do the same in 11.1.1.7.0

    Kind regards

    Elias.

  • How to use several adf 12 shape and insert the form data in to table during the click on "submit" button

    How to use several adf 12 shape and insert the form data in to table during the click on "submit" button. Can we use several form from adf or not?

    Make sure that you dragged the VO based EO.

    Also make sure that the VO attributes based EO Updatable property.

    The query according to VO is used only to add LOV to the column of the original VO ModelId.

    See you soon

    AJ

  • How to call a file on the performance of the 2014 CC via the click of a button

    Hi all !

    I do project HTML5 version Photoshop CC2014. To hide user content in the script file, this has been transformed in Jsxbin . How call a script on the click of a button? I would like to to include to insert the content all files with saptami master.

    Nothing appears immediately in my eyes...

    • You are of course, you need the extensionRoot.substr, sample does not have it?
    • File is in the right place? I don't use the plugin and slices for that, but he needs to copy all the files needed to the right place.
    • When you change things, you must close the Panel in Photoshop, so it will reload the files.
    • The jsx work at all (you can add alerts in there too)?
  • How do you get a button to trigger the click of another button?

    Hello

    I have a hide/show region that is controlled by a button (Button). This button and the area is pretty far down on the page.

    If the client has requested that I created a second button (ButtonB) and place it at the top of the page and wants for this (ButtonB) button when you click on ' click on ' hide/show below (Button).

    Can you please tell how to proceed, ex:

    < INPUT type = "button" value = "show all regions" name = "ButtonB" onClick = "what should I put here to trigger the 'click' of A button" >. ""

    Any advice would be appreciated as I have to demo this function when the customer tomorrow morning.

    Thank you very much
    Laura

    Published by: user8936524 on April 19, 2010 04:35

    Sorry ill read the original question.
    The easiest way is probably to look at the source of the rendered page to find the link.
    The desired bit will be a function "javascript:hideShow()", probably in the tag with a class "t2HideandShowRegionLink" (or similar depending on the theme)

    If you feel adventurous, you can write a bit of jquery (other javascript libraries are available) to locate and execute the button directly instead of duplicating the code

  • Panel with click - image inside Panel event gets the click on-site

    I have a panel that uses its click event is locally.  It works very well for every click except when you click on a picture inside the Panel.  The image is reduced on the x-axis, so this worsens the problem (because the locally returned value is based on the value of is not put on the scale). Is it possible to ignore the click image event and just its parent panel get the click?

    Thanks for any help.

    Try to set mouseEnabled and mouseChildren to false on your Image.

  • The Click event component button

    Hello

    I have a custom component which is a login form. This form of connection will be muilitple useful so I don't want to set the event click on the login button in the custom component, but I want to set the click event of the button in the component of the parent of the < application > for example I want to do in MXML that I don't want to not like in the default file < application >

    Here is my custom component code is < ns1:LoginPanel id = "loginpanel1" / > at the bottom of the code below

    Default Application file
    
    
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:ns1="*" borderStyle="inset" borderColor="#B7BABC" cornerRadius="15" horizontalAlign="center" verticalAlign="top" xmlns:grc="grc.*" xmlns:events="flash.events.*">
     <mx:states>
      <mx:State name="MainApp">
       <mx:RemoveChild target="{loginpanel1}"/>
       <mx:AddChild position="lastChild">
        <mx:Label text="User Has Now Logged Inn" fontSize="30"/>
       </mx:AddChild>
       <mx:AddChild position="lastChild">
        <mx:Label id="username"/>
       </mx:AddChild>
       <mx:AddChild position="lastChild">
        <mx:Button label="Button" />
       </mx:AddChild>
       <mx:RemoveChild target="{image1}"/>
      </mx:State>
     </mx:states>
     <mx:Style source="yflexskin.css" />
     <mx:Image source="@Embed('images/engage_logo.png')" id="image1"/>
     <grc:Initialize id="remoteService"/>
     <ns1:LoginPanel id="loginpanel1" />  <<-- Here is the Custom Component I have a button called "loginButton" in the component how do I set the click event for the button from here using MXML
    </mx:Application>
    

    Thanks in advance for any help, it drives me crazy as a new to Flex, but come from a PHP back gorund. I must say I am very impressed with flex for RIA

    Concerning

    Chris

    Hello

    Manage your click event in the custom but component only to send an event to display the button click on it.


    http://www.Adobe.com/2006/mxml"width ="400"height ="300">
       
            private function clickHandler (): void {}
    dispatchEvent (new Event ('myClickEvent')):
    }
    ]]>
       

       
       
    [Event (name = "myClickEvent" type = "flash.events.Event")]
       

       
       
       

    Using the tag, you expose your custom event in mxml when you use your tag customComp in your main application.  So in your main application you can manage here


    "http://www.adobe.com/2006/MXML" layout = "absolute" xmlns:ns1 ="*" >
        myClickEvent = "myClickHandler ()"> ""
       

    In this way, you can write several event handlers for the different ways you want to when you instansiate your custom model.

    Hope that helps

    Andrew

  • How to close the default alert box that will come during the click on "back" button

    Hi all

    I develop an application that I have added basiceditfield four times on a single page, but if I pressed the device back button after having entered this field valuse is coming with an alert box save, Discard, cancel option

    I want to delete this alert message when click on "back" button

    Thank you all

    Replace http://www.blackberry.com/developers/docs/6.0.0api/net/rim/device/api/ui/container/MainScreen.html#o... return false (or true, does not matter).

  • lov automatic setting of null at the click of a button.

    Hi Experts ADF,

    JDeveloper 12.1.3.0.0

    I have a read-only VO as below which is dragged as a selectone choice. Do autosubmit = 'true '. I also have a valueChangeListener. In the valueChangeListner value, I'll put in an instance variable.

    And I have an Add button that partial shipment is set to true. But when the click on the Add button, inside actionListener, I get the value null for the instance variable.

    When I select a value, select a choice, I am able to see the value of valueChangeListener. The valueChangeListener inside I'll highlight selectedValue = valueChangeEvent.getNewValue;

    After I click on the Add button, in the actionListener I get selectedValue as null.

    Note: -.

    selectedValue is a variable instance with the getter and setter.

    The taskflow scope is backingbeanscope.

    Read only Vo:-select DepartmentId, DepartmentName from departments dragged like a selectonechoice.

    Thank you

    Roy

    Instead of the instance variable, save the value of the variable def page, as described here:

    http://andrejusb.blogspot.com/2011/10/page-definition-variables-to-store.html

    on this path, the value will survive another request

  • view an interactive report at the click of a button

    Hello

    I interactive reports in which I want to dynamically show on click of a button, I put a condition report on request = Expression 1 and in the Expression, I gave the name of the button, but the report does not show even when the button is clicked, or this isn't when the page loads.

    Any guidance will be of great help.

    Thank you

    Rakesh

    HI Rakesh,

    Rakesh119-Oracle wrote:

    Hello

    I interactive reports in which I want to dynamically show on click of a button, I put a condition report on request = Expression 1 and in the Expression, I gave the name of the button, but the report does not show even when the button is clicked, or this isn't when the page loads.

    Any guidance will be of great help.

    Thank you

    Rakesh

    In addition to this all you have done.

    Create a branch and redirect to the same page

    Branch point: on Submit (after Computation, valdation and processing)

    Target type: Page of this application.

    Page: same page where you have the report.

    Request: Button name (what you have given in expression1 in the condition of report)

    When button: click on the button that you want to view report

    Hope this helps you,

    Kind regards

    Jitendra

  • Spinnerlist with the click of a button

    Does anyone have a code example showing how to open a spinnerlist with a click of a button?

    I had it myself, here is the code:

  • last box gets automatically selected on the click of a button page

    Hello

    I tried many solutions - removal of the last box then recreate it again, but it's always the same problem.

    I have 2 messageRadioButtons:
    SupplierRB
    CustomerRB

    Both under SupplierCustomerRGP and of course has been set by the group name property element I also booted it in processRequest as follows:
    OAMessageRadioButtonBean SupplierRB = (OAMessageRadioButtonBean) webBean.findChildRecursive ("SupplierRB");
    SupplierRB.setName ("SupplierCustomerRGP");
    SupplierRB.setValue ("Supplier");
    OAMessageRadioButtonBean CustomerRB = (OAMessageRadioButtonBean) webBean.findChildRecursive ("CustomerRB");
    CustomerRB.setName ("SupplierCustomerRGP");
    CustomerRB.setValue ("Customer");
    However, when I try to choose the supplier (works great!) and then click on my button create (which has not not any code in there), the page will automatically have the selected customer radio button.

    It is to consume a lot of my time, when it must have been completed.

    Help, please.

    N

    Try to create two temporary variables in VO and attach it to your radio buttons and then check.

    Thank you
    AJ

Maybe you are looking for