Flex UI generation from xml input

hi,
i have a requirement where user will create xml file for the ui screen that he wants,the xml file will contain the information about the components to be placed on the screen for eg. label,combobox,button etc
we want to write a program which will parse this xml file and spit out corresponding flex mxml file so basically i am looking for code generator for mxml file,
could you please suggest an approach to create such a programme

Check out
http://www.magnoliamultimedia.com/flex_examples/Amys_Flex_FAQ.pdf.  I believe it's the first question on the list, but I don't have Reader installed yet on this computer (I just reimaged it).
HTH;
Amy

Similar Messages

  • Crystal Reports generation from XML datasource or file.

    How to generate the crystal report(.rpt file) from XML/XSD file as input..?
    I'm trying out this from 'Crystal Reports in Eclipse'.

    Same problem here using CR4J v.2 sp1<BR/>
    This is the complete StackTrace:<BR/>
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: Error al cargar el conector de base de datos. No se pudo obtener acceso a la clase 'com.crystaldecisions.reports.queryengine.driverImpl.DriverLoader'.---- Error code:-2147467259 Error code name:failed
         at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.if(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
         at com.businessobjects.samples.InformePruebaXML.main(InformePruebaXML.java:64)
    Caused by: com.crystaldecisions.reports.common.QueryEngineException: Error al cargar el conector de base de datos. No se pudo obtener acceso a la clase 'com.crystaldecisions.reports.queryengine.driverImpl.DriverLoader'.
         at com.crystaldecisions.reports.queryengine.Connection.ur(Unknown Source)
         at com.crystaldecisions.reports.queryengine.Connection.uB(Unknown Source)
         at com.crystaldecisions.reports.queryengine.Connection.br(Unknown Source)
         at com.crystaldecisions.reports.queryengine.Connection.bs(Unknown Source)
         at com.crystaldecisions.reports.queryengine.Connection.t1(Unknown Source)
         at com.crystaldecisions.reports.dataengine.dfadapter.DFAdapter.a(Unknown Source)
         at com.crystaldecisions.reports.dataengine.dfadapter.DFAdapter.for(Unknown Source)
         at com.crystaldecisions.reports.reportdefinition.ReportHelper.a(Unknown Source)
         at com.businessobjects.reports.sdk.requesthandler.ReportViewingRequestHandler.long(Unknown Source)
         at com.businessobjects.reports.sdk.requesthandler.ReportViewingRequestHandler.a(Unknown Source)
         at com.businessobjects.reports.sdk.requesthandler.ReportViewingRequestHandler.int(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.do(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.a(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.call(Unknown Source)
         at com.crystaldecisions.reports.common.ThreadGuard.syncExecute(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.for(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.int(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)
         at com.businessobjects.sdk.erom.jrc.a.a(Unknown Source)
         at com.businessobjects.sdk.erom.jrc.a.execute(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.RemoteAgent$a.execute(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.CommunicationChannel.a(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.RemoteAgent.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ds.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
         ... 4 more
    Caused by: java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         ... 32 more
    Caused by: com.businessobjects.reports.jdbinterface.common.DBException: No se pudo cargar el conector de base de datos 'crdb_xml.dll'.
         at com.crystaldecisions.reports.queryengine.driverImpl.DriverLoader.loadDriver(Unknown Source)
         ... 36 more
    Edited by: Asier Camara Martin on Jun 1, 2009 2:16 PM

  • Create View Object programattically from XML input

    Hi,
    I have requirement to create view object from xml at run time in ADF application. is there any way to create view object dynamically in java program from xml?
    My requirement is to call a webservice and generate view object from the response of the web service call.
    Thanks

    I want to create view objects from different web services and the same will be available to the developer at the time of development. I don't want to create web service proxies for each of the web service. this will simplify the developers task to create proxy and data controls. the one thing developer has to do is select the service and base on the service the view objects will be created to develop pages accordingly.

  • Automaticaly building pages from XML input?

    Hello, folks
    First: I am not sure if this is the right forum to ask this question, if so bear with me, please.
    We want to make an iPad application with a very tight deadline. For that we would need to process real fast about 70-90 pieces of news in InDesign with the less human intervention as possible (desired aim:none).
    Each piece of news would have 1-3 pages of content with one or two pictures. We have build a set of templates with master pages for all of them (About 6-7 very simple variants).
    We would like to define a workflow that would satisfy our needs and I believe something as I will describe next would serve them. What I would like from you, please, is telling me if that would be feasible, and if it is a good approach and, if so, what would we need to accomplish it:
    We can place our content formatted as XML into a folder or set of folders.
    This folders would act as hot folders, detected by InDesign (InDesign Server? Enfocus Switch?)
    The software (ID server?) detects the presence of new content and then places the XML into the InDesing template assigned to that folder.
    As we would have used XML-tagged frames in the templates (using InCopy or the content collector), the template would include vertical and horizontal versions (alternative layouts). So, InDesign would be doing automatically what a human would do by hand: Pick template, insert XML, save as ID document.
    The software (enfocus switch? InDesign server?) would then place each appropriated final InDesign document in an oputput folder.
    If we could manage to achieve the assignation of an article AND its upload and inclusion into an Adobe DPS folio in our account that would be SWEEEEEEET... But maybe that would be asking too much.
    The human intervention would be then limited just to sieve the unwanted pieces of news and tweak minor things here and there.
    So the question is: How does it sound? Whacky? Feasible? Way too expensive/complex? Any better/simpler idea?
    Thank you
    Gustavo (Posting from Madrid)

    Hi Gustavo,
    maybe you already got help on this question. Production of iPad publications for several languages and/or formats can be challenging, I totally agree. And I think you have found a good way to solve the workflow. And I think this would be possibly to build aswell. We are you our own software, Ctrl InDesign Application Server (CIDAS) to build workflows around InDesign Server. And we have done some near what you descreib here. So if you need software to watch folders and trigger scripts on one or more instances of InDesign Server, and if you need coding help, contact me and we can give you some pricing.
    Regards
    Tobias

  • MMB Generation from XML

    Ive successfuly developed a PLSQL package to build a dynamic menu in XML which I then convert into a menu MMB file using the ifxml2f90 utility supplied with 9iDS. I can run all this locally on my PC.
    Now that its working I want to deploy it to our DB Unix server. Our DBAs are telling me that the ifxml2f90 utility requires an install of 9iDS on our unix server and that this is outwith our licensing agreement.
    Is there a way that I can do this without a full install of 9iDS on Unix?

    If you can use an XSLT engine in Java,
    we provide that today with the Oracle XML Parser V2.
    We do not presently have a C/C++
    implementation of the XSLT engine.
    Oracle XML Team
    http://technet.oracle.com
    Oracle Technology Network
    null

  • Regarding Excel file generation from xml

    Hi all,
    I want export my JTable information to an excel when a specified action is occured.
    I already completed this task using some third party api.
    Some body told me, there is api in j2sdk itself for export data to excel file. but i didnt find that.
    Could anybody help me out , if sun java api is providing any api for dealing excel files.

    hi
    i've found this:
    http://jexcelapi.sourceforge.net/
    but i had trouble trying to make it works!
    pratically my textpad, we�hen i import the package, tell me tha the package doesn't exists!
    bye! ;)

  • Read data From XML

    hi
    I am new to XML.I want to read data from XML input ....For test purpose i have writte following
    procedure , but when i print output value it shows ...NO ROWS SELECTED
    Actually i want to read [ trd_relate ] value from following XML Input
    '<ROOT><TRD trd_relate = "somevalue" trd_mainid = "152" trd_rate = "0.0000"/></ROOT>'
    plese help me to solve this problem.
    Thanks
    create or replace procedure xml_test1(p_xml clob,rc1 in out mypkg.rc)
    as
    aaa xmltype;
    begin
    aaa :=xmltype(p_xml);
    open rc1 for
    SELECT extractValue(aaa, '/ROOT/TRD/trd_mainid') SOME_NAME
    FROM table(XMLSequence(extract(aaa, '/ROOT/TRD/trd_mainid'))) ResultSet;
    end xml_test1;
    var a refcursor;
    exec xml_test1('<ROOT><TRD trd_relate = "" trd_mainid = "152" trd_rate = "0.0000"/></ROOT>',:a);
    print a;
    **************************************

    Hi,
    try this:
    1 create or replace function test(xml xmltype, qry varchar2) return varchar2 is
    2 xx varchar2(100);
    3 begin
    4 select extractValue(xml, qry)
    5 into xx
    6 from dual;
    7 return xx;
    8* end;
    SQL> /
    Function created.
    SQL> variable out varchar2(100)
    SQL> exec :out := test(xmltype('<ROOT><TRD trd_relate = "somevalue" trd_mainid = "152" trd_rate = "0.0000"/></ROOT>'), '/ROOT/TRD/@trd_relate');
    SQL> print out
    OUT
    somevalue
    Bartek

  • 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

  • Required Attribute style XML input from BPEL

    Hi all,
    We are integrating JDE 811 with BPEL using ORACLE SOA Suite 10133.
    As per the documentation given http://download-west.oracle.com/docs/cd/B31017_01/integrate.1013/b28996/bpel_pm.htm#CDEICHJB, we created the BPEL process to support transacation from BPEL to JDE 811. As given in the document we generated the WSDL in attribute style. For testing the BPEL Process, they have given the XML input in the document in the format of attribute style as given below :
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body xmlns:ns1="http://xmlns.oracle.com/GetYearDescription_SYNC">
    <ns1:jdeRequest type="callmethod">
    <callMethod name="GetYearDescription" runOnError="no">
    <params>
    <param name="mnCalendarYear">58</param>
    </params><onError abort="yes"/>
    </callMethod>
    </ns1:jdeRequest>
    </soap:Body>
    </soap:Envelope>
    and the output we received as
    <GetYearDescription_SYNCProcessResponsehttp://xmlns.oracle.com/GetYearDescription_SYNCPSFTcallmethodDV811*ALL>
    <callMethodGetYearDescriptionnourn:iwaysoftware:jde/services/JDEJAVA_CMFGBASE/B3000260/GetYearDescription>
    <params>
    <parammnCalendarYear>58</param>
    <paramszYearDescription>2058</param>
    </params>
    </callMethod>
    </GetYearDescription_SYNCProcessResponse>
    But, if we use the current schema and give input using normal HTML form on the BPELConsole then the error comes like
    WSIF JCA Execute of operation 'GetYearDescription' failed due to: Error in processing the input document.; nested exception is: javax.resource.ResourceException:
    Error in processing the input document.</summary>
    </part><part name="detail"><detail>javax.resource.ResourceException: Error in processing the input document.
    that is why for outbound integration we need to give raw XML during runtime as input to the bpel process in bpel console manually. and that input looks like
    Also in real time scenario, we are receiving the XML input from a third party software/Adapter that may be a flat file/.xml flat file/DB and we need to pass the similar data in BPEL to the JDE 811. Here we are not able to pass the data to JDE as the adapter accepts the input in attribute style XML.
    If we are trying to enter that input through a flat .xml file then it returns no data, as nothing is passed to that process.
    Any idea how we can process this without giving raw xml input manually during run time, means using normal HTML Form.
    if it is not possible then please tell me what will be the required XML that we have to pass as input in that flat file.
    Thanks,
    Anindya

    Hi All,
    SOAP based input is required for any BPEL process for testing in BPEL Console.
    We have created a BPEL process which is successfully receiving data from 3rd party and it is not in a SOAP format.
    That is why we are entering input manually (I have already described input in above post) while testing that BPEL process. and we can receive proper output (i have already specified what i am getting as output in my above post.)
    But in real time scenario we cant give input manually.
    how can we achieve SOAP based invocation during runtime??
    I hope my question is clear to all.
    please suggest me if anybody have any idea about this.
    Regards
    Anindya

  • 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.

  • 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/

  • Generation of xml file from java code

    hi,
    I want to manipulate data in a xml file with java code.I have read data from xml file and also changed it. But i am unable to covert it again in xml file from java code. Can you please tell me how i can do this?

    Let me know which parser are you using currently for reading xml files so that i assist you. For now, you can refer to STAX Parser API under this link
    http://java.sun.com/webservices/docs/1.6/tutorial/doc/SJSXP3.html

  • SQL insert scripts generation from repository data xml file

    Hi All,
    I want to generate sql insert scripts from repository data xml file which contain <add-item>elements.
    Example: data xml file is contains
    <add-item item-descriptor="user" id="741">
    <set-property name="gender"><![CDATA[female]]></set-property>
    <set-property name="emailStatus"><![CDATA[__NULL__]]></set-property>
    <set-property name="receiveEmail"><![CDATA[__NULL__]]></set-property>
    <set-property name="email"><![CDATA[[email protected]]]></set-property>
    <set-property name="password"><![CDATA[a694cb1d6d011eddc444acb77338c1df6a22bac5de26330e2fe1d20f15f97ed6]]></set-property>
    <!-- rdonly derived <set-property name="abandonedOrderCount"><![CDATA[0]]></set-property> -->
    <set-property name="locale"><![CDATA[de_DE]]></set-property>
    <set-property name="userType"><![CDATA[1]]></set-property>
    <set-property name="autoLogin"><![CDATA[__NULL__]]></set-property>
    <set-property name="lastName"><![CDATA[Springford]]></set-property>
    <set-property name="member"><![CDATA[true]]></set-property>
    <set-property name="dateOfBirth"><![CDATA[7/18/1951 00:00:00]]></set-property>
    <!-- rdonly derived <set-property name="age"><![CDATA[61]]></set-property> -->
    <set-property name="registrationDate"><![CDATA[5/16/1996 00:00:00]]></set-property>
    <set-property name="login"><![CDATA[sally]]></set-property>
    <set-property name="lastActivity"><![CDATA[6/9/1999 00:00:00]]></set-property>
    <set-property name="homeAddress"><![CDATA[741]]></set-property>
    <set-property name="passwordSalt"><![CDATA[sally]]></set-property>
    <set-property name="generatedPassword"><![CDATA[__NULL__]]></set-property>
    <set-property name="firstName"><![CDATA[Sally]]></set-property>
    <set-property name="lastPasswordUpdate"><![CDATA[__NULL__]]></set-property>
    </add-item>
    Thanks
    Siva

    HI Rohan,
    Thanks for reply..
    I have checked the startSQLRepository script by using this we can export or import repository data from xml to repository.But in startSQLRepository there is no attribute to generate sql
    insert scripts from data xmls but there is a option to get the sql scripts(-ouputSQL).

  • How to combine data from different input forms outside a nested iView

    Hi,
    i try to combine data from different input forms in a single one.
    Because of space reasons in Flex compiling i already use nested iViews. Within these nested iViews its possible to use the 'combine' function to do this.
    But in the main iView I cant compose these function with other elements. I need to do this because of using these model in Guided Procedures with output parameters. These parameters I only get with a 'endPoint'. Unfortunatly its not possible to combine data from different input forms into the 'endPoint'.
    Is there any solution?
    Thanx
    Mathias

    Hi Scott,
    i tried this already and i also tried to map all parameters in the endpoint by drawing lines from the other forms and assign the 'empty parameters' by a formula.
    And when i create a collable object in GP and assign the VC iView, only the parameters of the parent-form (the form who trigger the event) are shown as output-parameters.
    Maybe any other ideas? I cant believe that such a simple thing is not possible?!?!
    In my opinion, thats a bug, that I'am not able to use the combine-operator in the main VC-iView. Whats your mind?
    greets
    mathias

Maybe you are looking for