Dynamic TileList + Images

Hi all
I made a tile list inside tab navigator both dynamically..
now I want Images whose URL is in XML to displayed according
to tab change.
problem is taht I m not able to display images on tilelist
..just url of images is coming correctly...
some piece of code is given below.
Please help me out..
thanks
private function addTab(tabName:String, thumbArr:Array):void
var newVBox:VBox = new VBox();
var newLabel:Label = new Label();
var newTileList:TileList = new TileList();
var imageList:Image=new Image();
newVBox.label = tabName;
//newTileList.name = tabName;
//newLabel.text = "TabNavigator container panel " +
numChild;
newVBox.addChild(newLabel);
//newTileList.addChild(newLabel);
tn.addChild(newVBox);
newVBox.addChild(newTileList);
newTileList.height=500
newTileList.width=250
newTileList.addChild(imageList);
//newTileList.itemRenderer="{CustomItemRenderer}";
//tn.addChild(newTileList);
for (var a:Number=0; a<thumbArr.length; a++) {
//for (var b:Number=0; b<newArr.length; b++) {
if (thumbArr[a].substr(0,thumbArr[a].indexOf(",",0)) ==
tabName) {
newTileList.dataProvider=thumbArr[a].substr((thumbArr[a].indexOf(",",0))+1,thumbArr[a].le ngth)

I have been able to resolve this. My problem with previous code was that it wasn't running at the right time during execution. Here's the fixed code:
This will properly load a BLOB object into an image.
-Mike

Similar Messages

  • How to dynamically call image  in PDF for Acrobat ver 8.1 onwards?

    Hi Experts,
    I am using Web Dynpro Java. My requirement is to call the images dynamically on a PDF form. There are no of company code. I have to call different logos for different company codes/
    We are now using Acrobat 8.1.1. Please refer following thread.
    http://kb2.adobe.com/cps/405/kb405270.html
    From Acrobat 8.*, we have to use some different method for dynamically calling the images. Earlier we were using the concept mentioned below to dynamically call images.
    However this method is not applicable for Acrobat Reader 8.* onwards due to security reasons.
    Click on the Layout tab and choose None for the Caption position.
    u2022 Click on the Object, then the Binding tab and choose None for Default Binding.
    u2022 Click on the Field tab, enter $record.SapOnlineShopUrl for the URL entry, and select Use Image Size for the Sizing field.
    u2022 Click on the script editor and enter the following FormCalc script statement, which enables the dynamic integration of the image. Show: initialize Script: this.value.image.href = xfa.resolveNode(this.value.image.href).value; Language: FormCalc Run At: Client
    write following code in wddoinit
    try { String url = WDURLGenerator.getAbsoluteWebResourceURL( wdComponentAPI.getDeployableObjectPart(), "sap_online_shop.jpg"); wdContext.currentDataSourceElement().setSapOnlineShopUrl(url); } catch(Exception e) { throw new WDRuntimeException(e); }
    Please let me know what is the alternate method for Adope ver 8.1.1
    Regards,
    Gary

    Hi Gary,
    First you upload the image in SAP through se78.then write the below code in your adobe form interface.
    data :  v_object type  TDOBJECTGR value 'GRAPHICS',
            v_id  type TDIDGR  value 'BMAP',
            v_btype type TDBTYPE value 'BCOL',
            V_FIELD TYPE XSTRING.
    V_NAME = 'ZW_DEVMAN_LOGO'.
    CALL METHOD cl_ssf_xsf_utilities=>get_bds_graphic_as_bmp
    EXPORTING
    p_object = v_object " 'GRAPHICS'
    p_name = v_name " Name of the logo as in se78
    p_id = v_id " 'BMAP'
    p_btype = v_btype " 'BCOL' ( whether the image is in color or black and white )
    RECEIVING
    p_bmp = v_field
    EXCEPTIONS
    not_found = 1
    internal_error = 2
    OTHERS = 3.
    g_logo = v_field.
    Declare g_logo as xstring in global data.
    In context of the form make one graphic element with field g_logo and mime type BMP.It will work.
    Regards,
    Simi A M
    Edited by: amsimi on Jan 26, 2011 5:30 AM

  • Displaying dynamically changing image: a problem with JLabel.

    Hello! I use NetBeans 5.5 and I develop my GUI with Matisse. I'm rather a beginner in developing GUIs with this editor...
    I'd like to display a dynamically changing image. The idea is: GUI shows the image, that is modified as some computations run in a different thread. App will be run on a single machine.
    I'm trying to display the image as a label's icon. The problem is that my app's frame can be resized - and when it is, the label also resizes. When the label is resized, the image should also be resized - the image should always be of the same size as the label. The problem? I noticed, that it works only when I make my app's bigger. When I try to lower its dimensions, the label's dimensions remain the same. Why the label don't make its size smaller?
    My code works as follows: when app's main frame is resize, the panel (the one, that the label is placed in) is also resized. And, since the label is in the panel, it (should) also be resized. So I wrote all the resize-events handlers (therefore I know that the resize event is sent when my app's frame is resized, and when the panel is resized - but the label is resized only when it grows bigger). In this methods I modify the image displayed in the label (I resize the image).
    Or, perhaps, there is some other way to show a (dynamically changing) image with Swing... I chose JLabel, because I didn't want to write my own JComponent. JLabel can display image and that is all I need. The problem is: when the label grows bigger, I create a new, bigger image (icon). Why my label don't get smaller (the resize event isn't even sent)?

    There is no component that dynamically resizes an image. You need to create your own. Something like this:
    JComponent component = new JComponent()
         protected void paintComponent(Graphics g)
              //  Scale image to size of component
              g.drawImage(yourImage, 0, 0, getWidth(), getHeight(), null);
    };

  • Handling dynamically generated Images

    Hello,
    I have a WDJ application that generates Images dynamically based on certain criterion. The dynamically generated images are put to the server using the code
      BufferedImage image = <rendered image ...>
      File outFile = new File( "Output.jpg") ;
      ImageIO.write( image, "jpg", outFile);
      /** Resource path is not set during the file creation 
       * as ImageIO throws IllegalArgumentException
    It gets saved to the folder <i><drive>\usr\sap\<SID>\JC<InstNo>\j2ee\cluster\server0\output.jpg </i> by default.
    Now, how to show up this dynamically generated image in a Image UI element? I have tried setting the output file name to the attribute that is bound to the "Source" property of the Image UI element but it doosn't show up as WD runtime is doing a look-up in the folder <i>../../../resources/com.test/<projectName>/Components/com.test.<componentName>/</i>
    Any pointers in this regard are highly appreciated.
    Bala

    Hi
    Try this
    Create the alias for the folder (C:\usr\sap\P13\JC00\j2ee\cluster\server0.)
    1.Goto Visual Administrator->Http Provider->Aliases in the Runtime Tab.
    2.Give the Alias Name and Path for the Folder.
    3.The Image sorce like http://<Server>:<Port>/<Alias>/<image>.<ext>
    Kind Regards
    Mukesh

  • Creating dynamically a image.. with background

    Hi, i'm working on displaying dynamically an image file who shows some text and a rectangular. I want to enhance this method by passing an existing image file, so that this file can used as a background upon creating the gif.
    Example: text = hello, rect = blue line and background = 'back.gif'
    Result : an image file who consist out of the background, the text and the rectangular.
    Is this possible, and could you get me started?
    thx

    I'm not sure how this question relates to the J2EE SDK. Perhaps you can look at tools that can be used to construct GIFs dynamically. In the past I have used a tool called GIFs on the fly to create dynamic GIFs.

  • How to display  servlet dynamically generated image ?

    Hi,
    How to display servlet dynamically generated image ?
    I have a servlet generating a buffered image in the doGet. I want to display the image in a jsp page with other information. I'm not able to get it properly displayed.
    **Try n# 1 **************************************************************
    This displays my image but nothing elle :
    ServletOutputStream sos = pResponse.getOutputStream();
    JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(sos);
    encoder.encode(img);
    **Try n# 2 ****************************************************************
    I tried also :
    In the servlet :
         request.setAttribute("renderedImage", img);
    and in the jsp page :
         BufferedImage image = (BufferedImage) request.getAttribute("renderedImage");
         <img src="<%=ImageIO.write(image,"jpeg",response.getOutputStream())%>" width="300" height="280"/>
    This last try draws big crap in the jsp page, thank you in advance.
    Nelson

    Call another servlet from the IMG tag. Have the servlet stream out the image using ImageIO (instead of writing HTML).

  • Dynamically importing images

    Hi,
      we need to dynamically import images to use them in smartforms. The images are stored on a file server (DMS) so we tried to use BAPI_DOCUMENT_CHECKOUTVIEWX to get the file from DMS and then use IMPORT_BITMAPS_DBS (to do what SE78 does) but this does not work. We realised that the file was not being transfered by the BAPI and that IMPORT only works with local files, so when we are printing (background), it does not work. Does anyone know of a way to import images as GRAPHICS as SE78 does but from a DMS server and in background mode.
    TIA

    hi,
    can you please elaborate your answer, i could not understand it completely.
    Thanks,
    Hasan

  • Dynamically loading images: UI Loader issue

    I posted this last week, but did not show good examples to get help. Admittedly, I am new to flash, so this may be a bit elementary, so my apologies in advance. I am trying to dynamically load images through the UI Loader component. Attached are the errors I get, and although I think that the coding is close to correct, when I publish, it just flashes up then restarts the movie... any ideas? Thanks in advance.

    there's a problem attaching things to this forum.  so, nothing is attached.
    can you copy and paste your error messages to this forum?

  • How to dynamically load images into Flash

    I have a movie clip on the stage that I want to dynamically
    load images into (that constantly change), how would I go about
    doing this? Thanks.

    Use the Loader class to load in images.
    Then use addChild to add the Loader class into your MovieClip
    on the stage.
    As far as &amp;quot;constantly change&amp;quot; what
    do you mean by that? You could use setInterval, ther enterFrame
    event, or any other means to trigger a new image to be loaded into
    the Loader instance.
    Finally, you can use the Tween class to create some nice
    effects for the images (fade it, blur in, photo blend, masks,
    etc)

  • Dynamic Data - Images, Pricing, Copy

    I am new to the print world and we just hired a new graphic designer and she uses In-Design for creating our new print catalog.  My question (I am a developer) is - is there a way that In-Design can pull in dynamic data (images, pricing, etc) from some type of datasource (excel, XML, SQL Database, etc).  So when the datasource is updated, the data on the InDesign page would be updated as well too.
    We are going to be printing a low quantity of catalogs at a time and want to make sure we are doing this the most efficient.  I would love to hear feedback on what experiences you have had.

    smolinitek1 wrote:
    I am new to the print world and we just hired a new graphic designer and she uses In-Design for creating our new print catalog.  My question (I am a developer) is - is there a way that In-Design can pull in dynamic data (images, pricing, etc) from some type of datasource (excel, XML, SQL Database, etc).  So when the datasource is updated, the data on the InDesign page would be updated as well too.
    We are going to be printing a low quantity of catalogs at a time and want to make sure we are doing this the most efficient.  I would love to hear feedback on what experiences you have had.
    Search Google for terms like "InDesign XML database publishing tutorial," and "InDesign database publishing tutorial XML," without quotes for lots of resources on this topic, including some from within this forum.
    Search Amazon.com for "maivald InDesign XML" without quotes for Jim Maivald's book on XML and InDesign together.
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices

  • Dynamically loaded images cached?

    We have an xml feed that is refreshed every hour. According
    to the xml file, we dynamically load an image into an html text
    field each time someone hits our page. All of the images have been
    recently updated, but the old ones are still appearing? We use the
    swf?nocache=randomnumber convention to make sure the swf file
    itself isn't cached, but is there anything we can do to clear out
    the cache of dynamically loaded images? If there isn't anything we
    can do, will these all eventually refresh themselves? This is how
    the html is generated where "twcImage[0]" is the image in question.
    Thanks!

    Do the same random number for the images.
    twcImage[0] + randomnumber
    Dan Smith > adobe community expert
    Flash Helps >
    http://www.smithmediafusion.com/blog/?cat=11
    http://www.dsmith.tv
    "Wolli World" <[email protected]> wrote in
    message
    news:fvvcrc$k9o$[email protected]..
    > We have an xml feed that is refreshed every hour.
    According to the xml
    > file,
    > we dynamically load an image into an html text field
    each time someone
    > hits our
    > page. All of the images have been recently updated, but
    the old ones are
    > still
    > appearing? We use the swf?nocache=randomnumber
    convention to make sure
    > the swf
    > file itself isn't cached, but is there anything we can
    do to clear out the
    > cache of dynamically loaded images? If there isn't
    anything we can do,
    > will
    > these all eventually refresh themselves? This is how the
    html is
    > generated
    > where "twcImage[0]" is the image in question. Thanks!
    >
    > twcTarget.text = "<img align='left' hspace='5'
    vspace='0' src='
    http://" +
    > _root.server + "/rss/weather/images/" +
    > twcImage[0] + "'>" + "<condition>" + ... and so
    on
    >

  • Get width and height of a dynamically loaded image once it's done loading?!

    hello : :
    well... i'm taking my first shots at flex after programming
    in flash for a year now. it's been fun and i've been picking up on
    things pretty well (or so i think), but i come across something
    today that i used to be able to do in my as2 programming and don't
    know how to do in as3...
    in flex, i'm loading an image into an image control (by using
    "myImgControl.load(urlString)"). i have a "complete" parameter on
    the image control that calls a function just fine after the image
    is loaded, but if i try and check the hight and width of the loaded
    image once it loads, it comes back as zero. how can i get the
    height and width of the image after it's loaded?!
    in flash/as2 i used to do this little trick/work-around i
    found in a forum (kirupa.com, i think) to find out the width and
    height once the loaded image listener checked the loading process
    and came back "complete"... in the code below, "imgLoader" is the
    movieClip the image was loaded using
    imgLoaderListener.loadClip(urlString, imgLoader).
    quote:
    iTot = imgLoader.getBytesTotal();
    iLoad = imgLoader.getBytesLoaded();
    if (iLoad == iTot && iTot > 4) {
    imgH = imgLoader._height;
    imgW = imgLoader._width;
    that all make sense?!
    basically, it's as simple as this: i need to find something
    similar to the above for as3 that will tell me the width and height
    of a dynamically loaded image after it's done loading...
    so there ya have it. i appreciate any help any of you can
    throw my way! thank you so much for even reading this!
    : : michael

    I assume you have probably already figured this out, but just
    in case, there should be an event to listen for after which you can
    get the height and width information successfully. I can't remember
    the exact name, however. Experiment and see which one works
    time-wise.

  • Any way for one VI to dynamically update images shown in another VI's Image Display control?

    I've just discovered (in LV v7.0) that, while I can wire to it, I cannot write image data to a "value" input terminal of a property node associated with an Image Display. When the VI runs I get this error:
    "IMAQ Vision: (Hex 0xBFF6051A) The Image Display control does not support writing this property node."
    (I must admit that I have to wonder why we are allowed to wire to it, if all it does is generate this error)
    Is there any way for one VI to dynamically update images shown in another VI's Image Display control?
    I am not interested in using IMAQWindDraw windows.

    OK, I have found one way to simultaneously access one VI's image data within another VI without the use of globals. I don't know if it makes use of a known feature of image data that will be with us forever or if it is a bug that will disappear sometime in the future...
    It seems that if I create an image data stream in one VI using IMAQ CREATE and name the data stream "ABC" and then create an image data stream in another VI using IMAQ CREATE and also name that data stream "ABC" then in fact they are both the same data streams and they can be read or written by either VI.
    Using this feature I can write the common data stream in one VI and using a shared occurrence or semaphore let the other VI know when it is OK to display the data from the common stream.
    This method requires that the displaying VI needs to have a while loop around the image display which is not nearly as simple as a display that is updated automagically by another VI writing to a VALUE input that is referenced back to the Image Display. I'd still like to know if there is some way to make that work.
    One corollary to this is that if you have several image data streams in use in a system (they can be in totally separate VI's, running independently) and you don't want them tromping on each other's image data then you need to make sure that they (the image data streams) get created with different names. An example of a place where this might bite you (and where I discovered this "feature") is to have multiple copies of the same VI with different names to do image acquisition and display from multiple cameras. Being copies of the same VI, they all had the same image data stream names, defined as constants, within them. When they were run simultaneously, the image data from all of the multiple cameras randomly appeared in all of the image displays. I don't know if this feature would hold up if the separate VI's were turned into separate executables and then run. Do any of you know if this sharing of image data streams with common names works across executables running on the same machine?

  • Dynamically Create Image: RDataMatrix

    Hello All,
    Anyone know of any samples or tutorials showing how to dynamically create images on a web page using RDataMatrix? The library can be found at java4less.com. Any input would be greatly appreciated.
    Thanks,
    Tim

    Hi,
    I am not aware of this. However, we have examples posted in blogs and referenced here that use a servlet URL reference from the image objec in JSF to access streamed image contents
    Frank

  • Load dynamically an image

    Hi,
              I have been trying to load dynamically an image using WLS 6.0, but I
              failed. To simplify the case, following is just a simply scenario.
              All images are stored under the directory doc_root/images. When the WLS
              server is on, I enter the URL: http://localhost:8080/images/image.gif.
              If this image file exists, it is printed in the browser, it is correct.
              But when I copy a new image file (I mean at the moment when the server
              is launched, the file is not under the directory /images) say test.gif
              from other place, and then I input the
              URL:http://localhost:8080/images/test.gif. No image is printed, but for
              the moment this file is saved under the /images directory. Only when I
              shut down the server and relaunch it and type the previous URL, this
              image can be printed. I did the same test using Tomcat3.2, it worked. So
              I guess it is a bug of WLS6.0
              Our project needs to load images dynamically, we cannot shut down the
              server whenever a new image is uploaded, but we need new images can be
              printed in real time.
              Did anybody meet the same problem and is there any work around? Thanks
              in advance
              [att1.html]
              

    Sonia,
              On our development evironment (where we use open directory
              deployment) it works for me.
              We are using wls6.0sp1.
              Thanks,
              Kumar.
              Sonia WEN wrote:
              > Hi,
              > I have been trying to load dynamically an image using WLS 6.0, but I
              > failed. To simplify the case, following is just a simply scenario.
              >
              > All images are stored under the directory doc_root/images. When the
              > WLS server is on, I enter the URL:
              > http://localhost:8080/images/image.gif. If this image file exists, it
              > is printed in the browser, it is correct. But when I copy a new image
              > file (I mean at the moment when the server is launched, the file is
              > not under the directory /images) say test.gif from other place, and
              > then I input the URL:http://localhost:8080/images/test.gif. No image
              > is printed, but for the moment this file is saved under the /images
              > directory. Only when I shut down the server and relaunch it and type
              > the previous URL, this image can be printed. I did the same test using
              > Tomcat3.2, it worked. So I guess it is a bug of WLS6.0
              >
              > Our project needs to load images dynamically, we cannot shut down the
              > server whenever a new image is uploaded, but we need new images can
              > be printed in real time.
              >
              > Did anybody meet the same problem and is there any work around? Thanks
              > in advance
              [att1.html]
              

Maybe you are looking for

  • Advice sought for a new PC build

    Hello, I could use a little advice about an "as silent as silent can be" system that I am trying to put together right now. I plan to build it myself. I have installed / replaced components in PC systems before but it will be the first time I build a

  • Grey box with a white spot

    My son has somehow created a grey box with a white spot with circles his iPad 2 screen and when it is touched a larger box with the icons and the words gesture, device, home, favorites. How do I get rid of that?

  • Question about Lego Mindstorms Capabiliti​es

    Hello, thank you for reading my question! I am currently working on the creation of a teleoperated robotics lab. for a introductory robotics course. I wish to allow students to control a labyrinth-solver robot via Labview, with the Lego NXT toolbox.

  • FPS not matching orginal F4V from Captivate

    I have a number of videos that I have exported from Captivate projects and the FPS is different on each one, when I use Adobe Media Encoder to re-encode these videos the FPS does not match the original. I have set the FPS to match the original, but t

  • Boot from external Firewire Drive-cannot repair or optimize internal drive.

    Hi all Connected my new 300 GB Seagate External Firewire Hard Drive today. Installed Tiger from DVD. Updated to 10.4.3. Installed Tech Tool Pro 4. Updated to 4.1.1. Booted from External Firewire Drive. Disk Utility cannot Verify or Repair internal dr