Flex chart: loading XML

Hello

Is there a better way to load data from a local XML file than that?

https://gist.github.com/70738199a30c2fa210db

Thank you!

-Dwayne

Hello

You can use URLLoader to load the external XML, here is the link for it

http://www.flexdeveloper.EU/forums/Flex-charting/dynamic-chart-from-XML/

Pls see also this link

http://livedocs.Adobe.com/Flex/3/HTML/Help.HTML?content=charts_intro_8.html

Thank you and best regards,

---------------------------------------------------------------------- ----------------------------

Kanchan Ladwani | [email protected] | www.infocepts.com

---------------------------------------------------------------------- ----------------------------

Tags: Flex

Similar Questions

  • Flex charts: They improve?

    Hello!

    I'm doing a few cards minimalist for some ultimate PDF of annual reports and business plans. I have them in Illustrator first, but graphical tool Illustrator has not been updated since 1996, and it was a real pain to update my paintings as the numbers changed. With Flex, I can just generate XML-based graphics that I got out of my business models in OpenOffice. In addition, they look really good and are interactive.

    It seems everyone I talk to say that the Flex Charts suck. That they were made by people who do not have to follow the standards. Personally, I like the Flex Charts, although I'm not a big fan of having a lot of 'Waiting to support improved CSS', 'should be CSS"etc. comments in my code:

    https://gist.github.com/1623621

    https://gist.github.com/1623625

    https://gist.github.com/1623628

    Does anyone know if this will change? Are there new Flex charting libraries in gestation?

    -Dwayne

    P.S. If you can, please forward this message to as many Flex developers that you can.

    Flex is now an Apache (http://incubator.apache.org/flex/) project and the future of graphics components is determined by the Community open source. However, I think Adobe can contribute to unpublished work he has done to a version of Spark of the graphical components.

    Gordon Smith, Adobe

  • Loading XML data in ListView of C++ after extraction of http data

    I'm sorry did searh but could not find any refrence related to my problem
    I am trying to load the xml data returned from a web service HTTP Post QNetworkRequest and QNetworkReply in c ++.

    My XML that gets donwloaded is as

    
     http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://tempuri.org/">
      
        tu7652
        F
        Marry
        Wijaya
      
      
        23
        F
        Marry
        Wijaya
      
    
    

    In My QML, it comes to the ListView can say SearchResult.qml

    ListView {
              objectName: "resultlist"
              dataModel: feedsdatamodel
              listItemComponents: [
                ListItemComponent {
                            type: "item"
                            PeopleListItem {
                                name: ListItemData.givenName + ", " + ListItemData.sn
                                role: ListItemData.ExtFunction
                                leftPaddingText: 40
                            }
                        }
               ]
            }
     attachedObjects: [
           // The data model that contains the content of a XML file
            GroupDataModel {
                id: feedsDataModel
                sortingKeys: [
                    "givenName"
                ]
                grouping: ItemGrouping.None
            }
        ]
    

    PeopleListItem.qml

    import bb.cascades 1.0
    
    Container {
        property alias name: titleLabel.text
        property alias role: functionLabel.text
        property alias leftPaddingText: textcontainer.leftPadding
    
        layout: StackLayout {
            orientation: LayoutOrientation.TopToBottom
        }
        preferredWidth: 768
        preferredHeight: 135
        Container {
    
            id: textcontainer
            topPadding: 10
    
            layout: StackLayout {
                orientation: LayoutOrientation.TopToBottom
            }
            Label {
    
                id: titleLabel
                textStyle.base: SystemDefaults.TextStyles.TitleText
                textStyle.color: Color.Black
            }
            Label {
                id: functionLabel
                textStyle.base: SystemDefaults.TextStyles.BodyText
                textStyle.color: Color.Gray
            }
        }
        Divider {
            verticalAlignment: VerticalAlignment.Bottom
        }
    }
    

    This is the function I'm using to display the QML it is called from main.qml and works correctly.

    void PeopleFinder::onSearchClicked() {
        qDebug() << "PeopleFinder::PeopleFinder::onSearchClicked::\t" << "begin";
        qDebug() << "PeopleFinder::PeopleFinder::onSearchClicked::\tfname:"
                << m_fname << "\tlname:" << m_lname;
    
        // Create a network access manager and connect a custom slot to its
        // finished signal
        mNetworkAccessManager = new QNetworkAccessManager(this);
    
        // create a data model with sorting keys for lastname and firstname
        Q_ASSERT(
                connect(mNetworkAccessManager, SIGNAL(finished(QNetworkReply*)), this, SLOT(requestFinished(QNetworkReply*))));
    
        //Load the bew QML file of Search from here
        QmlDocument *qml = QmlDocument::create("asset:///SearchResults.qml").parent(
                this);
        qml->setContextProperty("peoplefinder", this);
    
        Page *mypage = qml->createRootObject();
        qml->setParent(mypage);
        qDebug() << "PeopleFinder::PeopleFinder::onSearchClicked::\t s444444";
    
        // Retrieve the activity indicator from QML so that we can start
        // and stop it from C++
    //  mActivityIndicator = mypage->findChild("myIndicator");
    
        // Retrieve the list so we can set the data model on it once
        // we retrieve it
        mListView = mypage->findChild("resultlist");
    
        mNavigator->push(mypage);
    }
    

    Once the page loads in the QML it call the launch request providing c ++ file and once the
    query is completed under function is called with the data. I checked that data are downloaded properly

    void PeopleFinder::requestFinished(QNetworkReply* reply) {
        qDebug() << "PeopleFinder::PeopleFinder::requestFinished::\t"
                << "response received";
        // Check the network reply for errors
        if (reply->error() == QNetworkReply::NoError) {
    
            // Open the file and print an error if the file cannot be opened
            qDebug() << "PeopleFinder::PeopleFinder::requestFinished::\t"
                    << "No error";
    
            // Write to the file using the reply data and close the file
            QByteArray xml = reply->readAll();
            qDebug() << "Data: \n" << xml;
    
            // load the xml data
            XmlDataAccess xda;
            QVariant list = xda.load(xml, "ArrayOfPeople");
    
            qDebug() << "List:::\n" << list;
    
            GroupDataModel *datamodel = (GroupDataModel*)mListView->dataModel();
            // add the data to the model
            datamodel->clear();
            datamodel->insertList(list.value());
            datamodel->setSortingKeys(QStringList() << "givenName" << "sn");
            qDebug() << "PeopleFinder::PeopleFinder::requestFinished::\t"
                    << "Datamodel set size:: " << datamodel->size();
    
            // Set the new data model on the list and stop the activity indicator
    
        } else {
            qDebug() << "\n Problem with the network";
            qDebug() << "\n" << reply->errorString();
        }
    }
    

    But now, the real problem begins as in how to convert QByteArray data type of QVariantList which can be loaded into the datamodel
    I don't want to write the data to the XML file and then pass that as a list his will is very slow, once I move test environment to the production environment.

    Please help me solve this problem

    I got it to work using xml parsing with QXmlStreamReader

  • Store functions/procedures in BI Publisher - failed to load XML

    Hello world

    I am trying to call a function to return a set of rows with BI Publisher. When I want to look at the data on the 'Data' tab, I get "Failed to load XML".

    Here are the steps I took:

    Step 1: created a type

    create type numset_t as table of number;
    

    Step 2: Creating the function

    create or replace function f1(x number) return numset_t pipelined is
    begin
    for i in 1..x loop
    pipe row(i);
    end loop;
    return;
    end;
    

    Step 3: Under "Data sets", I created a SQL query with the following options/code

    Code:

    select * from table(f1(3))
    

    Options: Data Source - my selected schema

    SQL type: Non-standard SQL

    Name of tag line: test

    How can I check my data using the button "data"?

    Thank you

    Here's the steps/documentation on how to call a function from BI Publisher:

    #1) make sure you use SYS_REFCURSOR.

    (#2) create your function as below:

    CREATE OR REPLACE FUNCTION FUNC1 (P1 VARCHAR2) RETURN SYS_REFCURSOR IS
    
       XDO_CURSOR SYS_REFCURSOR;
    BEGIN
     IF P1 = 'USA' THEN
     OPEN XDO_CURSOR FOR
     'SELECT  TO_CHAR(SYSDATE,''MM-DD-YYYY'') AS CURRENT_DATE, X.STATE FROM SchemaName.XX1 X WHERE X.ID IN (100,200,400)';
     RETURN XDO_CURSOR;
     ELSE
     OPEN XDO_CURSOR FOR
     'SELECT  TO_CHAR(SYSDATE,''MM-DD-YYYY'') AS CURRENT_DATE, X.STATE FROM SchemaName.XX1 X WHERE X.ID IN (300,500,600)';
     RETURN XDO_CURSOR;
     END IF ;
    END FUNC1;
    

    (#3) connect as system and grant execute the user to BI

    GRANT EXECUTE ON SchemaName.FUNC1 TO BI_USER;
    

    (#4) under the data model, create a data set with the following (as for example):

    BI requires the variable xdo_cursor as the output, so do not change the name of the variable.

    DECLARE
       type refcursor is REF CURSOR;
       xdo_cursor refcursor;
    BEGIN
       :xdo_cursor := SchemaName.func1(:P1);
    END;
    

    Type of SQL procedure call =

    Thank you. I hope that everything that troubleshoot you.

  • "Error loading XML Document from saw.dll./answers/saw.selections.xml?fmapId=RRxCfQ. "The answer was: ' when you access analytic dashboards

    During these months, we were faced with an error "" error when loading XML Document saw.dll./answers/saw.selections.xml?fmapId=RRxCfQ. "The answer was: ' when you access analytical dashboards OBIEE.

    It is a global problem, and users cannot access any dashboard in OBIEE analytics.

    We used weblogicPlugin 1.1 to configure the reverse proxy for our 64-bit using IIS 7.5 weblogic server. WebLogic Server Version: 10.3.6.0. We see the error "resolveRequest: application ' / analytics/saw.dll/answers/saw.selections.xml' has not been sent." Found OR '?', or ';' in URI "in the IIS Proxy log.

    This question is regardless of the browser and get to each broser we tested. Users should click on the error message loading XML Web page pop for about 20 times to see the dashboard.


    No idea how to solve this problem?

    By Oracle Support suggestion, I installed Oracle HTTP server (OHS) and the problem is solved. For now, the problem is solved but SITEMINDER SSO and Siebel IFRAMES should be tested with OSH being the web server now.

  • BAM-06008: load XML is not valid; additional content was found.

    Hi all

    Version: 11.1.1.6

    We get the BAM error: "BAM-06008: load XML is not valid; "additional content were found" after I have added a field to another in a BAM Object.I have added this extra field to corresponding data objects .wsdl file as well as in the .xsd. I see the new field in the BAM. However, when I used to send a load with the newly added field it fails with the above error. However, if I add a new data object in BAM with the field he works very well.

    Why I get this error?

    Thank you

    Rahul

    I followed the following steps: -.

    1. make sure the new field entry in the ".wsdl" file that is located in the BAM folder.

    2. make entry new class in file ".xsd".

    3 do the mappings in the file ".xsl" corresponding to the action of the probe.

    Initially, I was just restart BAM and was faced with above mentioned error. After the reboot of SOA and BAM server, it started working.

  • Problem loading XML content.

    Hello, when I open Dreamweaver CS6 I now get this message at the bottom right of the window and do not know what he's trying to tellme. Clicking on it does nothing.

    Meaasage is:

    Problem loading XML content.

    You have requested a language ("en_IL") that has no content available.

    In suggestions he shows English, United States.

    I don't know why this has happened. But I managed to get rid of this message on my computer. It seems "application.xml" file points to the incorrect language for content files folder.

    On my computer, the program is installed in C:\Program Files (x 86) \Adobe\Adobe Dreamweaver CS6. If you can navigate to this file using your file manager (in my case 'File Explorer', in point 8.1 of Windows), see the listed folders.

    On my installation, note that there is a record of language called "en_US", and there are a bunch of files that it contains. I think that this is where are stored the content files, for my installation. There is also a folder called "amt".

    Open the folder "amt". You will see that there is a load of files of the language, including en_IL and en_US. also note the files listed at the bottom of this issue, in particular the application file "." XML ". I edited this file by right clicking on it and choosing "Edit". However, when I tried to save the change, I got the message "access denied." I don't have permissions to edit and save the file. So, before editing the file once again, I changed the permissions of the file as follows.

    In the file Explorer, right click on the file "application.xml" and select "Properties". Click on the tab 'Security' "Edit" (to change the permissions). Select "users". In the lower window, click on "full control". Then click on 'Ok '. Then click 'Ok' again on the next page.

    Assuming that it worked, you should now be able to edit and save the file in the application ".» XML ".

    Then, right-click on the file name "application.xml" and choose "Edit". It's a text file, so I edited in the "Notepad". Halfway the page, you will see the term "en_IL". Change this to "en_US" (or whatever the name of the other folder is in your installation folder (see paragraph 3 above). Save the file.

    Open Dreamweaver and see if the message has disappeared, replaced by a tip.

  • Problem loading xml using sql loader file

    I am trying to load data into the table test_xml (xmldata XMLType)

    I have an xml file and I want any file to load in a single column

    When I use the following control file and run from the command-line as follows
    sqlldr $1@$TWO_TASK direct control=$XXTOP/bin/LOAD_XML.ctl = true; :

    DOWNLOAD THE DATA
    INFILE *.
    TRUNCATE INTO TABLE test_xml
    XmlType (XMLDATA)
    FIELDS
    (
    tank fill ext_fname (100),
    XMLDATA LOBFILE (ext_fname) COMPLETED BY expressions of folklore
    )
    START DATA
    U01/appl/apps/apps_st/appl/XXTop/12.0.0/bin/file. XML

    the file is loaded in the table perfectly.

    Unfortunately I can't hard-code the name of file as file name will be changed dynamically.

    so I removed the block

    START DATA
    U01/appl/apps/apps_st/appl/XXTop/12.0.0/bin/file. XML

    control file and tried to run by giving the following command line path

    sqlldr $1@$TWO_TASK control=$XXTOP/bin/LOAD_XML.ctl direct data=/u01/APPL/apps/apps_st/appl/xxtop/12.0.0/bin/file.xml = true;

    But strangely it attempts to load each line of the xml file in the table instead of the whole file

    Please find the log of the program with the error

    ------------------------------------------------------------------
    Loading XML through SQL * Loader begins
    ------------------------------------------------------------------
    SQL * Loader-502: cannot open the data file ' <? XML version = "1.0"? > ' table field TEST_XML XMLDATA
    SQL * Loader-553: file not found
    SQL * Loader-509: System error: no such file or directory
    SQL * Loader-502: cannot open the data file '< root >' XMLDATA field table TEST_XML
    SQL * Loader-553: file not found
    SQL * Loader-509: System error: no such file or directory
    SQL * Loader-502: cannot open the data file '< ScriptFileType >' field XMLDATA table TEST_XML
    SQL * Loader-553: file not found
    SQL * Loader-509: System error: no such file or directory
    SQL * Loader-502: cannot open the data file ' < Type > forms < / Type > ' table field TEST_XML XMLDATA
    SQL * Loader-553: file not found
    SQL * Loader-509: System error: no such file or directory
    SQL * Loader-502: cannot open the data file ' < / ScriptFileType > ' table field TEST_XML XMLDATA
    SQL * Loader-553: file not found
    SQL * Loader-509: System error: no such file or directory
    SQL * Loader-502: cannot open the data file '< ScriptFileType >' field XMLDATA table TEST_XML
    SQL * Loader-553: file not found
    SQL * Loader-509: System error: no such file or directory
    SQL * Loader-502: cannot open the data file ' < Type > PLL < / Type > ' table field TEST_XML XMLDATA
    SQL * Loader-553: file not found
    SQL * Loader-509: System error: no such file or directory
    SQL * Loader-502: cannot open the data file ' < / ScriptFileType > ' table field TEST_XML XMLDATA
    SQL * Loader-553: file not found
    SQL * Loader-509: System error: no such file or directory
    SQL * Loader-502: cannot open the data file '< ScriptFileType >' field XMLDATA table TEST_XML

    Please help me how can I load full xml in a single column using command line without Hardcoding in the control file

    Published by: 907010 on January 10, 2012 02:24

    But strangely it attempts to load each line of the xml file in the table instead of the whole file

    Nothing strange, that the data parameter specifies the file containing the data to load.
    If you use the name of the XML here, the control file will try to interpret each line of XML as being separate ways.

    The traditional approach this is to have the name of the file stored in another file, say filelist.txt and use, for example:

    echo "/u01/APPL/apps/apps_st/appl/xxtop/12.0.0/bin/file.xml" > filelist.txt
    sqlldr $1@$TWO_TASK control=$XXTOP/bin/LOAD_XML.ctl data=filelist.txt direct=true;
    
  • How to load xml with base64 big element using sqlldr

    Hello
    I'm trying to load xml data into Oracle 10 g 2. I want to use tool standard sqlldr if possible.
    (1) I recorded my schema successfully:
    -Put the 6kbytes schema in a table
    - and
    DECLARE
    schema_txt CLOB.
    BEGIN
    SELECT the text IN schema_txt patterns;
    DBMS_XMLSCHEMA.registerschema ("uddkort.xsd", schema_txt);
    END;
    -Success: I can create table like:
    CREATE TABLE XMLTYPE XmlTest
    XMLSCHEMA 'uddkort.xsd '.
    ELEMENT 'profile '.
    ;
    -USER_XML_TABLES shows:
    XMLSCHEMA, SCHEMA_OWNER, NOM_ELEMENT, TABLE_NAME, STORAGE_TYPE
    "XMLTEST", "uddkort.xsd", "THISE", "profile", "OBJECT-RELATIONAL".

    (2) how can I load XML data into that?
    -An element of the schema is < xs: element name = "billede" type = "xs: base64Binary" minOccurs = "0" / >
    -This data field may be 10kbytes or more

    I tried many control files - search the net but no luck so far.
    Any suggestions?
    / Christmas, DK

    I regret - it seems, Miss me some basic understanding here (XBD is new to me...):

    Reread this part of the documentation on the XML to mappings of SQL types:
    http://download.Oracle.com/docs/CD/B19306_01/AppDev.102/b14259/xdb05sto.htm#sthref831

    When you save the relational storage schema object, Oracle creates SQL object types to support the underlying structure.
    In particular (see table 5-6 in the link), XS: base64Binary is mapped to a compatible SQL binary data type: RAW (default), or BLOB (if we use the annotation).

    In my example, the generated object type is:

    SQL> desc "image888_T"
     Nom                                       NULL ?   Type
     ----------------------------------------- -------- ----------------------------
     SYS_XDBPD$                                         XDB.XDB$RAW_LIST_T
     name                                               VARCHAR2(4000 CHAR)
     content                                            BLOB
    

    I don't understand how this can be (is) done automatically?

    When you load an XML instance in the table, the contents of the string encoded in base64 is automatically converted into format binary original and stored as a BLOB (that's works the mapping).
    Then, when you run:

    select extractvalue(t.object_value, '/image/content') from images_table t;
    

    It follows a BLOB column containing the original image, not the string base64, so you won't need a converter.

  • Cannot get rid of loaded xml image scroller when navigate off the page.

    I have a thumb wheel loaded xml that stays on the screen when I leave the frames where it exists.

    This is the upward I tried to solve this problem. It has been suggested that I put a mc on the frames with the scrolling of the image and call it dummy_mc.

    Then I put the code on frameworks that are not supposed to have thumb scroller:

    dummy_mc. Visible = false;

    function removeScrollerF2(e:Event=null):void {}

    If (scroller) {//prevents a problem if you were to use the same navigation code after having removed the scroll}

    scroller.removeEventListener (Event.ENTER_FRAME, moveScrollerThumbs);

    removeChild (scroller);

    scroller = null;  If, when you want to create your clipping, it does not need to be re-created, delete this line of code.

    }

    trace ("dummy2_mc works on null");

    }

    dummy_mc.addEventListener (Event.REMOVED_FROM_STAGE, removeScrollerF2);

    ------------------------------------------------------------------------------------------ ---------------------------------

    I have this error of argument in the output panel:

    ArgumentError: Error #2025: the supplied DisplayObject must be a child of the caller.

    at flash.display::DisplayObjectContainer/removeChild()

    at acolyte51c_AppsPopUpsThumbs_fla::mainsite_mc_2/removeScrollerF2() [acolyte51c_AppsPopUpsTh umbs_fla.mainsite_mc_2::frame73:399]

    at flash.display::MovieClip/gotoAndPlay()

    at acolyte51c_AppsPopUpsThumbs_fla::mainsite_mc_2/gotoFrame2() [acolyte51c_AppsPopUpsThumbs_f the. mainsite_mc_2::frame73:372]

    It's the frame73:399
    removeChild (scroller);


    on mainsite_mc section 73:

    replace line 38:

    this.addChild (scroller);

    with

    dummy_mc. AddChild (scroller);

    and replace the code of 407 + with:

    dummy_mc. Visible = false;<- remove="" the="" graphics="" from="" the="" stage="" of="">

    dummy_mc.addEventListener (Event.REMOVED_FROM_STAGE, removeScrollerF2);

    function removeScrollerF2(e:Event=null):void {}

    scroller.removeEventListener (Event.ENTER_FRAME, moveScrollerThumbs);

    }

  • How to 'Allow smoothing' for the loaded XML .jpg?

    I have a thumb wheel image that loads a bunch of jpg. They are be enlarged rollover in 1,05.

    I've seen pixelated at scale 1 x 1 as well as expanded.

    I'm happy prettey how Flash renders the images with "Allow smoothing" on.

    How would I do it for the loaded xml jpg? Would it be as a script in the main folder or in the xml file?

    Here's how to load images in AS3:

    function completeHandler_AppPopUps(e:Event):void{
              //trace("thumbnail complete "+e.target.loader.parent.parent.name)//tells us when the loading is complete
    
              //size image into scroller (need only if I will have images at different sizes)
              resizeMe(e.target.loader.parent, 60, 90, true, true, false);
    
              TweenMax.to(e.target.loader.parent.parent, .5, {alpha:.7});//makes all thumb images at alpha=.7 after they are fully loaded
              //Tweener.addTween(e.target.loader.parent.parent, { alpha:1, time: .5 } );//caurina version
    
              TweenMax.to(e.target.loader.parent.parent, .5, {colorMatrixFilter:{contrast:1.1, brightness: .7, saturation: .5}});//makes all thumb images at brightness:0.5 after they are fully loaded
    
    
    }
    
    

    I don't want to complicate things more than necessary, but just in case it's needed here is the complete code for the edification of the wheel section:

    /////Parse XML
    //build scroller from xml
    function buildScroller(imageList:XMLList):void{
              trace("build Scroller");
    
              for (var item:uint = 0; item<imageList.length();item++) {
                        var thisOne:MovieClip = new MovieClip();
    
                        //outline
                         var blackBox:Sprite = new Sprite();
                        blackBox.graphics.beginFill(0xFFFFFF);
                        blackBox.graphics.drawRect(-1, -1, 62, 92);//-1,-1 places rectangle 1px left and up.62, 92 draws rectangle 1px wider on all sides of placed image dimenstions of 60x90
                        blackBox.alpha = thumbFadeOut;//setting Border Tweens
                        thisOne.addChild(blackBox);
                        thisOne.blackBox = blackBox;//setting Border Tweens
    
                          thisOne.x = thisOne.myx = (60 + padding) *item;//replaces the line above for scale tweenw roll over calculation. "myx" is a made up term which defines the position. 61 is the width of the thumb
                        thisOne.itemNum = item;
                        thisOne.title = imageList[item].attribute("title");
                        thisOne.link = imageList[item].attribute("url");
                        thisOne.src = imageList[item].attribute("src");
                        thisOne.alpha = 0;//makes all thumb images at alpha=0 before they are fully loaded
    
                        //Loading and Adding the Images
                        //image container
                        var thisThumb:MovieClip = new MovieClip();
                        //add image
                        var ldr:Loader = new Loader();
                        //var url:String = imageList[item].attribute("src");
                        var urlReq:URLRequest = new URLRequest(thisOne.src);
                        trace("loading thumbnail "+item+" into Scroller: " + thisOne.src);//url
                        ldr.load(urlReq);
                        //assign event listeners for Loader
                        ldr.contentLoaderInfo.addEventListener(Event.COMPLETE,completeHandler_AppPopUps);//tells us when the loading is complete
                        ldr.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, errorHandler_AppPopUps);//tells us if there are any typo errors when the loading is complete
                        thisThumb.addChild(ldr);
                        thisOne.addChild(thisThumb);
    
                        //create listeners for this thumb
                        thisOne.buttonMode = true;//makes boxes act as buttons
                        thisOne.addEventListener(MouseEvent.CLICK, clickScrollerItem_AppPopUps);//makes boxes act as buttons
                        thisOne.addEventListener(MouseEvent.MOUSE_OVER, overScrollerItem_AppPopUps);//traces the title when the mouse is over the bounding box in the Output Panel
                        thisOne.addEventListener(MouseEvent.MOUSE_OUT, outScrollerItem_AppPopUps);//traces the title when the mouse is out the bounding box in the Output Panel
    
    
    
                        //add item
                        scroller.addChild(thisOne);
              }
              scroller.addEventListener(Event.ENTER_FRAME, moveScrollerThumbs);//adding movement on mouse position
              trace("termination of build scroller");
    
    }
    
    
    

    in your listener to full charge, enable the property smoothing to the content of your charger (expressed as a bitmap).

    function completeHandler_AppPopUps(e:Event):void{

    Bitmap(e.currentTarget.loader.content).smoothing=true;
              //trace("thumbnail complete "+e.target.loader.parent.parent.name)//tells us when the loading is complete

    //size image into scroller (need only if I will have images at different sizes)
              resizeMe(e.target.loader.parent, 60, 90, true, true, false);

    TweenMax.to(e.target.loader.parent.parent, .5, {alpha:.7});//makes all thumb images at alpha=.7 after they are fully loaded
              //Tweener.addTween(e.target.loader.parent.parent, { alpha:1, time: .5 } );//caurina version

    TweenMax.to(e.target.loader.parent.parent, .5, {colorMatrixFilter:{contrast:1.1, brightness: .7, saturation: .5}});//makes all thumb images at brightness:0.5 after they are fully loaded

    }

  • Loading XML into a Table

    Hi all
    I want to create a procedure in which, I provided the name of the table and the location of the XML file, the procedure goes to this place and pick the file XML and load it into the table. Can it is possible?

    Thank you

    Best regards


    Adil

    Finally, I got your issue! It is the use of DBMS_LOB. LOADFROMFILE, I used DBMS_LOB. LOADCLOBFROMFILE instead. It was actually loading the binary content!. This is a fully functional code based on your table and XML file structure.
    The XML file, I used:

    
    
    
    28004125
    251942
    05-SEP-92
    400
    513
    1
    0
    
    
    28004125
    251943
    04-OCT-92
    400
    513
    1
    0
    
    
    

    True PL/SQL code:

    SQL> /* Creating Your table */
    SQL> CREATE TABLE IBSCOLYTD
      2  (
      3  ACTNOI VARCHAR2 (8),
      4  MEMONOI NUMBER (7,0),
      5  MEMODTEI DATE,
      6  AMOUNTI NUMBER (8,0),
      7  BRCDSI NUMBER (4,0),
      8  TYPEI NUMBER (4,0),
      9  TRANSMONI NUMBER (6,0)
     10  );
    
    Table created.
    
    SQL> CREATE OR REPLACE PROCEDURE insert_xml_emps(p_directory in varchar2,
      2                                              p_filename  in varchar2,
      3                                              vtableName  in varchar2) as
      4    v_filelocator    BFILE;
      5    v_cloblocator    CLOB;
      6    l_ctx            DBMS_XMLSTORE.CTXTYPE;
      7    l_rows           NUMBER;
      8    v_amount_to_load NUMBER;
      9    dest_offset      NUMBER := 1;
     10    src_offset       NUMBER := 1;
     11    lang_context     NUMBER := DBMS_LOB.DEFAULT_LANG_CTX;
     12    warning          NUMBER;
     13  BEGIN
     14    dbms_lob.createtemporary(v_cloblocator, true);
     15    v_filelocator := bfilename(p_directory, p_filename);
     16    dbms_lob.open(v_filelocator, dbms_lob.file_readonly);
     17    v_amount_to_load := DBMS_LOB.getlength(v_filelocator);
     18    ---  ***This line is changed*** ---
     19    DBMS_LOB.LOADCLOBFROMFILE(v_cloblocator,
     20                              v_filelocator,
     21                              v_amount_to_load,
     22                              dest_offset,
     23                              src_offset,
     24                              0,
     25                              lang_context,
     26                              warning);
     27
     28    l_ctx := DBMS_XMLSTORE.newContext(vTableName);
     29    DBMS_XMLSTORE.setRowTag(l_ctx, 'ROWSET');
     30    DBMS_XMLSTORE.setRowTag(l_ctx, 'IBSCOLYTD');
     31    -- clear the update settings
     32    DBMS_XMLStore.clearUpdateColumnList(l_ctx);
     33    -- set the columns to be updated as a list of values
     34    DBMS_XMLStore.setUpdateColumn(l_ctx, 'ACTNOI');
     35    DBMS_XMLStore.setUpdateColumn(l_ctx, 'MEMONOI');
     36    DBMS_XMLStore.setUpdatecolumn(l_ctx, 'MEMODTEI');
     37    DBMS_XMLStore.setUpdatecolumn(l_ctx, 'AMOUNTI');
     38    DBMS_XMLStore.setUpdatecolumn(l_ctx, 'BRCDSI');
     39    DBMS_XMLStore.setUpdatecolumn(l_ctx, 'TYPEI');
     40    DBMS_XMLStore.setUpdatecolumn(l_ctx, 'TRANSMONI');
     41    -- Now insert the doc.
     42    l_rows := DBMS_XMLSTORE.insertxml(l_ctx, v_cloblocator);
     43    DBMS_XMLSTORE.closeContext(l_ctx);
     44    dbms_output.put_line(l_rows || ' rows inserted...');
     45    dbms_lob.close(v_filelocator);
     46    DBMS_LOB.FREETEMPORARY(v_cloblocator);
     47  END;
     48  /
    
    Procedure created.
    
    SQL> BEGIN
      2  insert_xml_emps('TEST_DIR','load.xml','IBSCOLYTD');
      3  END;
      4  /
    
    PL/SQL procedure successfully completed.
    
    SQL> SELECT * FROM ibscolytd;
    
    ACTNOI      MEMONOI MEMODTEI     AMOUNTI     BRCDSI      TYPEI  TRANSMONI
    -------- ---------- --------- ---------- ---------- ---------- ----------
    28004125     251942 05-SEP-92        400        513          1          0
    28004125     251943 04-OCT-92        400        513          1          0
    
    SQL> 
    
  • Connection was Timed out [loading XML] error in the browser of BI Publisher

    Hi all

    I have a report from the editor with "concatenated SQL" as the source of data. It uses about 30 SQL queries. I downloaded applications, model initially. I am able to view the report in the BI Publisher but when I try to edit it, it throws the error "the connection has been exceeded. (Loading XML)

    BI Publisher Version - 10.1.3.4
    OS - Windows XP Professional

    I tried many many times to refresh the edit page, but this random allows me to edit [as once out of 50 tests].

    Can you please help me fix this error? I don't know if I need to implement the option of delay in BI Publisher.

    Any suggestions?

    Thank you...

    OK, I understand,
    Try this
    You must change the property in this file
    $J2EE_HOME/applications/xmlpserver/xmlpserver/js/XDOReportModel.js

    Property name: XDOReportModel.TIMEOUTMSEC
    set the value in milliseconds, like "XDOReportModel.TIMEOUTMSEC = 15000;" -gives you 15 seconds

    don't forget, resume and modify this file, and you must restart the server after making this change.

    This custom be supported by Oracle, since you play in their field.

  • Loading XML with .AS file

    I am new to writing .as files. I have no problem loading in XML format and analysis it when I do it on the first image of one. IN FLORIDA.

    Im trying to do the same using statements classes, packages.

    Ive tried unsuccessfully

    Can someone tell me how close or how far I get this and give help.

    Thank you.

    package {}
    import flash.display.Sprite;
    import flash.events. *;
    flash.net import. *;
    import flash.utils. *;
    import flash.display.Loader;

    public class productBrochureClass extends Sprite {}
    private var: padding: uint = 10;
    private var listHolder:Sprite;
    private var myXML:XML;
    public var xmlLoader:URLLoader;
    var xmlLoader:URLLoader = new URLLoader();

    public void productBrochureClass() {}
    var xmlloader:URLLoader = new URLLoader();
    listHolder = new Sprite();

    xmlLoader.addEventListener (Event.COMPLETE, handleComplete);
    xmlLoader.load (new URLRequest("xml/productBrochuresDatasheets.xml"));

    addChild (listHolder);
    trace ("listholder")
    trace ("xml loaded")
    }

    }
    public void handleComplete(event:Event): void {}
    myXML = new XML (event.target.data);
    createListFromXML (myXML);
    trace ('handshake Complete')
    }



    private void createListFromXML(myXML:XML):void {}
    for (var i: uint = 0; i < xmlLoader.item.length (); i ++) {}
    var listItem:ListItem = new ListItem();
    listItem.setText ("list item" + i + ":" + xml...) Item[i].@name);
    listItem.setID (i);
    listItem.y = i * listItem.height + i * padding material.
    listHolder.addChild (listItem);
    }

    }
    }

    The error means that you lost a brace and close the class leaving something outside the class, also remember that AS3 is case sensitive, don't forget not the scope of vars, if you define a var inside a function, it will be visible inside that work only. I saw not a type of item in list in AS3, it's probably a var inherited type.

    Here's a modified version of your class, you just need to change the list item for something else.

    package{
    
         import flash.display.Sprite;
         import flash.events.*;
         import flash.net.*;
         import flash.utils.*;
         import flash.display.Loader;
    
         public class productBrochureClass extends Sprite{
              private var padding:uint = 10;
              private var listHolder:Sprite;
              private var myXML:XML;
              private var xmlloader:URLLoader
              //public var xmlLoader:URLLoader;
              //var xmlLoader:URLLoader = new URLLoader();
    
              public function productBrochureClass(){
                   xmlloader= new URLLoader();
                   listHolder = new Sprite();
    
                   xmlloader.addEventListener(Event.COMPLETE, handleComplete);
                   xmlloader.load(new URLRequest("xml/productBrochuresDatasheets.xml"));
    
                   addChild(listHolder);
                   trace("listholder")
                   trace("loaded xml")
              }
    
              public function handleComplete(event:Event): void {
                   myXML = new XML(event.target.data);
                   createListFromXML(myXML);
                   trace("handle Complete")
              }
    
              private function createListFromXML(myXML:XML):void{
                   for(var i:uint=0;i		   
  • custom preloader (loading xml files)

    Hello :)

    I want to create the preloader to load xml before application initialization files, I havn't could find no solution on any internet site :(?

    I tried to extend the DownloadProgressBar and then load the xml in the constructor, but systemManager starts initialization of my Application right after that, and before that the preloader is finished, how can I force him to wait until I'm done with loading XML?

    Thanks for any help :) I hope someone can help me :)

    My request and the rest of my containers needs these xml files to initialize.

    Thank you once again :)

    Kind regards
    HW2002

    For other issues with the same problem, which is a lot :)

    You can load your XML files inside createChildren() (), you must override it in your application class and once that the XML file is loaded, call you super.createChildren ();

    and it's all :)

Maybe you are looking for

  • Impossible to update toshiba journE touch

    I can't update the JournE Touch. On the display appears constantly "updating... "more than 30 minutes. I tried several times without result.The camera is turned on only to the home screen... "" Toshiba. " What is the problem? Please help me.

  • Problems with fractional alarm levels

    Hello We use LV8.6 with module DSC under XP Pro. I am building an application that needs to configure/monitor alarms on deployed locally variable shared double digital. I don't seem to be able to define levels of fractional alarm through in Distribut

  • Update security for Windows Vista (KB2079403)

    Could someone help me and let me know if I really need to install this update? I don't think I do because in my installed programs it says I've got MSXML 4.0 SP2. I don't want to install updates hurt unnecessarily and get some sort of error. Also do

  • Head phone Plug does not

    Aloha, as he attempted to remove all kinds of excess programs I think I didn't need, I think I deleted something that I do. When you plug my headphones for personal use, the speakers continue to work but the headphones does not work. Can someone help

  • Windows 7 blue screen ID41 core power

    Hello I have a big problem with the computer that I built my own little running windows 7 Professional 64. I continue to encounter blue screens when I try to play the game or navigation. It happens that sometimes, and I just can't understand what's h