Flex and XML VRs. Database

I want to build a Web site using flex that you display data on a Web site. All of the combined data will be large enough (about 120 000 questions 120 000 answers, ect... (about 8 database columns (or fields) in total). My question about xml is, if I'm not going to display the data when it is called (by a button) and display only 10 to 20 questions and answers at once and not add data to the database or an XML on the site, could I store data in several xml files or a large xml file? Or would it be better to put the data into a database? If yes why? Sammy

If you use several smaller xml files and call them necessary, this is a good approach.

Again, maintenance on all of these files is more difficult than with a database. But a DB means additional administration and requires an intermediate level.

I did this both ways.

Tracy

Tags: Flex

Similar Questions

  • Flex and XML Variables

    Hi, I'm new to Flex and I tried to understand this, but as I can't find many tutorials on the net thought I may as well ask here.

    I currently have a Flex application that connects to a PHP that connects to the MYSQL db, then writes the XML, then it displays it in the data grid.

    Now, it's the problem.

    My XML looks a like that
    <>tiles

    <>tile
    < x >/< x > 1
    < y > 2 / < y >
    < timage > http://www.google.com/intl/en/nav_first.gif < / timage >
    < / slab >

    <>tile
    < x > 2 / < x >
    < y > 3 < /y >
    < timage > http://www.anotherimage.com/image/anotherimage < / timage >
    < / slab >

    < / tiles >

    I am trying to assign each timage to a variable with the url and then get a picture using the source of the url to display. I hope you understand what I'm trying to say that I'm not very good at explaining. The help is much appreciated thanks.

    Maybe I understand, either, but here's my point of view:

    (1) I think you should use TileList, no tile
    (2) set the dataProvider of the TileList on the object that you receive from your xml file

    Here's an example of super fast and dirty I basted together the TileList component example in the documentation:

    http://www.Adobe.com/2006/mxml"initialize ="initData (); ">

    Import mx.controls.Button;
    Import mx.collections. *;
    private var listArray:Array =]
    "" http://www.google.com/intl/en/nav_first.gif ", "
    "" http://www.google.com/intl/en/nav_current.gif ", "
    "" http://www.google.com/intl/en/nav_page.gif ", "
    "" http://www.google.com/intl/en/nav_next.gif " "
    [Bindable]
    public var TileListdp:ArrayCollection;

    private void initData (): void {}
    TileListdp = new ArrayCollection (listArray);
    }
    ]]>


    itemRenderer="mx.controls.Image"/ >

    Al

  • Flex and XML, and Combobox.

    Hello.

    First I'll apologize for whatever it is repeated. I've had a search through the forums, but it was a long and painful process, and I couldn't really find anything useful.

    Secondly, I'm new to Flex, please stick with me if I come out with things that should be obvious.

    The question.

    I created an application base of Flex. This becomes the XML data in a PHP page that querys a MS SQL DB.

    I have the data to fill a datagrid ok, this was done to ensure that it was getting the good things in the DB.

    What I actually want is to put the data in a combobox control, but what I currently get in the CB is [object Object] for each element.

    I really don't know where I went wrong, because the code is implemented that I found on a bunch of websites.

    I really appreciate any help, advice, tips or advice on where I'm wrong with this.

    Thank you very much.

    Now, codey bit...

    Try to add this attribute in the ComboBox element:
    labelField = "trust_name."

    It should look like this:

  • Collection ArrayCollection in flex and ArrayList in java




    Salvation of this world don't
    Here I am with my problem with the hope someone can solve it
    I am totally new to flex and I work only for 3 days in flex. and I learned a little more.
    I want to get the values of database that is received from java to flex datagrid object by using the data provider.
    I did quite well in my opinion. But I could not produce the result in the data grid. Since I am very new. I don't know what is happening.

    my code is here, please help me.

    My mxml file: Myadmin.mxml

    <? XML version = "1.0" encoding = "utf-8"? >
    "" < mx:Application xmlns:mx = ' http://www.adobe.com/2006/mxml ' layout = "vertical" >
    < mx:RemoteObject id = "ber" destination = "dock" showBusyCursor = "true" fault = "faultHandler (event)" > "
    < name mx:method = "getBerth" result = "resultHandler (event)" / >
    < / mx:RemoteObject >

    < mx:Panel id = 'Top' title = "MaBase" width = "100%" height = "40%" enabled = "true" >
    < mx:TextArea id = "sql" width = "100%" height="100%"/ >

    < mx:Button label = "Execute" click = "handleSend ()" / >

    < / mx:Panel >

    < mx:Panel id = "bottomPanel" title = "Results" width = "100%" height = "60%" enabled = "true" >
    < mx:DataGrid id = "dg" dataProvider = "{result}" width = "100 percent" height="100%"/ >


    < / mx:Panel >
    < mx:Label id = "resultLabel" text = "Onumae puriyale ulgathulae" / >

    < mx:Script >
    <! [CDATA]

    Mx.rpc.events import. *;
    Import mx.collections. *;
    Mx.controls import. *;
    Import mx.utils.ObjectUtil;




    caching empty ArrayCollection collection so that we don't continue to create
    new

    private var emptyResults:ArrayCollection = new ArrayCollection();

    [Bindable]
    public var result: ArrayCollection collection = emptyResults;







    private void resultHandler(event:ResultEvent):void
    {
    Alert.Show ("event.result table of results", ObjectUtil.toString (event.result as ArrayCollection collection));
    result = ArrayCollection (event.result);
    var myCursor:IViewCursor=result.createCursor();
    var oldLength:int = result.length;

    Alert.Show (oldLength.ToString ());




    }

    private void faultHandler(event:FaultEvent):void
    {
    Alert.Show (event.fault.faultString, "Error");
    }

    private function handleSend (): void
    {


    ber.getBerth ();


    }




    []] >
    < / mx:Script >


    < / mx:Application >

    My java object: Berth.java


    package samples.sqladmin;
    import java.sql. *;
    Import Java.util;
    import java. IO;

    public class Berth

    {
    Public Shared Sub main (String args []) throws exceptions
    {
    List ArrayList = getBerth();
    System.out.println ("the list is =" + list);
    }

    public static ArrayList getBerth () throws Exception {}
    Connection con = null;
    Statement st = null;
    ResultSet rs = null;
    ResultSetMetaData rsmd = null;
    List ArrayList = new ArrayList();
    HashMap line = null;
    try {}
    Class.forName ("sun.jdbc.odbc.JdbcOdbcDriver");
    } catch (ClassNotFoundException nctf) {}
    System.out.println (CNFE.getMessage ());
    }
    try {}
    con = DriverManager.getConnection ("jdbc:odbc:Jurong", "","");
    St = con.createStatement ();
    String sql = "select * berth;
    RS = ST. ExecuteQuery (SQL);
    rsmd = rs.getMetaData ();
    int colCount = rsmd.getColumnCount ();
    While (RS. Next {}
    line = new HashMap();
    for (int i = 1; i < = colCount; i ++) {}
    Row.put (rsmd. GetColumnName (i), rs.getString (i));
    }
    List.Add (Row);
    }

    }
    {} catch (SQLException sqle)
    System.out.println ("enna da yogans eeeeee...");
    System.out.println (sqle.getMessage ());
    }

    If (con! = null)
    con. Close;
    If (st! = null)
    St.Close ();
    back list;

    }

    }

    my remote-config file is:

    < destination id = "dock" >
    Properties of <>
    samples.sqladmin.Berth < source > < / source >
    < / properties >
    < / destination >

    I got the table in flex collection object, but it gives the values received in java

    Please help me.
    Thanks in advance
    yogans.

    Hi my dear friends

    I'm sorry to put you in trouble. I got the result. The problem is
    not with the code. its with my system. The problem is that I have configured
    same name for datesource for system and user DSN DSN name. After that I deleted
    a user DSN data source. I got it working.

    Thank you very much william, thank you much Nelson for your spontaneous response

    Thank you
    Yogans

  • Flex and ColdFusion on shared server

    Good afternoon everyone,

    So I, like many here I guess, use CF for quite awhile now and I am very interested in what Flex can do. I used the CF adapter several times now with great success on my LOCAL Dev machine, but when I download on my web server (hosted by the My Site host), it does not work. Instead, it throws an error springing from the somrthing on a flexgateway.

    So what I was hoping that someone could tell me my host does not support or is at - it something I don't in my setting up a Flex project I have to do? I had the impression to run a simple Flex application, you didn't need something special at the end server except the flash player 9.

    When I use Flex and CF adapter I just follow the steps to create what I need. I do not use the part "login" so I uncheck this option. Except that I use all the default settings.

    And in regards to my host, I have another Flex application up, which works perfectly, but it uses no CFCS to fill in the data of a database as I am doing now.

    I searched for many hours a lot now for a simple question answer with no luck.

    Here, any help would be greatly appreciated.

    OK, I see. So I think between you and your host that they provide you with a URL string of some sort that you have placed in the crossdomain.xml on your roots.

    Something like this maybe:

    And the crossdomain.xml file is on the root of your web or in the bin folder?

  • I can not compile for iOS more with Flex and AIR 3.8

    Hello team Adobe and others.

    I use for my business framework 4.10 Apache projects Flex and adobe Air 3.8.

    I always had problems to compile and publish iOS apps (with Air 3.5 front), but with AIR 3.8, it was a miracle, I compile my projects without error on Windows... until today.

    I am running this command in DOS to compile my project:

    "C:\Program Files\Java\jre7\bin\java.exe" - jar "C:\Program Files\Adobe\Adobe Flash Builder 4.7 (64 Bit)\sdks\4.10 - 3.8\lib\adt.jar AIR ' - package - target the ipa-app-store - hideAneLibSymbols non - implementation service-profile 'S:\Directory_to_MobileProvision.mobileprovision' - shops pkcs12 - keystore"S:\Directory_to_Certificats_ios.p12"- storepass my_private_password Proginov_FVTE_V45.ipa Proginov_FVTE_V45 - app.xml active com config_app.xml [email protected] Proginov_FVTE_V45.swf - extdir"S:/Directory_to_ANE/air_3.8_pnv_3.00 ".

    And I get this result after 1 hour of compilation:

    Bug iOS.png

    If you want, I can send you my file bin-release-temp and DONKEY to try for yourself, but I need to private messaging, because I don't want to publish my project private to everyone.

    Thank you

    Could you please try the growing size of the java heap in your order.

    for example, "C:\Program Files\Java\jre7\bin\java.exe" - Xmx2048m-jar...

  • Flex and InDesign application WYSIWYG editing

    Hello

    I'm creating an application using Flex and InDesign Server. I am facing an interesting problem with it.

    Flex application renders a model (contain images or text) based on XML. After editing the text content by the user, this XML model will change to InDesign server and will generate PDFS. It works very well. But if I compare the PDF model and model in Flex then I sometimes noticed the problem about text WYSIWYG template.

    I noticed this problem in the content of multiline text.

    Can someone help me?

    Thanks in advance.

    Pierrel

    To do this, create a custom algorithm to map the online composer and InDesign text rendering style line.

  • All tables and xml are be NULL problem

    Hello guys

    I'm working on a project that uses the format of loading xml, e4x and intensively, table manipulation and it was fine but now I'm stuck on a strange problem.  All code was beautiful and application work and respond in a desired way, but then mystourisly it stopped working and started to return NULL values in almost all the tables of the (internal) actionscript and XML varibales.

    Now every time I have to load the xml file and set the loaded xml internal variables, internal values get only NULL instead of data.
    The same is the situation with the berries, I created a few components in mxml, and when I passed them to reference tables, the code gets compiled successfully, but again Array has only null values [that code worked very well too]

    I wonder if Adobe Flex did an update reduced to silence or something similar and it's the result of this things!

    I use Adobe Flex 3.2 SDK 3.3 on windows Vista Ultimate Edition.

    Please check this project attached, import it and see if you face the same problem

    Thank you

    Link to the problematic project

    http://isolatedperson.googlepages.com/problemXperiment.zip

    Problem screenshot

    http://isolatedperson.googlepages.com/xmlissue.jpg

    HTTPService to load the data. You will have less problems.

    
    
         
              
         
         
         
    
    
  • Flex php XML return connection

    Hello! IM new to flex and I have a question I hope someone can answer. I have a flex application I'm building that needs to display a list of dynamic images, preferably with icons. I built the list of titles, but I do not know how to connect the HTTPService data to the list. the HTTPService returns XML data, it must be easy. but, as I said, Im really new. Please help me!

    "arthurlockman" wrote in message
    News:g7kk4g$177$1@forums. Macromedia.com...
    > Hello! IM new to flex and I have a question which I hope someone can
    > response. I have a flex application I'm building that needs a list
    > of
    > dynamic images, preferably with icons. I built the list, but I have no
    > soaps
    > How to connect the HTTPService data to the list. the HTTPService is
    > return
    > The XML data, so it must be easy. but, as I said, Im really new. Help, please
    > Me!
    >

    Depending on what you are willing to do, you can either use a Repeater with
    a picture or a custom component that contains an Image or you can use a list
    component to display an Image or a custom with a base Image component (or
    SwfLoader, or Loader) inside. It is literally a ton of stuff on it
    in the help. Here are a few places that you can try:

    Help > Flex Start Page > creating a Simple RIA
    Help > Help contents > User Interfaces
    -With the help of data providers and Collections
    -Controls
    -Image
    -SwfLoader
    -With the help of data-driven controls
    -With the help of converters point and section editors
    -Dynamically repeating controls and containers

    Here is an example that might get you quickly * if * you are not the type
    to read the docs:

    http://examples.Adobe.com/flex2/inproduct/SDK/PhotoViewer/PhotoViewer.html

    HTH;

    Amy

  • Back up and restore a database of olite.

    Hello

    I would like to know if it is possible to back up and restore a database of olite on a MUC (mobile unite computer science).


    Is there a war we can export/import, datapump or generate an xml file and in the database on request.


    Some customers may be more than two weeks then between a sync. We would like to backup the database on the MUC itself incase of corruption and be able to restore it and add the syn before the corruption or the problem.

    We are looking for a solution and not lost any given upadte or insert by the customer (not doing a complete refresh before the crash).


    Thank you
    Ron

    The Oracle Database Lite load utility (olload) allows you to load data from a
    external file in an Oracle Database Lite, table or unload (dump)
    data from a table of Oracle Lite database to an external file. Please visit the customer in Oracle Lite 10.3.0.2.0 Guide

  • PL/SQL and XML

    So I have a little problem. I have a request that I need to have to produce XML from. I was initially doing this through htp.prn, but then I realized that some of the data that I was out to and XML file may have special characters in them, namely signs and double quotes. I decided to see if Oracle were all functions to remove special characters and replace them with the HTML counterparts (an ampersand would turn into & amp ;)) I found a few things that seemed useful, but the problem is, with the functions I found, he wanted the data to be strictly out of the database and some of the data I wanted in the XML document was also user entered on the pages. Is there something out there that will search by text AND query results to check that there are no special characters? Thank you.

    -Joshua

    The following function should work for what you are trying to do.

    htp.p(htf.escape_sc(:P1_ITEM));
    

    To escape the database columns simply include in your select statement:

    SELECT htf.escape_sc(COLUMN_NAME) alias
      FROM TABLE
    

    To escape from the elements on your page apex:

    INSERT INTO table
               (COLUMN_NAME)
         VALUES(htf.escape_sc(:P1_ITEM))
    

    Good luck

    Tyson

    Published by: Tyson Janet on November 25, 2008 16:12

  • I have a server/database Application Express 4.1.1 running and a server/database Application Express 4.2.0 running. Is it risky to try to upgrade to the latest version and start using the universal or complex theme?

    I have a server/database running Application Express 4.1.1 and a server/database active Application Express 4.2.0. Is it risky to try to upgrade them both to the latest version and start using the universal or complex theme?  Is how easy it to do? Recommended?

    The servers are windows 2008 r2. Don't know if it matters.

    I'm not exactly an expert at the express request...

    Hi DJake,

    DJake wrote:

    I have a server/database Application Express 4.1.1 running and a server/database Application Express 4.2.0 running. Is it risky to try to upgrade them both to the latest version and start using the universal or complex theme?  Is how easy it to do? Recommended?

    The servers are windows 2008 r2. Don't know if it matters.

    I'm not exactly an expert at the express request...

    Please read the documentation of the requirement for Oracle APEX 5. Ensure that your environment meets these requirements. Upgrade your oracle database or other software if necessary components and then you can go right 4.1/4.2 to 5.0 update according to the above-discussed upgrade strategies in the above discussions.

    Reference: https://docs.oracle.com/cd/E59726_01/install.50/e39144/pre_require.htm#HTMIG376

    You should go for upgrade of the Oracle APEX of 4.1 to 5.x. Regression test your applications to remove if any errors introduced by upgrade. The kickoff of a new project to migrate your applications to universal theme.

    Reference:

    Kind regards

    Kiran

  • I have to stop and start the database after the data cache value increases?

    Hello!

    rule of Calc is in error and indicating that the error can be caused by data cache setting small size?

    I increased the value, but it still gives the same error message. I can't stop and start the database, just clicked on apply.

    I need also to check the journal rule and computation of the application to determine the cause of the error.

    But the key is in the question in the header...

    Kind regards

    user637777


    Yes, you do.

  • Firewall rules RMAN target database and RMAN catalog database

    Hi, we are on Oracle 11.2.0.4 and we just build a new environment, in which case the RMAN catalog is located on a seprate from the target database server. I'm trying to figure if the firewall between these two rules should be two-way, so that the target database and RMAN catalog database can ping each other. If bi-directional rules in place, so what's the reason for this? I understand that during RMAN backup entries are made in the RMAN catalog database, but do not know if the RMAN catalog database must always meet target db. Thank you!

    If you run the rman command on the target database server, it acts as a client to the catalog database server by connecting on sqlnet to the catalog database.

    If you run the rman command on the catalog database server, it's a sqlnet connection join the target database server.

    In both cases, rman is simply a client that connects to the two databases.

    Hemant K Collette

  • How to generate XML from database data using a procedure?

    Hello

    I want to generate output as xml to database tables using a procedure. Can anyone suggest me on how to do this?

    Thanks for your time.

    Reel for the XML script

Maybe you are looking for

  • EtherCAT: "found a module not supported on the slave device"?

    Hello I have a CompactRIO system that uses of slave hunts EtherCAT (cRIO-9081 + cRIO-9144) when I tried to deploy my settings, I got this message: Found a module not supported on the device slave address 0: 32445 slot What does that mean? (I have sev

  • ID. Frame.dll at startup

    I often get above the beginning upward.  What is this and how do I get rid of him?

  • PSC 1210 not printing anything

    According to the title - no problem, put on the market, no led error, tried to print, sheet produced but empty. I replaced both cartridges - still nothing, no alignment sheet (not even a void) does not produce but now "Check print cartridge" flashes.

  • Lock shift blackBerry Smartphones

    How do you keep typing uppercase in a series similar to the use of the caps lock on the computer?  You still have to press the left SHIFT key or right to do this every time?  Also, how you "BOLD" or stress?  If there is a site that deals with tap on

  • I can not longer right click my desktop or in a folder and get a new Forlder.

    I am running Windows 7 and I can not longer right click my desktop or in a folder and get a new Forlder.  My only option is a "new compressed folder (zip file)" the only thing I added to my computer (that I know) is Norton Internet Security.