Loading images / data in sequence - tilelist

Hello!
Is there a way to load first the first image then the next
one.. and so on.. in the tilelist?
As far as i can see, the images are loaded altogether.
(Images are from the XML)
thanks in advance!

thanks my friend!
Basically this is my solution.. depending on your situation.
it works in mine where the images are from the xml.
if there's anyone who can improve this then i will be glad. I
just a newbie in flex and im not a programmer.. i am basically a
designer.lol. but i am enjoying it... quite fun but frustrating! I
haven't check it properly coz it's 8am now.. got to get some rest.
Hope this help!
<?xml version="1.0"?>
<!-- behaviors\EventEffects.mxml -->
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
>
<mx:Script>
<![CDATA[
import mx.effects.*;
import mx.events.EffectEvent;
import mx.core.UIComponent;
private function
endSlowFadeEffectListener(eventObj:EffectEvent):void
// Access the effect object.
var effectObj:Effect = Effect(eventObj.target);
// Access the target component of the effect.
var effectTarget:UIComponent =
UIComponent(eventObj.effectInstance.target);
myTA.text = myTA.text + getTimer() + effectTarget.id + '\n';
myTA.text = myTA.text + " " + eventObj.type + '\n';
]]>
</mx:Script>
<mx:Fade id="slowFade1"
duration="2000"
effectEnd="endSlowFadeEffectListener(event);"/>
<mx:Fade id="slowFade2"
duration="3000"
effectEnd="endSlowFadeEffectListener(event);"/>
<mx:Fade id="slowFade3"
duration="4000"
effectEnd="endSlowFadeEffectListener(event);"/>
<mx:Fade id="slowFade4"
duration="5000"
effectEnd="endSlowFadeEffectListener(event);"/>
<mx:Button id="myButton1"
creationCompleteEffect="{slowFade1}"/>
<mx:Button id="myButton2"
creationCompleteEffect="{slowFade2}"/>
<mx:Button id="myButton3"
creationCompleteEffect="{slowFade3}"/>
<mx:Button id="myButton4"
creationCompleteEffect="{slowFade4}"/>
<mx:TextArea id="myTA" height="200" width="100" />
</mx:Application>

