Dynamicaly Rendering GUI in Flex from XML

Hi
Can anyone help me with some links or some examples of how to dynamically generate UI in Flex from XML
I think it's possible. But is there any example/link which can give me a headstart ?
Reagrds
Biswamit

Hi Biswamit,
Start with playing with MXMLLoader XML parser
http://www.dreaminginflash.com/2008/04/24/the-mxmlloader-class-dynamic-load-mxml/

Similar Messages

  • How to send data one row at a time from xml to flex

    I want to setTimerEvent while sending data from xml to flex, one row at a time.
    I have attached the xml.
    Thanks in advance.

    Hi Greg,
    Thanks for the reply. You must have seen the xml which i have attached.Here is the .mxml code which i have written:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="accountData.send()">
    <mx:Script>
    <![CDATA[
    import mx.controls.*;
    import mx.rpc.events.FaultEvent;
    import mx.rpc.events.ResultEvent;
    import mx.collections.ArrayCollection;
    [Bindable]
    private var AccountInformation:ArrayCollection;
    private function AccountHandler(evt:ResultEvent):void
        AccountInformation = evt.result.xml.AccInfo;
    private function faultHandler(evt:FaultEvent):void
        var faultMessage:String = "Could not connect with XML file";
        Alert.show(faultMessage, "Error opening file");
    ]]>
    </mx:Script>
    <mx:HTTPService id="accountData" url="pgm1.xml" result="AccountHandler(event)" fault="faultHandler(event)"  />
    <mx:DataGrid x="20" y="24" width="950" dataProvider="{AccountInformation}" />
    </mx:Application>
    This reads and displays all the rows. But I want to display single row at a time with sometime time gap between the display of two consecutive rows.I am new to flex and this is my first code, so need your help on this.
    I hope i have made myself clear. If there is anything else please let me know.
    Looking forward to some solution.
    Thanks in advance.
    Regards,
    praj58

  • How to load images in List from Xml and view the image and resize the image & save in Flex?

    Hi Friends,
    I am new to flex i am doing application for image resizing rotating and save the resize image.
    I want to load the images from xml file to listcontrol and show that images as a icon in the listview,then i want to drag that image to panel that time it should show it original size of the Image.then it allows user to resize ,crop,rotate the image.then i want to save the resize image,when i save the resize image it should replace the original image in the xmllist.
    I am looking for some useful suggession ,if you dont mind want to see some snippet code.
    It will help me to understand the concept.
    Cheers,
    B.Venkatesan

    Not in Crystal Reports Basic for Visual Studio 2008. You'll have to upgrade to CR 2008 (12.x). Then use kbase [1320507|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes.do] as a guide on how to do this.
    Ludek

  • Problem in load data from XML in Flex 4

    Hi Everyone,
    I tried all the possible ways which ever i know to load the data from XML to Flash Builder (Flex 4). Actually i want to load the data from XML to Datagrid. The project is executed without any error and warnings but the data is not loaded into datagrid. i will paste the coding below if anyone know the solution please let me know. Waiting for reply.
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
         xmlns:s="library://ns.adobe.com/flex/spark"
         xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" creationComplete="userRequest.send(); ">
    <fx:Declarations>
         <s:HTTPService id="userRequest" url="xdata.xml" useProxy="false" resultFormat="e4x" />
    </fx:Declarations>
    <mx:DataGrid id="dgUserRequest" x="20" y="160" dataProvider="{userRequest.lastResult.user}" >
         <mx:columns>
              <mx:DataGridColumn headerText="User ID" dataField="id"/>
              <mx:DataGridColumn headerText="User Name" dataField="name"/>
         </mx:columns>
    </mx:DataGrid> 
    </s:Application>

    It is better to add result handler to the HttpService and debug to see the actual structure of the xml.

  • Tree from XML (JMX monitoring and management application)

    I am trying to create a tree structure from XML. I am setting
    the below XML as the dataProvider for the tree.
    Now I only want to see the "element" labels in the tree
    structure. But I also see the operationList and the operations
    under it too. Is there any way I can filter these out from the tree
    structure ?
    The reason why I have the operations is that I have to
    display them on the right hand side, i.e whenever someone clicks on
    an element the operations corresponding to that have to be
    displayed on the right hand side.
    If you see the "flex-admin" application under the livecycle
    data services ... my applications is exactly similar to that.
    If anyone needs more information, I would be happy to
    provide.
    <?xml version="1.0" encoding="UTF-8"?>
    <centralmbeanserver>
    <element label = "FMC-DropCopies-QA" canonicalName =
    "CentralMBeanServer:App=FMC-DropCopies-QA" >
    <element label = "Cache Manager" canonicalName =
    "CentralMBeanServer:App=FMC-DropCopies-QA,Componet=Cache Manager"
    >
    <element label = "SACFixFilterRulesCache" canonicalName =
    "CentralMBeanServer:App=FMC-DropCopies-QA,Componet=Cache Manager,DB
    Cache=SACFixFilterRulesCache" >
    <operationList>
    <operation name = "reloadDBCache" returnType =
    "java.lang.String">
    </operation>
    </operationList>
    </element>
    <element label = "SACFIXExecBrokerMapCache" canonicalName
    = "CentralMBeanServer:App=FMC-DropCopies-QA,Componet=Cache
    Manager,DB Cache=SACFIXExecBrokerMapCache" >
    <operationList>
    <operation name = "reloadDBCache" returnType =
    "java.lang.String">
    </operation>
    </operationList>
    </element>
    </element>
    <element label = "Source Manager" canonicalName =
    "CentralMBeanServer:App=FMC-DropCopies-QA,Componet=Source Manager"
    >
    <operationList>
    <operation name = "enableAllMsgSources" returnType =
    "void">
    </operation>
    <operation name = "disableAllMsgSources" returnType =
    "void">
    </operation>
    <operation name = "listMsgSourceNames" returnType =
    "java.util.List">
    </operation>
    <operation name = "reloadSources" returnType = "void">
    </operation>
    </operationList>
    <element label = "CS-SACFIX6-SS" canonicalName =
    "CentralMBeanServer:App=FMC-DropCopies-QA,Componet=Source
    Manager,Msg Source=CS-SACFIX6-SS" >
    <operationList>
    <operation name = "enableMsgSource" returnType = "class
    java.lang.String">
    </operation>
    <operation name = "disableMsgSource" returnType = "class
    java.lang.String">
    </operation>
    </operationList>
    </element>
    <element label = "CS-SACFIX1-SS" canonicalName =
    "CentralMBeanServer:App=FMC-DropCopies-QA,Componet=Source
    Manager,Msg Source=CS-SACFIX1-SS" >
    <operationList>
    <operation name = "enableMsgSource" returnType = "class
    java.lang.String">
    </operation>
    <operation name = "disableMsgSource" returnType = "class
    java.lang.String">
    </operation>
    </operationList>
    </element>
    </element>
    </element>
    </centralmbeanserver>

    How is the WebSphere node connected to the cluster? Is it using TCMP? Extend?
    Local, Distributed, Replicated, Near, Overflow, External and Optimistic cache statistics appear in the Coherence JMX server. However, near and local caches created on extend nodes do not appear. Therefore the -Dtangosol.coherence.management.remote=true on an Extend client will not register the near or local caches.
    Thanks,
    Everett

  • [svn] 2716: SDK-15848 - Conditional compilation constants defined in flex-config. xml are never used if a single constant is specified on the command line

    Revision: 2716
    Author: [email protected]
    Date: 2008-08-04 01:18:12 -0700 (Mon, 04 Aug 2008)
    Log Message:
    SDK-15848 - Conditional compilation constants defined in flex-config.xml are never used if a single constant is specified on the command line
    * There's a possibility this will break a conditional complication test which disallows overwriting an existing definition -- I don't know if that will break the build, but the test should be removed either way.
    * Using append syntax ("-define+=" on the command line or ant tasks, or append="true" in flex-config) and redefining a value works now if you use an already-defined namespace and name.
    * So your flex-config may have -define=CONFIG::debug,false, and you may want -define+=CONFIG::debug,true from the commandline build, or FB build.
    * Made the ASC ConfigVar fields final as a sanity check since overwriting is now allowed. It would be harder to track changes and subtle bugs if they were mutable. This means that you must build a new ConfigVar object if you need to make changes.
    Bugs: SDK-15848
    QA: Yes. Please read the updated javadocs in CompilerConfiguration. Tests need to be added to validate that overwriting is allowed, and happens correctly in different situations: I believe the order should be that flex-config is overwritten by a custom config (can we have more than one user config? is the order deterministic? I forget...), is overwritten by commandline or OEM. Did I miss any? (I didn't write code which changes this, it works however the existing configuration system allows overwriting and appending; if we have tests for that, maybe we don't need them duplicated for this feature.)
    Doc: Yes. Please read the updated javadocs in CompilerConfiguration.
    Reviewer: Pete
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-15848
    http://bugs.adobe.com/jira/browse/SDK-15848
    Modified Paths:
    flex/sdk/trunk/modules/asc/src/java/macromedia/asc/embedding/ConfigVar.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/common/CompilerConfiguration.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/tools/oem/internal/OEMConfiguration.java

    Please note: I AM USING:
    JkOptions ForwardKeySize ForwardURICompat -ForwardDirectories
    And that's what's supposed to fix this problem in the first place, right??

  • Why can't got element from XML

    I try to load an XML element from an XML file using
    HTTPService Object . But The loaded object always null .
    Here is my XML Content
    <?xml version="1.0" standalone="no"?>
    <manifest identifier="imsmanifest.xml" version="1.3"
    xmlns="
    http://www.imsglobal.org/xsd/imscp_v1p1"
    xmlns:adlcp="
    http://www.adlnet.org/xsd/adlcp_v1p3"
    xmlns:adlseq="
    http://www.adlnet.org/xsd/adlseq_v1p3"
    xmlns:imsss="
    http://www.imsglobal.org/xsd/imsss"
    xmlns:xsi="
    http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="
    http://www.imsglobal.org/xsd/imscp_v1p1
    imscp_v1p1.xsd
    http://www.adlnet.org/xsd/adlcp_v1p3
    adlcp_v1p3.xsd
    http://www.adlnet.org/xsd/adlseq_v1p3
    adlseq_v1p3.xsd
    http://www.imsglobal.org/xsd/imsss
    imsss_v1p0.xsd">
    <metadata>
    <schema>ADL SCORM</schema>
    <schemaversion>CAM 1.3</schemaversion>
    </metadata>
    <organizations default="default_org">
    <organization identifier="default_org">
    <title>example_1</title>
    <item identifier="lesson1"
    identifierref="lesson1_ref">
    <title>Lesson_1_Interface</title>
    <imsss:sequencing xmlns:imsss="
    http://www.imsglobal.org/xsd/imsss"
    xmlns:adlseq="
    http://www.adlnet.org/xsd/adlseq_vlp3">
    <imsss:controlMode choiceExit="true" />
    </imsss:sequencing>
    </item>
    <item identifier="lesson2"
    identifierref="lesson2_ref">
    <title>Lesson_2_Toolbox</title>
    <imsss:sequencing xmlns:imsss="
    http://www.imsglobal.org/xsd/imsss"
    xmlns:adlseq="
    http://www.adlnet.org/xsd/adlseq_vlp3">
    <imsss:controlMode choiceExit="false" />
    </imsss:sequencing>
    </item>
    <item identifier="lesson3"
    identifierref="lesson3_ref">
    <title>Lesson_3_Palettes</title>
    <imsss:sequencing xmlns:imsss="
    http://www.imsglobal.org/xsd/imsss"
    xmlns:adlseq="
    http://www.adlnet.org/xsd/adlseq_vlp3">
    <imsss:controlMode choiceExit="true" />
    </imsss:sequencing>
    </item>
    <item identifier="lesson4"
    identifierref="lesson4_ref">
    <title>Lesson_4_Layers</title>
    <imsss:sequencing xmlns:imsss="
    http://www.imsglobal.org/xsd/imsss"
    xmlns:adlseq="
    http://www.adlnet.org/xsd/adlseq_vlp3">
    <imsss:controlMode choiceExit="true" />
    </imsss:sequencing>
    </item>
    <imsss:sequencing xmlns:imsss="
    http://www.imsglobal.org/xsd/imsss"
    xmlns:adlseq="
    http://www.adlnet.org/xsd/adlseq_vlp3">
    <imsss:controlMode flow="false" forwardOnly="true"
    choice="true" />
    </imsss:sequencing>
    </organization>
    </organizations>
    <resources>
    <resource identifier="lesson1_ref"
    adlcp:scormType="asset" type="webcontent" href="no title/Lesson 1
    -- Interface/Lesson1.htm">
    <file href="no title/Lesson 1 -- Interface/Lesson1.htm"
    />
    <file href="no title/Lesson 1 --
    Interface/images/headertop.gif" />
    <file href="no title/Lesson 1 --
    Interface/images/headerside.gif" />
    <file href="no title/Lesson 1 --
    Interface/images/pssidebar.gif" />
    <file href="no title/Lesson 1 --
    Interface/images/LessonTitle1.gif" />
    <file href="no title/Lesson 1 --
    Interface/images/interfacesmall.jpg" />
    <file href="no title/Lesson 1 --
    Interface/images/EndOfLesson.gif" />
    </resource>
    <resource identifier="lesson2_ref"
    adlcp:scormType="asset" type="webcontent" href="no title/Lesson 2
    -- Toolbox/Lesson2.htm">
    <file href="no title/Lesson 2 -- Toolbox/Lesson2.htm"
    />
    <file href="no title/Lesson 2 --
    Toolbox/images/headertop.gif" />
    <file href="no title/Lesson 2 --
    Toolbox/images/headerside.gif" />
    <file href="no title/Lesson 2 --
    Toolbox/images/pssidebar.gif" />
    <file href="no title/Lesson 2 --
    Toolbox/images/LessonTitle2.gif" />
    <file href="no title/Lesson 2 --
    Toolbox/images/toolbox.gif" />
    <file href="no title/Lesson 2 --
    Toolbox/images/selectiontools.gif" />
    <file href="no title/Lesson 2 --
    Toolbox/images/enhancementtools.gif" />
    <file href="no title/Lesson 2 --
    Toolbox/images/navagationtools.gif" />
    <file href="no title/Lesson 2 --
    Toolbox/images/ZoomToolIcon.gif" />
    <file href="no title/Lesson 2 --
    Toolbox/images/HandTool.gif" />
    <file href="no title/Lesson 2 --
    Toolbox/images/colorselect.gif" />
    <file href="no title/Lesson 2 --
    Toolbox/images/eyedroppertool.gif" />
    <file href="no title/Lesson 2 --
    Toolbox/images/eyedroppertool.gif" />
    <file href="no title/Lesson 2 --
    Toolbox/images/EndOfLesson.gif" />
    </resource>
    <resource identifier="lesson3_ref"
    adlcp:scormType="asset" type="webcontent" href="no title/Lesson 3
    -- Palettes/Lesson3.htm">
    <file href="no title/Lesson 3 -- Palettes/Lesson3.htm"
    />
    <file href="no title/Lesson 3 --
    Palettes/images/headertop.gif" />
    <file href="no title/Lesson 3 --
    Palettes/images/headerside.gif" />
    <file href="no title/Lesson 3 --
    Palettes/images/pssidebar.gif" />
    <file href="no title/Lesson 3 --
    Palettes/images/LessonTitle3.gif" />
    <file href="no title/Lesson 3 --
    Palettes/images/defaultpalettes.gif" />
    <file href="no title/Lesson 3 --
    Palettes/images/EndOfLesson.gif" />
    </resource>
    <resource identifier="lesson4_ref"
    adlcp:scormType="asset" type="webcontent" href="no title/Lesson 4
    -- Layers/Lesson4.htm">
    <file href="no title/Lesson 4 -- Layers/Lesson4.htm"
    />
    <file href="no title/Lesson 4 --
    Layers/images/headertop.gif" />
    <file href="no title/Lesson 4 --
    Layers/images/headerside.gif" />
    <file href="no title/Lesson 4 --
    Layers/images/pssidebar.gif" />
    <file href="no title/Lesson 4 --
    Layers/images/LessonTitle4.gif" />
    <file href="no title/Lesson 4 --
    Layers/images/flatlayers.gif" />
    <file href="no title/Lesson 4 -- Layers/images/37.gif"
    />
    <file href="no title/Lesson 4 --
    Layers/images/layers.gif" />
    <file href="no title/Lesson 4 --
    Layers/images/layerarrows.gif" />
    <file href="no title/Lesson 4 --
    Layers/images/eyeicon.gif" />
    <file href="no title/Lesson 4 --
    Layers/images/paintbrush.gif" />
    <file href="no title/Lesson 4 --
    Layers/images/linkicon.gif" />
    <file href="no title/Lesson 4 --
    Layers/images/newlayericon.gif" />
    <file href="no title/Lesson 4 --
    Layers/images/EndOfLesson.gif" />
    </resource>
    </resources>
    </manifest>
    quote:
    Text
    For example , i want to get metadata element .
    var nodes:XML = XML(myManifestSrv.lastResult.metadata);
    trace(nodes)
    quote:
    Text

    Follow your suggestion , i use AS style to load the XML.
    below is my full code , it's an AIR application .
    <?xml version="1.0" encoding="utf-8"?>
    <mx:WindowedApplication xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute" initialize="init()">
    <mx:Script>
    <![CDATA[
    import mx.rpc.events.ResultEvent;
    import mx.rpc.http.HTTPService;
    public var myManifestSrv:HTTPService;
    private function init():void{
    myManifestSrv = new HTTPService();
    myManifestSrv.url = "datas/example1/imsmanifest.xml";
    myManifestSrv.resultFormat = "e4x";
    myManifestSrv.addEventListener(ResultEvent.RESULT ,
    manifestLoaded);
    myManifestSrv.send();
    private function manifestLoaded(event:Event):void{
    var nodes:XML = XML(myManifestSrv.lastResult.metadata);
    trace(nodes);
    ]]>
    </mx:Script>
    </mx:WindowedApplication>
    you can try my code ,
    trace(myManifestSrv.lastResult.metadata) is still null.
    I am not quite sure whether the resaon of fault is from XML
    problem .When i use a simple XML , such as :
    <?xml version="1.0" encoding="UTF-8"?>
    <galleries>
    <gallery id="flextravel">
    <description>Trip photos from various Flex team
    members</description>
    <photo>
    <name>Acropolis: Matt Chotin</name>
    <description>Acropolis on Calton Hill in
    Edinburgh</description>
    <source>flextravel/Acropolis on Calton
    Hill.jpg</source>
    </photo>
    <photo>
    <name>Edinburgh Castle: Matt Chotin</name>
    <description>The Edinburgh Castle as seen from
    fountain in the Princess Gardens</description>
    <source>flextravel/Fountain and Edinburgh
    Castle.jpg</source>
    </photo>
    </gallery>
    </galleries>
    It is OK.

  • [svn] 3025: Add libs/player/ 10 directory to the library path in the team apps flex-config.xml file.

    Revision: 3025
    Author: [email protected]
    Date: 2008-08-28 11:24:42 -0700 (Thu, 28 Aug 2008)
    Log Message:
    Add libs/player/10 directory to the library path in the team apps flex-config.xml file. This is to matche what's in the flex-config.xml file that comes with the Flex SDK.
    Add libs/player directory to the library path of the flex-config.xml file that is shared by the qa-manaul and qa-regress webapps. This is to match what's in the flex-config.xml file that comes with the sdk.
    Change the call to mxmlc in the compile-swf target in the flexunit build script to set the target player version to 10.0.0.
    Remove web services and http service tests that were removed by Bill from qa feature.properties files otherwise the automated test frameworks will try to run these tests and blow up.
    Modified Paths:
    blazeds/trunk/apps/team/WEB-INF/flex/flex-config.xml
    blazeds/trunk/qa/apps/qa-regress/testsuites/flexunit/build.xml
    blazeds/trunk/qa/features/full.properties
    blazeds/trunk/qa/features/httpService.properties
    blazeds/trunk/qa/resources/config/flex-config.xml
    Removed Paths:
    blazeds/trunk/qa/features/nist.properties
    blazeds/trunk/qa/features/webService.properties

    Revision: 3025
    Author: [email protected]
    Date: 2008-08-28 11:24:42 -0700 (Thu, 28 Aug 2008)
    Log Message:
    Add libs/player/10 directory to the library path in the team apps flex-config.xml file. This is to matche what's in the flex-config.xml file that comes with the Flex SDK.
    Add libs/player directory to the library path of the flex-config.xml file that is shared by the qa-manaul and qa-regress webapps. This is to match what's in the flex-config.xml file that comes with the sdk.
    Change the call to mxmlc in the compile-swf target in the flexunit build script to set the target player version to 10.0.0.
    Remove web services and http service tests that were removed by Bill from qa feature.properties files otherwise the automated test frameworks will try to run these tests and blow up.
    Modified Paths:
    blazeds/trunk/apps/team/WEB-INF/flex/flex-config.xml
    blazeds/trunk/qa/apps/qa-regress/testsuites/flexunit/build.xml
    blazeds/trunk/qa/features/full.properties
    blazeds/trunk/qa/features/httpService.properties
    blazeds/trunk/qa/resources/config/flex-config.xml
    Removed Paths:
    blazeds/trunk/qa/features/nist.properties
    blazeds/trunk/qa/features/webService.properties

  • Serializing derived complex types from XML

    Hi all,
    I am having a hard time serializing derived complex types
    from XML. I used the "Import Web Service" wizard to create proxy
    classes for the SOAP described elements.
    The XML that I am consuming comes from a .NET backed and
    include typing statements like this:
    <AssetType xsi:type="CarAssetType" />
    This element is always serialized as an instance of AssetType
    not an instance of CarAssetType.
    Does flex not support derived typing during XML
    serialization?
    Thanks for the help,
    Derek Basch

    You may need consume wsdl file or web service using the following steps to generate the corrected schemas:
     Right click to you BizTalk project
    Add->Add Generated Items..
    Consume WCF Service
    Select Metadata Exchange
    Add wsdl path
    When you see answers and helpful posts, please click Vote As HelpfulPropose As Answer, and/or Mark As Answer

  • Building charts from xml

    I'm trying to build a series of charts from xml (sample below). Examples might be a column chart of all scores, or a column chart of all 'fred' values. All the examples I've seen are ArrayCollections, or if they are XML, they are very simple xml. I've tried converting the xml to an ArrayCollection (didn't work) and I've tried using the xml as the datasource. I could loop through and build a simple xml for each chart but there must be an easier way. Any suggestions.
    <results>
                    <item name="group1" speed="100" score="23" time="123">
                        <detail>
                            <element name='fred'>2</element>
                            <element name='john'>3</element>
                        </detail>
                    </item>
                    <item name="group2" speed="10" score="3" time="1">
                         <detail>
                             <element name='fred'>12</element>
                             <element name='john'>31</element>
                         </detail>
                     </item>
                    <item name="group3" speed="230" score="53" time="78">
                         <detail>
                             <element name='fred'>42</element>
                             <element name='john'>81</element>
                         </detail>
                     </item>
    </results> 

    Charting framework access the fields like this item[yField] so any of the y field values that you have given does not work i.e. item["item.detail[0]"] etc. do not work.
    For this purpose we created a property called dataFunction on Series, CategoryAxis classes through which you can provide appropriate value for your fields.
    From the livedocs - http://livedocs.adobe.com/flex/3/langref/mx/charts/chartClasses/Series.html#dataFunction
    You typically use the dataFunction property to access fields in a data provider that are not scalar values, but are instead nested in the data provider. For example, the following data requires a data function to access the fields for a chart's data provider:
          , open:25.19}
    The following example returns a value from this data provider:
         public function myDataFunction(series:Series, item:Object, fieldName:String):Object {
              if(fieldName == 'yValue')
                  return(item.close.High);
              else if(fieldName == "xValue")
                  return(item.month);
              else
                  return null;
    Thanks
    -Sunil

  • Flex Compiler API Issue: Error: unable to open './flex-config.xml'

    1) I make a java struts(or a servlet) to build swf file
    dynamically when receiving the request from client. The struts
    source code please see the attached code. deploy the structs to the
    Tomcat
    2) then copy the <Flex_SDK>/frameworks to the
    <tomcat_home>/webapps/dozhang/WEB-INF
    3) then copy the all the libraries under the
    <Flex_SDK>/lib to the
    <tomcat_home>/webapps/dozhang/WEB-INF/lib
    4) Copy a test a.mxml to c:\
    5) Start up Tomcat , access the structs, I will get the
    Error: unable to open './flex-config.xml' in the tomcat log.
    Can anyone tell me how to specify the location of the
    flex-config.xml ?

    Ok, I solved it by myself
    I need to add the following codes when calling the Compiler
    API
    Configuration conf = application.getDefaultConfiguration();
    conf.setToken("flexlib", "path to the frameworks")
    applicaiton.setConfiguration(conf);
    Then it solved the problem

  • Flex based xml editor

    I have a flex app that uses xml as its configuration, the app is quite complex and the xml quite daunting . User want a GUI to edit the xml.
    I have an admin app in progress to do this, at the moment have a text area that displays the raw xml, this is rather boring as all the text its just black. Anyone know of a component or direction on creating a color coded text editor. If you look at Flex builder and apps like bbedit they color code the text. XML elements are normally blue, attributes are colored brown, text is black etc
    thanks in advance
    flash harry

    So far I got something that is acceptable but still working on it.
    private function colorCodeText() : void {
         var tempHTML:String;
         tempHTML = rawXMLEditor.htmlText;
         var tagRegExp:RegExp;
         //tag all the single xml as blue
         tagRegExp = /(&lt;\w*&gt;)|(&lt;\/\w*&gt;)|(&lt;\w*)|(\/&gt;)|(&gt;)/g;
         tempHTML = tempHTML.replace(tagRegExp,"<FONT COLOR=\"#0000FF\">$&</FONT>");
         //tag attribute values
         tagRegExp = /(\w*)(\s)*=(\s)*(&quot;)((\w| |#|,|&apos;)*)(&quot;)/g;
         tempHTML = tempHTML.replace(tagRegExp,"<FONT COLOR=\"#990000\">$&</FONT>");
         rawXMLEditor.htmlText = tempHTML;
    <RichTextEditor id="rawXMLEditor" width="100%" height="100%" creationComplete="colorCodeText()"  />

  • Load Sales Order from Xml file

    Hi,
    I want to load a sales order from xml file. How can I do so? Where I'll get the xml schema for Sales Order or other documents (delivery,invoice etc)?
    Plz reply with code and xml file.

    When I'm going to load SO from xml file, it's showing an error:
    "The connected value 0 was not found in table Uasge of Nota Fiscal".
    What is this table for? Which attribute is related with this table?
    How can I find out that?

  • I want to load a sales order from xml file. How can I do.

    Hi,
    I want to load a sales order from XML  file. How can I do ? how can i create the sales order?
    what are the necessary  setting for  create the sales orders.
    with Regards,
    Prakesh.

    Three options come to my mind.
    Option 1: Use SAP transaction SXDA_TOOLS (Object Type BUS2032), Program Type (BAPI) and Program (CREATEFROMDAT2).
    Option 2: Use SAP transaction SXDA_TOOLS (Object Type BUS2032), Program Type (DINP) and Program (RVINVB10).
    Option 3: Translate the xml to IDoc so that ORDER04 / ORDER05 Idoc can be used to create Sales order (WEDI transaction).

  • Pls Help me with steps to add data from xml file to SAP B1 through B1iSN.

    Pls Help me with steps to add data from xml file to SAP B1 through B1iSN. I  am getting stuck in xsl transformation. not able to understand where the mapping code needs to be added.
    Pls explain me the steps for adding data from xml to B1 quotation step by step.
    thanks and regards
    Priya

    Hi,
    Have you checked this: https://sap.na.pgiconnect.com/p45508295/?launcher=false&fcsContent=true&pbMode=normal ?
    Thanks,
    Gordon

Maybe you are looking for

  • Why can I only record 2 tracks at a time ?

    Until a couple of months ago I could record 10 tracks at once without a hitch. Then something happened and suddenly I could only record 4 tracks at a time. Now I can only record 2 tracks at once. My logic is completely legal and I'm running a Mac Boo

  • How do I set up a dual display with my macbook and an iMac?

    Hi all, I have a macbook and an aluminum iMac. Is it possible to set up the iMac as an external monitor? If so what cable will I need, because I read that I would need a mini DVI to standard DVI adapter but it does not seem to fit into the ports. Tha

  • Call imge in field report(help please)

    Hi all as I would like to know how to draw a picture to a field in a report in forms would be something like this,''READ_IMAGE_FILE ('j: \ imagenes2001 \' | |: ARTICULOS.REFERENCIA | | '. JPG', 'JPEG', 'ARTICULOS.IMAGEN'); " at apex as serious? Thank

  • SQL 2012 Installation Error

    Good Day I am trying to install SQL 2012. during the installation process it halts and I receive the following message: TITLE: SQL Server Setup failure. SQL Server Setup has encountered the following error: Setup encountered a failure while running j

  • Splitview for tablet (mobile device - ipad)

    Dear all, I'm newbies in oracle apex mobile app. I would like to develop a page like http://scrum-it-demo.ti8m.ch:8080/project/ and i have no idea how to start my development. Can anyone advice on it, how to do or show me an example to do it? My page