Action on image control in VC

Hi all,
         How to trigger an action by clicking an image control in VC?  Is action possible in img control? anyone can help?
Regards,
Hema

Hi,
Image control has an Action tab which enables to trigger action by clicking on the image.
This feature was introducd on SP12.
Regards,
Shay

Similar Messages

  • Image Control and URL

    I defined an image control with an Action of URL specified.
    When I specify a URL that points to a location with spaces in it, the URL is encoded, but VC replaces the spaces with + instead of %20. I tried many variations to get it to not encode and/or encode differently, but to no avail.
    How can I specify a URL that includes spaces in it for an image control?

    Hi,
    Could you try with images that don't contain spaces?
    If it works, you could change the specific image name as to not contain spaces.
    Best regards,
    Tal.

  • How to use an Event Structure responding to an image control that belongs to a parent VI.

    Hi
    I am loading a subpanel vi by pressing a button located in the user interface of the main vi which also contains an image display. Subpanel vi opens up on the side and doesn't hide the image display of the main vi. Subpanel vi contains an event structure that needs to respond to user clicking on the image display of main vi.
    Since the bug that occured while creating an image reference control isn't fixed, I am passing the main vi pane reference onto the subpanel vi. From that point I've tried to edit event structure and have it respond to the image control/pane that belongs to main vi but I don't know how.
    Any help would be appreciated.
    Thanks

    Post a screenshot of your subVI code where you register the events.
    André
    Regards,
    André
    Using whatever version of LV the customer requires. (LV5.1-LV2012) (www.carya.nl)

  • Open a disk image file and crop it to an Image control

    Hi Folks,
    I am trying to allow my users (in a browser) to select/open a disk file (image type) so that they can see it and then save it to the server.  I can use the FileReference object just fine, and load its 'result' directly into a MX:Image control.  However, before I do that I would like to crop the selected imaged to a square shape.  I'd also like to resize the image down, but that will come later, once I get the cropping working.
    I am essentially taking the FileReference result bytearray and converting that to a BitmapData object.  Then, I 'extract' a square of data from that BitmapData object into a new BitmapData object.  Then I need to get *that* BitmapData object into the mx:image control.  I tried using a Bitmap to do so, however the resulting mx:image, while 'sized' correctly, displays as a blank white region.  All along, the variables seem to be 'full' of data and seem to have properly set attributes.  I've looked up quite a few sites that demonstrate cropping, and copying images, but they always start out with 'pre-loaded' images.  I have modeled my code after theirs, where appropriate.
    Here is my code:
              //this gets called when the user clicks a button to 'look for a disk file'
                private function setPhoto():void
                    //create the FileReference instance
                    _fileRef = new FileReference();
                    _fileRef.addEventListener(Event.SELECT, onFileSelected);
                    //listen for the file has been opened
                    _fileRef.addEventListener(Event.COMPLETE, onFileLoaded);
                    var arr:Array = [];
                    arr.push(new FileFilter("Images", ".gif;*.jpeg;*.jpg;*.png"));
                    _fileRef.browse(arr); //then let go and let the event handlers deal with the result...
                private function onFileSelected(evt:Event):void
                    _fileRef.load(); //the result of the 'load' will be handled by the 'complete' handler
                private function onFileLoaded(evt:Event):void
                    var tempLoader:Loader = new Loader();
                    tempLoader.loadBytes(_fileRef.data);
                    tempLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onLoaderComplete);
                    //imgPhoto.source = _fileRef.data;  //this would work just fine, though, it wouldn't be cropped
                private function onLoaderComplete(event:Event):void
                    var loaderInfo:LoaderInfo = LoaderInfo(event.target);
                    var loadBD:BitmapData = new BitmapData(loaderInfo.width,loaderInfo.height);
                    //ok, now that we have the 'original' file in the bitmap data, we can crop it and then later resize it
                    //so, we need a 'square' of image cropped out of the original
                    //so...first we get a square of the 'full size' image
                    //if the image is taller than wide, we will take a square as wide as the image, and as tall as it is wide, starting 5% down from the top
                    //if the image is wider than tall, we will take a square as tall as the image, and as wide as it is tall, from the horizontal middle
                    var curW:int = loadBD.width;
                    var curH:int = loadBD.height;
                    var cropX:int = 0;
                    var cropY:int = 0;
                    var cropW:int = curW;
                    var cropH:int = curH;
                    var needCrop:Boolean = true; //default is to crop
                    var croppedBD:BitmapData;
                    if (curH > curW)
                        cropY = Math.round(curH * .05); //start at 5% down
                        cropH = cropW;
                    else if (curW > curH)
                        cropX = Math.round(curW/2) - Math.round(curH/2); //start at the middle, go 'back' by half the height
                        cropW = cropH;
                    else
                        needCrop = false; //it's already a square!  nothing to do (aside from the resize)
                    if (needCrop)
                        croppedBD = new BitmapData(cropW, cropH); //at this point it is 'empty', so fill it up
                        var fillPoint:Point = new Point(0,0); //since we're gonna fill into the top, left pixel on down and over
                        var fillRect:Rectangle = new Rectangle(cropX,cropY,cropW,cropH);
                        croppedBD.copyPixels(loadBD,fillRect,fillPoint);
                    else
                        croppedBD = loadBD;
                    imgPhoto.source = new Bitmap(croppedBD);  //this produces a properly sized, but blank-white image
    And here is the mxml for the image:
    <mx:Image id="imgPhoto" x="40" y="126" maxWidth="200" maxHeight="200" />
    Thanks!
    -David

    Hi,
    You were close to the solution.
    In "onLoaderComplete(event:Event):void", at the begining you create a BitmapData called "loadBD", you just forgot to fill it with the content from the loaderInfo.
    private function onLoaderComplete(event:Event):void {
         var loaderInfo:LoaderInfo = LoaderInfo(event.target);
         var loadBD:BitmapData = new BitmapData(loaderInfo.width,loaderInfo.height);
         loadBD.draw(loaderInfo.content);
    Kind regards,
    Mich

  • "Type mismatch" error in IE7/8 when using custom Actions Menu Image

    Hi all,
    in APEX 4.2: when using a custom image in the "Actions Menu Image" attribute in an interactive report, I get a "Type mismatch" error in IE7/8 when refreshing the report through PPR (filtering, sorting, paginating etc.). When I leave the "Actions Menu Image" field empty, everything works fine. The error doesn't seem to happen in IE9 (unless using compatibility mode), or in any non-IE browser.
    I've been able to reproduce the issue in an application on apex.oracle.com:
    http://apex.oracle.com/pls/apex/f?p=69347:1
    Some debugging seems to indicate that the following line in widget.interactiveReport.js is the culprit:
    lTemp.parentNode.replaceChild($x('apexir_WORKSHEET'), lTemp);Does anybody know if this is a known issue, or if there is some workaround?
    Thanks,
    Tobias

    Hi,
    Great solution Paul! It cost me a while before I found out the Action Menu Image was causing my interactive reports to stop refreshing in IE10 and not other browsers. Your solution works great, I've implemented it with a few minor adjustments:
    - Put the css in report template (for some reason it didn't work in our own application stylesheet)
    - replace  'url("/c/action_dropdown.gif")' with 'url("&APP_IMAGE_PREFIX./<path_to_image>")'
    - place one dynamic action on page 0: after refresh of '#apexir_DATA_PANEL' , set event scope to "Dynamic".
    - Let the Dynamic action also fire on page load.
    - To make sure the dynamic action only works for pages with an interactive report add condition of type 'Exists' with expression:
    select 1
    from   dual
    where  :APP_PAGE_ID in (select page_id
                                            from   apex_application_page_ir
                                            where  application_id = :APP_ID
    Best regards,
    Vincent Deelen

  • How to use radioButton(s) and image controls on windows phone 8.1

    how to use radioButton(s) and image controls on windows phone 8.1

    Hi aspirantme,
    >>how to use radioButton(s) and image controls on windows phone 8.1
    Which version of your app is? Runtime or Silverlight?
    For Runtime version, please see the following articles:
    #RadioButton class
    https://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.xaml.controls.radiobutton(v=win.10).aspx
    #How to add radio buttons (XAML)
    https://msdn.microsoft.com/en-us/library/windows/apps/xaml/hh868200.aspx
    #Image class
    https://msdn.microsoft.com/library/windows/apps/br242752.aspx
    For Silverlight version, please refer to the following documents and guidelines:
    #RadioButton Class
    https://msdn.microsoft.com/en-us/library/windows/apps/system.windows.controls.radiobutton(v=vs.105).aspx
    #RadioButton control design guidelines for Windows Phone
    https://msdn.microsoft.com/en-us/library/windows/apps/hh202881(v=vs.105).aspx
    #Image Class
    https://msdn.microsoft.com/en-us/library/windows/apps/system.windows.controls.image(v=vs.105).aspx
    #Quickstart: Images for Windows Phone
    https://msdn.microsoft.com/en-us/library/windows/apps/jj206957(v=vs.105).aspx
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to add an image to an IMAGE control in Java WebDynpro

    hi
    How to add an image to an IMAGE control in Java WebDynpro.
    Please give me the steps to assign an image to an IMAGE control.
    Advanced Thanks
    brahma

    Thank You Mathan MP,
    i tried these steps, but whenever i selected the source property of image UI control, it opens a context window, but this context window does't contain any thing for selection.
    so how to solve this problem ?
    the link whatever u provided is not opened, please send the correct link.
    http://127.0.0.1:1284/help/index.jsp?topic=/com.sap.devmanual.doc.user/f3/1a61a9dc7f2e4199458e964e76b4ba/content.htm
    Thanks in Advance
    brahma

  • Image not displayed correctly in image control at small zoom level

    I am displaying an image in an image control with a zoom factor of ~0.015 and it appears as shown in image 1.jpg.  When I zoom in a little more to ~0.016 the image is displayed correctly as shown in image 2.jpg.  Both images are attached.
    Why is the image displayed as a "grey strip" in the first image?  What do I need to do to have the image displayed correctly at any zoom factor?  I am using LV 2011 with the associated vision development module on Windows 7.
    Thanks,
    Jonathan-LV
    Solved!
    Go to Solution.
    Attachments:
    Image 1.jpg ‏133 KB
    Image 2.jpg ‏152 KB

    Hi Jonathan,
    Did you try resizing your image dimensions, as I suggested in my previous post? Anti-aliasing is an expected behavior; as you zoom out, the image has to be resampled in order to be displayed properly. At some point, LabVIEW assumes that the image has been resampled to the point where it no longer resembles the initial image, and so it greys the image out. In the case of your image, that is not the case. As I said, I believe an acceptable workaround would be to use IMAQ resample to half or quarter the pixel dimensions of your image, at which point it should be able to be displayed at a higher zoom factor. 
    Best,
    Dan N
    Applications Engineer
    National Instruments 

  • Image Control in ADF

    Hi,
    I am using the Jdev 11g.
    is there any component which will take array of images path and rotate it.
    my problem is -- I have n number of images and i want to show it in rotating fashion.
    please tell how will i do it using the ADF component.
    Thnaks
    Kiran

    Hi shay,
    Thanks for the reply.
    I have tried out the carousel component but it dose not meet some my application requirement.
    Can you please tell some different way to implement the requirement using only image control?
    Thanks,
    Kiran.

  • Some images not loaded in flex Image Control.

    Hi,
        Can anybody help me. I am loading friends album image in flex Image control. Its strange that some image do not load even the path is fine and I can open in browser.  I think there is time out issue.
    Thanks in advance.

    Hi premkant81,
    Try to register the following event Listeners and try to trace out the problem...
    I hope you are using either Loader or URLLoader to load the images...Try to register the below  eventListeners for the Loader..and check
    HTTPStatusEvent.HTTP_STATUS
    SecurityErrorEvent.SECURITY_ERROR
    IOErrorEvent.IO_ERROR
    What is the size of the Image files you are loading...???
    Thanks,
    Bhasker Chari

  • Labview 2012 image control freezes in executable

    Hi there,
    I've put some Image controls on the front panel. On the development system, the background is grey and the ROI tools responsive.
    The executable howeve, has black backgrounds and the image control is not responsive any more.
    LV 2012, Windows 7, 64 Bit. It does not matter if the file is compiled on a server or locally.
    Sometimes the compiler fails because of "file permission errors". If not, the problem still persists.
    What do I do wrong ?
    Best regards,
    Ted
    Attachments:
    PanelTest.zip ‏13 KB

    Hi there,
    I forgot to tell that it's not possible to load any images into the control.
    Regards,
    Ted

  • Vision Builder 7.0(IMAQ) : Using fxs in subVIs with references to image control

    When using IMAQ fxs (such as 'Write File') in subVIs, if one wanted to use references to an image control, what property or method would be used to feed into the image terminal in the imaq fx on the subVI? Is this possible?
    What did work: I was able to directly use the image control on the main feeding an image control on the subvi panel (which is then fed directly to imaq fx)
    What did not work: From a refnum control for the image on the main, I used (within the subVI) the value property fed to a 'Variant to Data' with type as image control, then feeding the output of this into imaq fx.

    Typically you would update an Image Display control from a subVI using the Value property nodes. However, this method does not currently work with LabVIEW 7 and Vision 7, but the issue will be resolved in the next release of LabVIEW and Vision.
    In the meantime, in addition to the solution you found you could also use a global variable to pass images from one VI to another. Using a global variable works, but not in the same way as a reference or property node would. With a reference or property node, you can pass a reference of the control to a subVI and have the subVI update the control's image. Using global variables, the subVI will update the global variable with the new images, but you need a loop monitoring the global variable in your top level VI.
    I hope this
    helps! Best wishes.
    Regards,
    Dawna P.
    Applications Engineer
    National Instruments

  • Flash movies in image-control

    When I load different flash movies in the same image-control
    (e.g. via a button-click), the browser-cursor starts switching from
    a busy-cursor (the little round clock-cursor) to an arrow (or
    hand)-cursor intermittingly, without stopping.
    When I load the same movie over the existing one in the
    image-control this does not happen.
    Seems like I have to unload the old movie first? I don't know
    how to do that.
    Any suggestions are welcome.
    Thanx in advance.
    Rui Rosado

    Hi,
    Take a look at this
    http://swforum.sun.com/jive/thread.jspa?forumID=123&threadID=62416
    MJ

  • Image control source attribute

    I would like to protect my source files such as images from being downloaded or directly referenced by a URL by somebody other than my program. I thought may be an easy way to do that would be if I set the source to outside my webfolders. But my understanding is that in an Image control, the value of the property source has to be under my web root folder. Is there a way I can set the source to outside of my web folder and still have my flex app render the image od does some one have a different way of achieving the same objective. Thanks, Ramesh

    Hi there
    You can embed your image on the application.
    On FlexBuilder project, add a new source directory with your images... and in your source code some like this:
    <mx:Script>
    <![CDATA[
    [Embed(source="image/yourImage.png")]
    [Bindable]
    public var myImage : Class;
    ]]>
    </mx:Script>
    <mx:Image source="{myImage}"/>
    Regards

  • Image control runtime creation issue

    I am having problems getting the Image control to actually
    display the image I specify in the source property. The Image
    control is created in actionscript at runtime based on XML returned
    by an HTTPService request. I have a canvas that I want to populate
    with Label, Text, Image, LinkButton, etc. controls based on the
    contents of the XML file that is read in, so I have to create all
    the components on the fly and use something like this:
    var newImage:Image = new Image();
    newImage.setStyle("source", "images/myImageFile.jpg");
    myCanvas.addChild(newImage);
    After I get all the newly created components added as
    children to the canvas I go back through and do positioning
    (something like this):
    for each (var child:DisplayObject in myCanvas.getChildren())
    //set the y property of each component to the y of the
    previous child plus
    //the height of the previous child plus 10 px margin
    Wherever there is an image in my XML it inserts the 10px
    margin for that component, so I know it's creating it and that it
    gets added as a child, but for some reason the image is not
    displaying and so the height of the component is 0. I even tried
    hardcoding the height of each Image control in case the image was
    there but it just wasn't sizing right, but it puts in the space
    without displaying the image.
    What I'm wondering is if there is some method that will force
    the Image controls to either load the image or render it. When I
    add an Image in mxml and use the exact same source data it displays
    just fine, so the file path is correct. I also have the same images
    being read in from XML off the HTTPService that are showing up just
    fine in a TileList where my itemRenderer component has an image
    with the source set to the same path as I'm trying to use in the
    runtime-generated Image controls.
    Also, as a side question, does anyone know why a lot of the
    properties/methods available from mxml specified comonents aren't
    available when you create variables of the same type in
    actionscript? For example, if I have
    <mx:Image id"img"/>
    I can go back in actionscript and reference img.source just
    fine. On the other hand, if I declare an Image in actionscript,
    thus:
    private var asImg:Image = new Image();
    and then try to refer to the source property like so:
    asImg.source
    it doesn't show up in the code hinting and it also throws an
    error on compile (reference to a possibly undefined property source
    for bla bla bla)
    Actually, I've noticed that a lot of the properties and
    methods of various components aren't available when they are
    actionscript rather than mxml. I didn't see much in the
    documentation on the difference or what could be done to work
    around it.
    Thanks much anyone who has input.

    Ok, got it.
    I figured that since the <mx:Image> renders just fine
    and that the ActionScript Image object doesn't that I'd just create
    a custom mxml component with Image as the base element and with
    nothing else in it. Then I add an instance of my custom image
    component in AS whenever the XML specifies one. The layout was a
    bit of an issue, but I just added the image dimensions as
    attributes in my XML and size the CustomImage component based on
    those.
    Must be some subtle difference between the mxml and AS Image
    classes that isn't documented very well.

Maybe you are looking for

  • Using bind variable with IN clause

    My application runs a limited number of straight up queries (no stored procs) using ODP.NET. For the most part, I'm able to use bind variables to help with query caching, etc... but I'm at a loss as to how to use bind variables with IN clauses. Basic

  • Auto patch error usdsop cannot create a new process

    Hi i am applying hrms family pack k in one vision db in testnode but i am getting following error.Any idea appsversion 11.5.10 and windows 2003 advanced server Generating product JAR files in JAVA_TOP - j:\oracle\viscomn\java with command: adjava -mx

  • HT203433 How can I cancel an automatic renewal of a TV show?

    How can I cancel an automatic renewal of a tv show?

  • Looking for a Java program which converts a Webpage (HTML) to Image file

    Dear Experts, I would like to convert a given URL (www.yahoo.com) to a yahoo.jpg image file.I have searched a lot about that but could not get any idea.Does anyone can help me in this regard. Tahnking you

  • Placing a menu bar in teststand

    The version of teststand i am using is 4.0. My query is: There a menu bar which contains files ,edit, view,etc...I want to add my own custom menu bar by the side of "help" and that menu should contain some of my sequences which i like to execute freq