Similar Messages

  • Cfreport & "Error loading image data"

    i'm using cf report builder.
    I insert in report an image linked to a url
    If i execute the report i receive this error
    Report data binding error Error loading image data :
    http://DOMAIN/PATH/0701.jpg.
    the image exists: if i copy the url to my browser, it appears
    If i replace link with filesystem path, i receive the same
    error
    this is the error exception
    "Error","jrpp-7","01/29/07","21:13:20","marcappelli_frontend","Report
    data binding error Error loading image data :
    http://venusia/lavoro/marsportcappelli_it/html/catalogo/2007/0701.jpg.Error
    loading byte data :
    http://venusia/lavoro/marsportcappelli_it/html/catalogo/2007/0701.jpg
    The specific sequence of files included or processed is:
    /home/htdocs/clienti/marsportcappelli_it/html/_script/catalogo2007.cfm
    coldfusion.runtime.report.Report$ReportDataBindingException:
    Report data binding error Error loading image data :
    http://venusia/lavoro/marsportcappelli_it/html/catalogo/2007/0701.jpg.
    at
    coldfusion.runtime.report.Report.runReport(Report.java:303)
    at
    coldfusion.tagext.lang.ReportTag.doEndTag(ReportTag.java:467)
    at
    coldfusion.runtime.CfJspPage._emptyTag(CfJspPage.java:1909)
    at
    cfcatalogo20072ecfm389367973.runPage(/home/htdocs/clienti/marsportcappelli_it/html/_scrip t/catalogo2007.cfm:13)
    at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:152)
    at
    coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:343)
    at
    coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)
    at
    coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:210)
    at
    coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:51)
    at coldfusion.filter.PathFilter.invoke(PathFilter.java:86)
    at
    coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:50)
    at
    coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:52)
    at
    coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:2 8)
    at
    coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
    at
    coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
    at
    coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
    at coldfusion.CfmServlet.service(CfmServlet.java:105)
    at
    coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:78)
    at
    jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
    at
    jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
    at
    jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:257)
    at
    jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527)
    at
    jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:204)
    at
    jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:349)
    at
    jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:457)
    at
    jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:295)
    at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
    any ideas?
    any help is very appreciates!
    thanks
    Rob

    I think the new error you saw was due to the cross-schema issue on 10.1.0.2/10.1.0.3 (as described in another thread on creating pyramids).
    You should connect as system to grant the permissions. With 10.1.0.2/10.1.0.3, importFrom should be called from the same schema where the GeoRaster tables are defined. (Upgrading to 10.1.0.4 or higher if you want to perform cross-schema operations.)
    Other than the connection part, your scripts looked OK. Please make sure that the file with the specified file name does exist and is on the same machine where the database is running. Note that even if the grant_permission call is executed successfully, it does not necessarily mean the following file operations will always succeed. For example, grant_permission can be called successfully on a file that does not even exist. If a file with the specific name is later created, no permissions are granted on the new file. The case with the schema 'GIS' is similar. You need to make sure that the schema 'GIS' and the file do exist before the grant_permission call; and grant_permission can be called repeatedly, if necessary.
    Hope this helps.

  • How to load image data into cube?? Is it possible??

    How to load image data into cube?? Is it possible??
    Any sugession??

    Hi Andre,
    Document will be of ASCII characters right?? but image data will be in binary format. as per database concept it is stored as binary large object. But in datawarehousing the back end is also going to be some database such as Oracle or other DBs.
    which can take blob's. so it would be possible to store the binary data.
    If any one has faced this situation can reply.to this ques.
    can post the step to load image(jpg/bmp or any image format) data in to info cube??
    hi andre if u have done loading image data as you say.pls reply me if you have the steps with you.
    thanks Andre

  • Problem loading Image data with French accent in file name

    We have a very complex commercial application that has been working perfectly in English for over a year. We have now localized it to French and Spanish, and discovered a serious show-stopping problem. We need help fast, with the scheduled release being less than 2 weeks away...!
    We iterate over a folder to find all the images in it, then display those in a user window.  The code for loading the images is:
                for each (var name:String in filenames){
                    var image:SmoothImageTransformable = new SmoothImageTransformable();
                    var imagePath:String = dir + "/" + name;
                    image.source = imagePath;
                    trace("Adding Item to picture carousel with url " + image.source);
                    image.data = {directory:dir, filename:name};
                    image.isDragEnabled = true;
                    image.setStyle("horizontalCenter", 0);
                    image.setStyle("verticalCenter", 0);
                    _images.push(image);
    Our SmoothImageTransformable class is an internal class that inherits from Image.  This all works fine for image names like 'myFavoritePhoto', 'test', 'photo346', etc.  However, it fails to load the data if the file name is something like 'caméra'  Any name with a UTF-8 character causes the data load to fail.
    To be sure we weren't doing a load somewhere else in the code that I had overlooked, I added a "image.autoLoad = false' line in there.  That did exactly as expected -- all image squares then show a grey blank, with no image shown.  Removing that line (reverting to the original code, as shown above) causes all the images to work perfectly, except for those with French accent characters like the é.
    HELP!  Is this a known bug?  Is there some additional setting I need to make it understand the extended character set?  I can't find any mention about this at all in the documentation.

    @markerline:
    We have a fix!  Almost...   I don't understand one aspect of what I am seeing though.
    We have one test file named "camèra.jpg" that is an example of what I am unable to load into an Image.  I decided to examine the character codes at each letter, and this is what Flex has as the string:
    name = cam?ra.jpg
       [0] = c; 0x99
       [1] = a; 0x97
       [2] = m; 0x109
       [3] = ?; 0x232
       [4] = r; 0x114
       [5] = a; 0x97
       [6] = .; 0x46
       [7] = j; 0x106
       [8] = p; 0x112
       [9] = g; 0x103
    Note that the è prints as gibberish in the trace statement, and shows a numeric encoding of 0x232.  According to
         http://docstore.mik.ua/orelly/web2/action/appb_01.htm
    The unicode equivalent of Latin1 for è is 0xE8, which is equivalent to 0x232. That implies that the string is already Latin1, which I would think would mean that Windoze would recognize the file name and open it properly -- but it does not.
    I then tried taking the "camèra.jpg" string, pasting it into NotePad++ in a UTF8 document, then telling NotePad++ to display as ASCII.  The result is "camèra".  I then tried just forcing the file name within Flex to this new mangled string.  The result then is:
    MAGIC name = camèra
       [0] = c; 0x99
       [1] = a; 0x97
       [2] = m; 0x109
       [3] = ?; 0x195
       [4] = ?; 0x168
       [5] = r; 0x114
       [6] = a; 0x97
       [7] = .; 0x46
       [8] = j; 0x106
       [9] = p; 0x112
      [10] = g; 0x103
    Note this time the trace statement looks proper.  More important, the IMAGE DOES LOAD!  (Our display of the name to the user now looks like crap, but that just means I need to modify our class to have a separate 'name' property, rather than extracting it from the 'image.source')
    So... my remaining question -- what encoding did I just do through that NotePad++ incantation?  That site I quoted above said that it was already Latin1, which is what I thought I was trying to get to.  I clearly need to write a method to map from incoming (UTF8 I thought, but maybe Latin1?) to Windows file system (Latin1 I thought, but maybe ASCII).
    In other words, I am not sure what charcter set to come from or go to...  It turns out the code was already in the character set I had been trying to go to (which is why it wasn't working) and the set I seem to need to go to is not the one I thought...

  • Load image data into array collection without ever displaying it

    Hi all,
    I am starting with a String that is a path to a local file. I
    need to add that image (png) to an array collection without ever
    displaying it on screen. What would be the most direct process to
    get it into the type BitmapData.
    No matter what i try, i cant seem to get the image to
    actually load into memory so it is available without displaying it
    on the screen. Thanks in advance,

    Hi Jed,
    In AIR, you can simply use FileStream's readBytes() call to
    read the contents of the image file into a bytearray. Now when you
    want to display the image, simply use Loader.loadBytes().
    Once the loadBytes() call completes, you will be able to get
    bitmap data. Till then it would be in JPG/PNG/GIF format.

  • How to export image data into XDP

    Hi, All
      I'm working on a healthcare project that needs to export the doctor's signature image into XDP file from the database to fill in the Insurance company claim form. My question is how to export image data into a field node in the XDP file, we know the name of the image field which defined in the PDF form, Is it something like:
      the signature image data ?
    Should the image data in this node be base64 encoded or text encoded or something else?
    Can the image be any kind? e.g. BMP, PNG, JPEG, ..., etc?
    Thanks
    William

    Hi Andre,
    Document will be of ASCII characters right?? but image data will be in binary format. as per database concept it is stored as binary large object. But in datawarehousing the back end is also going to be some database such as Oracle or other DBs.
    which can take blob's. so it would be possible to store the binary data.
    If any one has faced this situation can reply.to this ques.
    can post the step to load image(jpg/bmp or any image format) data in to info cube??
    hi andre if u have done loading image data as you say.pls reply me if you have the steps with you.
    thanks Andre

  • Insert Image and Load Image by VC# with Oracle 9i Database.

    I need save and load a Image to Database Oracle 9i, i use BLOB Datatype and VC#2003, i write code bellow:
    Load image data.
    m_Img is a parameter byte[], and :
    this.openFile.ShowDialog(this);
    string strFn=this.openFile.FileName;
    this.pcPerson.Image=Image.FromFile(strFn);
    FileStream fls;
    fls=new FileStream(@strFn,FileMode.Open,FileAccess.Read);
    m_Img=new byte[fls.Length];
    fls.Read(m_Img,0,System.Convert.ToInt32(fls.Length));
    fls.Close();
    //Add Parameter
    CnnOracle myBase = new CnnOracle();
    string reqSQL = "SP_PERSON_UPDATE";
    try
    OracleConnection myConn = myBase.OpenConnection(myBase.cnxString);
    OracleCommand myCommand = new OracleCommand(reqSQL,myConn);
    myCommand.Parameters.Add(new System.Data.OracleClient.OracleParameter("Faxno", System.Data.OracleClient.OracleType.NVarChar, 20));
    myCommand.Parameters["Faxno"].Value = myPerson.faxno;
    myCommand.Parameters.Add(new System.Data.OracleClient.OracleParameter("Email", System.Data.OracleClient.OracleType.NVarChar, 20));
    myCommand.Parameters["Email"].Value = myPerson.email;
    myCommand.Parameters.Add(new System.Data.OracleClient.OracleParameter("Photo", System.Data.OracleClient.OracleType.Blob));
    myCommand.Parameters["Photo"].Value = m_Img;
    myCommand.CommandType = CommandType.StoredProcedure;
    myCommand.ExecuteNonQuery();
    myBase.CloseConnection(myConn);
    catch(Exception myErr)
    throw(new Exception(myErr.ToString() + reqSQL));
    That code above don't run and have a error: "ORA-01460: unimplemented or unreasonable conversion requested\n",
    but i clear these row:
    myCommand.Parameters.Add(new System.Data.OracleClient.OracleParameter("Photo", System.Data.OracleClient.OracleType.Blob));
    myCommand.Parameters["Photo"].Value = m_Img;
    and modified StoreProcedure: clear parameter Photo, it run good
    Why? Help me, Please.
    Thank you very much.

    Can you post your table structure?

  • How do I load a picture from the clipboard (either Windows clipboard or Labview clipboard) into image data that can then be processed in Labview?

    I want to load a picture from the Windows clipboard (and if not possible, then from the Labview clipboard) into actual numerical image data so that it can be processed in lab view. When I'm at the main screen where I can add controls, I see a section of controls called "Vision" in the tool bar where all the different controls can can be added from. When I go to the control called "Image" and put that on my form, and then look at the flowchart/blockdiagram programing window to see what inputs and outputs it has, I only see one output, and no inputs. And when I right click on it, I see NO way to load an image into the Image control. PLEASE help me.
    Message Edited by Ben321 on 11-09-2008 04:32 PM

    Hi Ben,
    National Instruments has an image processing software called Vision and although I am not completely sure, I think the controls that you found in the control pallet are used in conjunction with the software. Depending on what kind of image processing you want to conduct in LabVIEW, you might want to consider purchasing that product.
    If cost is an issue, there are functions in LabVIEW which allows you to take in image files and process them. However, please keep in mind that the capabilities are limited.
    Images should be loaded onto LabVIEW not via the clipboard but through loading it from folders or directories. (There might be a way to and so if you find a way please let me know! I would like to know myself =D) If you open the function pallet by right clicking on the block diagram, in the programming folder you should find a directory called "Graphic and Sound". There, you'll find functions in which allows you to process images.
     In the "Graphic Type" directory there should be a function called Read JPEG file.vi. There are also others which allows you to read png and bmp files. Please note that there are functions which write as well. Set a file path on the block diagram and inside the "Grahic and Sound" there is a "Picture Function" directory and inside there, there should be a function called "Draw Flattened Pixmap.vi" That changes the image into a format where you can process on LabVIEW. Inside the "Picture Function" directory there are several functions which allows you to process the specified image. Play around with it and see how it goes. And don't forget to Write the file in the end to save any changes.
    I hope this helps
    National Instruments Japan
    Applications Engineer Taiki Hoshi

  • Problem: loading SQL Server 'image' data

    Source database: SQL Server 2000
    OS: Windows 2003 (SP1)
    Oracle: 10g (R2)
    Datatype Mapping: SQL Server ‘image’ to oracle ‘BLOB’
    With the help of OMWB, I created the oracle database schema for a SQL Server DB (offline capture). I have problems when I tried to populate the (destination) database with two tables with ‘image’ datatype:
    Frame.img (as on http://www.sdss.org.uk/mybestdr5/en/help/browser/description.asp?n=Frame&t=U)
    And SpecObjAll.img (as on http://www.sdss.org.uk/mybestdr5/en/help/browser/description.asp?n=SpecObjAll&t=U)
    The part of .ctl files (generated by OMWB) for the two ‘img’ columns is like this:
    IMG CHAR(2000000) "HEXTORAW (:IMG)")
    I failed to load the data with the sql_load_script.sh script, and the log file is like this:
    IMG NEXT ***** CHARACTER
    Maximum field length is 2000000
    Terminator string : '<ec>'
    SQL string for column : "HEXTORAW (:IMG)"
    SQL*Loader-309: No SQL string allowed as part of IMG field specification
    I tried to removed ‘CHAR(2000000)’ in the .ctl files:
    IMG "HEXTORAW (:IMG)")
    But this doesn’t work and the log file is like this:
    IMG NEXT * CHARACTER
    Terminator string : '<ec>'
    SQL string for column : "HEXTORAW (:IMG)"
    SQL*Loader-309: No SQL string allowed as part of IMG field specification
    Any help would be extremely appreciated.
    Helen

    Hi you might want to post your question in General Forum.
    General Database Discussions
    There's very few users visit this forum.

  • Load external data to symbol (text + images)

    Hi there!
    I would like to make a symbol that contains one image and one textfield. I've got three buttons, and when I click on each button the symbol shows a different content (so an image and a text depending on what button was clicked, but always inside the same symbol).
    I've read that it could be done using an external JSON file, though I really don't know how to do that.
    Do you have something that could help me achieve this?
    Thank you very much!

    Mmmh not really,
    Actually I would like to load these data into a symbol by clicking on another symbol, but these specific data are extern (like an image from another folder in my project files).
    What I would like to achieve actually is an image gallery: when I click on a symbol (that is kind of a thumbnail), it show that other symbol which contain the image and a description. But these image and description changes regarding which thumbnail we clicked on.
    Does that make sense? =/

  • Set browser to NOT load images or videos to reduce data usage

    On the Bold 9900 I could tell the browser to NOT load images or videos. This helps dramtically reduce data usage when all Im interested in is the text of articles.
    The Reader mode is not the same since the page with all its content has already been loaded.
    I also find the Reader mode often results in a message that this page cannot load in Reader mode.

    Sorry I misunderstood, although I do understand what you're saying. I received a notification saying that I was being charged by my service provider due to overlimiting my data usage. I then telephoned telus and I was told it is simply the type of phone that is now able for a 4g network and so on. This being said, the phone store also checked my phone to see if I had any apps still open that I was unaware of. I not use facebook on phone but was told that that is a big hog of data. Anyways, it was also suggested that I use wi-fi wherever possible. I found al this to be unknown to me as on my other BlackBerry phones, I had never gone over my little bit of 750mb ever. Now with this phone, 4 days before cycle ends, it's suggested to buy 3 g just "to be on the safe side". All said, I may or may not be able to reduce to 1.5 g. This classic phone requires extra data just to simply be connected to a network is what the telus provider and the store clerk both tell me. sorry I could not provide definite answer for you.

  • Why do some webpages not finish loading images when using cellular data instead of WiFi?

    I'm using iPhone 6 64gb. The problem existed with iOS 8.0.0 and the iOS 8.0.2 update.
    I have had trouble with webpages loading slowly over AT&T LTE. Sites with multiple images frequently have trouble loading all the images entirely. Instead, the unloaded portion of the image fills in with black or the image fails to load at all. If I switch to WiFi when available and refresh the page, the images will usually reload completely. I never had this problem with the iPhone 5s on the same websites.

    I'm on AT&T with an iPhone 5 first gen. This problem is happening across iPhone4s al of the way to iPhone6+
    Thought it was only affecting newer iPhones with new Graphic Processors but I later ruled that out.
    Seems to only be happening on LTE / 4G. Is not affected on WIFI for me.
    I clear cache, crash browser and even reset the phone but will still get unexpected results in LTE or 4G.
    The images seem to be getting prematurely cached and are only partially rendering.
    When I save the these half loaded images in photoshop I get a warning that they are damaged and/or truncated.
    I have saved images out as PNG and JPGs renders poorly.
    About the images-
    These images are only 15k and there are 16 on the page so I can't see why they would get bottlenecked when loading.
    also, there is no background-color of black anywhere in the CSS.
    Note the TV-Like static on the bottom image similar to the comment  ryzer08 above.
    NEXT IMAGE.....

  • Issue - image date recognized only after metadata saved and re-loaded

    I have been changing the Image Date on digitized scans to reflect the date the picture was taken, rather than when it was scanned. I use the "Date Created" field that is under "Image" in the IPTC data section. The Library Filter for date will not recognize that date until I save the Metadata to File, and then reload it (Read Metadata from file). Version 4.0beta

    You've stumbled on two issues:
    1. If you change the IPTC Date Created to a full date/time, e.g. 2010-01-01T00:00:00, the Library Filter Bar doesn't recognize the new date/time.   To avoid this problem, rather than changing IPTC Date Created in LR, use the Metadata > Edit Capture Time to change the date/time of an image. LR will write this date/time into the IPTC:DateCreated and XMP:DateCreated fields.
    2. LR has never fully supported the current metadata standards with respect to date/time.  In particular, while the XMP standard allows for partial dates (e.g. 2010 or 2010:02), LR gets confused by them.  For example, you can use Exiftool to set XMP:DateCreated to "2010", import the file, and observe several problems:
    - LR doesn't complain about a date format it doesn't support.
    - The date doesn't appear in the Date Time Original field of the Metadata panel.
    - The date/time under the thumbnail has the missing month, day, and time set to 1/1 12:00:00 AM.
    - The Library Filter Bar gets confused.
    Note that the Metadata > Edit Capture Time doesn't allow partial dates.
    I suggest you file a report at the Lightroom Feedback Forum, where Adobe wants all problems to be reported:
    http://feedback.photoshop.com/photoshop_family/products/photoshop_family_photoshop_lightro om

  • How can I load my data faster?  Is there a SQL solution instead of PL/SQL?

    11.2.0.2
    Solaris 10 sparc
    I need to backfill invoices from a customer. The raw data has 3.1 million records. I have used pl/sql to load these invoices into our system (dev), however, our issue is the amount of time it's taking to run the load - effectively running at approx 4 hours. (Raw data has been loaded into a staging table)
    My research keeps coming back to one concept: sql is faster than pl/sql. Where I'm stuck is the need to programmatically load the data. The invoice table has a sequence on it (primary key = invoice_id)...the invoice_header and invoice_address tables use the invoice_id as a foreign key. So my script takes advantage of knowing the primary key and uses that on the subsequent inserts to the subordinate invoice_header and invoice_address tables, respectively.
    My script is below. What I'm asking is if there are other ideas on the quickest way to load this data...what am I not considering? I have to load the data in dev, qa, then production so the sequences and such change between the environments. I've dummied down the code to protect the customer; syntax and correctness of the code posted here (on the forum) is moot...it's only posted to give the framework for what I currently have.
    Any advice would be greatly appreciated; how can I load the data faster knowing that I need to know sequence values for inserts into other tables?
    DECLARE
       v_inv_id        invoice.invoice_id%TYPE;
       v_inv_addr_id    invoice_address.invoice_address_id%TYPE;
       errString        invoice_errors.sqlerrmsg%TYPE;
       v_guid          VARCHAR2 (128);
       v_str           VARCHAR2 (256);
       v_err_loc       NUMBER;
       v_count         NUMBER := 0;
       l_start_time    NUMBER;
       TYPE rec IS RECORD
          BILLING_TYPE             VARCHAR2 (256),
          CURRENCY                 VARCHAR2 (256),
          BILLING_DOCUMENT         VARCHAR2 (256),
          DROP_SHIP_IND            VARCHAR2 (256),
          TO_PO_NUMBER        VARCHAR2 (256),
          TO_PURCHASE_ORDER   VARCHAR2 (256),
          DUE_DATE                 DATE,
          BILL_DATE                DATE,
          TAX_AMT                  VARCHAR2 (256),
          PAYER_CUSTOMER           VARCHAR2 (256),
          TO_ACCT_NO          VARCHAR2 (256),
          BILL_TO_ACCT_NO          VARCHAR2 (256),
          NET_AMOUNT               VARCHAR2 (256),
          NET_AMOUNT_CURRENCY      VARCHAR2 (256),
          ORDER_DT             DATE,
          TO_CUSTOMER         VARCHAR2 (256),
          TO_NAME             VARCHAR2 (256),
          FRANCHISES       VARCHAR2 (4000),
          UPDT_DT                  DATE
       TYPE tab IS TABLE OF rec
                      INDEX BY BINARY_INTEGER;
       pltab           tab;
       CURSOR c
       IS
          SELECT   billing_type,
                   currency,
                   billing_document,
                   drop_ship_ind,
                   to_po_number,
                   to_purchase_order,
                   due_date,
                   bill_date,
                   tax_amt,
                   payer_customer,
                   to_acct_no,
                   bill_to_acct_no,
                   net_amount,
                   net_amount_currency,
                   order_dt,
                   to_customer,
                   to_name,
                   franchises,
                   updt_dt
            FROM   BACKFILL_INVOICES;
    BEGIN
       l_start_time := DBMS_UTILITY.get_time;
       OPEN c;
       LOOP
          FETCH c
          BULK COLLECT INTO pltab
          LIMIT 1000;
          v_err_loc := 1;
          FOR i IN 1 .. pltab.COUNT
          LOOP
             BEGIN
                v_inv_id :=  SEQ_INVOICE_ID.NEXTVAL;
                v_guid := 'import' || TO_CHAR (CURRENT_TIMESTAMP, 'hhmissff');
                v_str := str_parser (pltab (i).FRANCHISES); --function to string parse  - this could be done in advance, yes.
                v_err_loc := 2;
                v_count := v_count + 1;
                INSERT INTO    invoice nologging
                     VALUES   (v_inv_id,
                               pltab (i).BILL_DATE,
                               v_guid,
                               '111111',
                               'NONE',
                               TO_TIMESTAMP (pltab (i).BILL_DATE),
                               TO_TIMESTAMP (pltab (i).UPDT_DT),
                               'READ',
                               'PAPER',
                               pltab (i).payer_customer,
                               v_str,
                               '111111');
                v_err_loc := 3;
                INSERT INTO    invoice_header nologging
                     VALUES   (v_inv_id,
                               TRIM (LEADING 0 FROM pltab (i).billing_document), --invoice_num
                               NULL,
                               pltab (i).BILL_DATE,                 --invoice_date
                               pltab (i).TO_PO_NUMBER,
                               NULL,
                               pltab (i).net_amount,
                               NULL,
                               pltab (i).tax_amt,
                               NULL,
                               NULL,
                               pltab (i).due_date,
                               NULL,
                               NULL,
                               NULL,
                               NULL,
                               NULL,
                               TO_TIMESTAMP (SYSDATE),
                               TO_TIMESTAMP (SYSDATE),
                               PLTAB (I).NET_AMOUNT_CURRENCY,
                               (SELECT   i.bc_value
                                  FROM   invsvc_owner.billing_codes i
                                 WHERE   i.bc_name = PLTAB (I).BILLING_TYPE),
                               PLTAB (I).BILL_DATE);
                v_err_loc := 4;
                INSERT INTO    invoice_address nologging
                     VALUES   (invsvc_owner.SEQ_INVOICE_ADDRESS_ID.NEXTVAL,
                               v_inv_id,
                               'BLAH INITIAL',
                               pltab (i).BILL_DATE,
                               NULL,
                               pltab (i).to_acct_no,
                               NULL,
                               NULL,
                               NULL,
                               NULL,
                               NULL,
                               NULL,
                               NULL,
                               SYSTIMESTAMP,
                               NULL);
                v_err_loc := 5;
                INSERT INTO    invoice_address nologging
                     VALUES   ( SEQ_INVOICE_ADDRESS_ID.NEXTVAL,
                               v_inv_id,
                               'BLAH',
                               pltab (i).BILL_DATE,
                               NULL,
                               pltab (i).TO_ACCT_NO,
                               NULL,
                               NULL,
                               NULL,
                               NULL,
                               NULL,
                               NULL,
                               NULL,
                               SYSTIMESTAMP,
                               NULL);
                v_err_loc := 6;
                INSERT INTO    invoice_address nologging
                     VALUES   ( SEQ_INVOICE_ADDRESS_ID.NEXTVAL,
                               v_inv_id,
                               'BLAH2',
                               pltab (i).BILL_DATE,
                               NULL,
                               pltab (i).TO_CUSTOMER,
                               pltab (i).to_name,
                               NULL,
                               NULL,
                               NULL,
                               NULL,
                               NULL,
                               NULL,
                               SYSTIMESTAMP,
                               NULL);
                v_err_loc := 7;
                INSERT INTO    invoice_address nologging
                     VALUES   ( SEQ_INVOICE_ADDRESS_ID.NEXTVAL,
                               v_inv_id,
                               'BLAH3',
                               pltab (i).BILL_DATE,
                               NULL,
                               'SOME PROPRIETARY DATA',
                               NULL,
                               NULL,
                               NULL,
                               NULL,
                               NULL,
                               NULL,
                               NULL,
                               SYSTIMESTAMP,
                               NULL);
                v_err_loc := 8;
                INSERT
                  INTO    invoice_event nologging (id,
                                                             eid,
                                                             root_eid,
                                                             invoice_number,
                                                             event_type,
                                                             event_email_address,
                                                             event_ts)
                VALUES   ( SEQ_INVOICE_EVENT_ID.NEXTVAL,
                          '111111',
                          '222222',
                          TRIM (LEADING 0 FROM pltab (i).billing_document),
                          'READ',
                          'some_user@some_company.com',
                          SYSTIMESTAMP);
                v_err_loc := 9;
                INSERT INTO   backfill_invoice_mapping
                     VALUES   (v_inv_id,
                               v_guid,
                               pltab (i).billing_document,
                               pltab (i).payer_customer,
                               pltab (i).net_amount);
                IF v_count = 10000
                THEN
                   COMMIT;              
                END IF;
             EXCEPTION
                WHEN OTHERS
                THEN
                   errString := SQLERRM;
                   INSERT INTO   backfill_invoice_errors
                        VALUES   (
                                    pltab (i).billing_document,
                                    pltab (i).payer_customer,
                                    errString || ' ' || v_err_loc
                   COMMIT;
             END;
          END LOOP;
          v_err_loc := 10;
          INSERT INTO   backfill_invoice_timing
               VALUES   (
                           ROUND ( (DBMS_UTILITY.get_time - l_start_time) / 100,
                                  2)
                           || ' seconds.',
                           (SELECT   COUNT (1)
                              FROM   backfill_invoice_mapping),
                           (SELECT   COUNT (1)
                              FROM   backfill_invoice_errors),
                           SYSDATE
          COMMIT;
          EXIT WHEN c%NOTFOUND;
       END LOOP;
       COMMIT;
    EXCEPTION
       WHEN OTHERS
       THEN
          errString := SQLERRM;
          INSERT INTO   backfill_invoice_errors
               VALUES   (NULL, NULL, errString || ' ' || v_err_loc);
          COMMIT;
    END;

    Hello
    You could use insert all in your case and make use of sequence.NEXTVAL and sequence.CURRVAL like so (excuse any typos - I can't test without table definitions). I've done the first 2 tables, so it's just a matter of adding the rest in...
    INSERT ALL
         INTO      invoice nologging
                    VALUES   (     SEQ_INVOICE_ID.NEXTVAL,
                                   BILL_DATE,
                                    my_guid,
                                    '111111',
                                    'NONE',
                                    CAST(BILL_DATE AS TIMESTAMP),
                                    CAST(UPDT_DT AS TIMESTAMP),
                                    'READ',
                                    'PAPER',
                                    payer_customer,
                                    parsed_francises,
                                    '111111'
         INTO      invoice_header
              VALUES   (      SEQ_INVOICE_ID.CURRVAL,
                        TRIM (LEADING 0 FROM billing_document), --invoice_num
                        NULL,
                        BILL_DATE,                 --invoice_date
                        TO_PO_NUMBER,
                        NULL,
                        net_amount,
                        NULL,
                        tax_amt,
                        NULL,
                        NULL,
                        due_date,
                        NULL,
                        NULL,
                        NULL,
                        NULL,
                        NULL,
                        SYSTIMESTAMP,
                        SYSTIMESTAMP,
                        NET_AMOUNT_CURRENCY,
                        bc_value,
                        BILL_DATE)
         SELECT 
         src.billing_type,
              src.currency,
              src.billing_document,
              src.drop_ship_ind,
              src.to_po_number,
              src.to_purchase_order,
              src.due_date,
              src.bill_date,
              src.tax_amt,
              src.payer_customer,
              src.to_acct_no,
              src.bill_to_acct_no,
              src.net_amount,
              src.net_amount_currency,
              src.order_dt,
              src.to_customer,
              src.to_name,
              src.franchises,
              src.updt_dt,
              str_parser (src.FRANCHISES) parsed_franchises,
              'import' || TO_CHAR (CURRENT_TIMESTAMP, 'hhmissff') my_guid,
              i.bc_value
            FROM        BACKFILL_INVOICES src,
                 invsvc_owner.billing_codes i
         WHERE   i.bc_name = src.BILLING_TYPE;Some things to note
    1. Don't commit in a loop - you only add to the run time and load on the box ultimately reducing scalability and removing transactional integrity. Commit once at the end of the job.
    2. Make sure you specify the list of columns you are inserting into as well as the values or columns you are selecting. This is good practice as it protects your code from compilation issues in the event of new columns being added to tables. Also it makes it very clear what you are inserting where.
    3. If you use WHEN OTHERS THEN... to log something, make sure you either rollback or raise the exception. What you have done in your code is say - I don't care what the problem is, just commit whatever has been done. This is not good practice.
    HTH
    David
    Edited by: Bravid on Oct 13, 2011 4:35 PM

  • What is the fastest way to record and write image data?

    Hello,
    I am new to labview and am using the IMAQ software package to record and write data from a CCD camera to the hard drive. The end goal is a program that records and saves as much data as possible as quickly as possible, for experiments lasting on the scale of days. I have been experimenting with the snap, grab, and sequence methods of recording. To save the image data I was told by NI customer support that TDMS streaming would be the fastest method. I have also been experimenting with the TDMS VIs, however I have found the IMAQ Write File 2 VI to be faster in practice. Am I doing something wrong with the TDMS file structure? Is there a more efficient way to convert IMAQ image data to a dataform that can be written as TDMS? I am posting two of my programs to provide a clearer example of what I am trying to do. The first takes a snap of the image and appends it to a TDMS file. The second is the fastest I have found so far and uses Grab to record the images and the IMAQ Write File VI to save them. 
    Thanks
    Attachments:
    Camera Capture (Snap) and stream TDMS.vi ‏24 KB
    Camera Capture (Grab) and write image.vi ‏24 KB

    Hi
    For me it is no surprise that the second VI is faster then the first one, the reason is you can not compare this two VI with each other.
    In the first VI you work with TDMS files, in the second with png files. That would be much faster, because TDMS files need a lot of diskspace.
    Second point, why do you open, write and close for eacht iteration of the for loop a TDMS file in your first VI? That need really a lot of resources, so it coudn´t be fats as well.
    Save your converted pictures in one array, an after the acquisition you can save it in one TDMS file. When you need for each picture a TDMS file you have to know that this need some time to do this.
    So now for the architecture of your first VI, please look to the LL Sequence.vifrom the examples (C:\Program Files\National Instruments\LabVIEW 8.6\examples\IMAQ\IMAQ Low Level.llb\LL Sequence.vi), there you can see how an acquisition of a number of images have been to do.
    When you like it really fast, you make a producer/consumer architecture (see examples in LabVIEW for that).
    So in the first whileloop you acquire the images, write into a queue and in the second, parallel whileloop you read the queue and save the images. (see attachment)
    Hope that helps
    Kind regards
    Beat
    NI Germany
    Attachments:
    ProducerConsumerData.vi ‏10 KB
    ProducerConsumerData_LV8.5.vi ‏12 KB

Maybe you are looking for

  • My ID was changed fraudulently and I want to change it back.

    My apple id was changed fraudulently and I got the email stating: Hello, The following information for your Apple ID XXXX was updated on 22/03/2013: Apple ID Email address(es) If these changes were made in error, or if you believe an unauthorised per

  • ITune does not remember my purchase anymore - all apps now list price as if I never purchase them

    During chrismas, I discovered several games I previously bought are now listed with full price, even after I went into the info page of the game. Why is this happening? Now every game I have ever bought are all now listed as full price so there is no

  • Join v.s. Subquery

    I have a user query looks like this: select LASTNAME,MIDDLENAME,FIRSTNAME,PHONE from giver where giver_nbr= (select giver_nbr from giver_visit where giver_id = 1902 and visit_nbr= '0001' ) And I am wondering should this be changed to: select a.LASTNA

  • CS4 Saving to PDF destroys layers

    In CS3, there was an 'export to pdf' which just converted the PSD to PDF. Now in CS4, the option is under 'save as'. The problem is when I am doing a job and want to get approval, I like to generate a low res PDF WITHOUT the option of 'preserving pho

  • Bootcamp partition error.

    I get this message appears every time I try to partition my MacBook, The disk cannot be partitioned because some files cannot be moved, message. Underneath it also gives the message, "Back up the disk and use Disk Utility to format it as a single Mac