XML and DataGrid

I am struggling with XML in a DataGrid. You can someone tell me how to fill the dataField for firstName, lastName, and username, given the XML code below? Thanks for your help.

<? XML version = "1.0"? >
" < = xmlns:mx mx:Application ' http://www.Adobe.com/2006/MXML ">

< mx:XMLList id = "userData" >
< user >
< user username = "fxxxxx" firstName = 'Auntie' LastName As String 'Hope' = >
< publication pubId = '9' pubTitle = 'Daily News' >
< political policyId = '9' policyDescription = "Questions to deliver" policyname = "DeliverIssues" / >
< / publication >
< / user >
< user userId = "fyyyyy" = "Lele" firstName LastName As String = "Herr" >
< publication pubId = '9' pubTitle = 'Daily News' >
< policy policyId = '1' policyDescription = policyname 'Manage groups' = "ManageGroups" / >
< / publication >
< / user >
< / users >
< / mx:XMLList >

< mx:Panel title = "DataGrid Control Example" height = "100%" width = "100%".
paddingTop = "10" paddingLeft = "10" paddingRight = "10" >

< mx:DataGrid id = "dg" width = "100%" height = "100%" number of rows = "5" dataProvider = "{userData}" >
< mx:columns >
< mx:DataGridColumn dataField = "firstName" headerText = "FirstName" / >
< mx:DataGridColumn dataField = "lastName" headerText = "lastName" / >
< mx:DataGridColumn dataField = "userId" headerText = "Email" / >
< / mx:columns >
< / mx:DataGrid >

< mx:Form width = '100 percent"height ="100% ">
< mx:FormItem label = "name" >
< mx:Label text="{dg.selectedItem.firstName}"/ >
< / mx:FormItem >
< mx:FormItem label = "name" >
< mx:Label text="{dg.selectedItem.lastName}"/ >
< / mx:FormItem >
< mx:FormItem label = "userId" >
< mx:Label text="{dg.selectedItem.userId}"/ >
< / mx:FormItem >
< / mx:Form >
< / mx:Panel >
< / mx:Application >

Just in case where you have not yet:


http://www.Adobe.com/2006/mxml">
 
   
     
       
     

   

   
     
       
     

   

 

 
paddingTop = "10" paddingLeft = "10" paddingRight = "10" >
   
     
       
       
       
     

   

   
     
        {dg.selectedItem.@firstName}"/ >}
     

     
        {dg.selectedItem.@lastName}"/ >}
     

     

        {dg.selectedItem.@userId}"/ >}
     
       
         
 

Tags: Flex

Similar Questions

  • Need help on xml and datagrid

    Hi all

    I'm fighting with xml data as my dataProvider for my datagrid. I hope someone can look at this and see what the devil I'm doing wroing. No matter what I try my datagrid columns are empty.

    I tried several variations, changing the dataprovider to myApprovalsXML... viewentries... myApprovalsXML or entrydata etc. as well as the evolution of the datafields. I get lines but empty column values.

    Thanks in advance for any help!

    Sujit thanks

    Which worked great!

  • Update charts and datagrids based on selection

    I have trying to find documentation and examples explaining how I can choose something in a combobox control and do fill a series of datagrids and charts.

    GUIDELINES:

    Has. using a table XML of all municipalities in our region populate a combobox.  Then have the user select the municipality they are interested.

    B. take a picture of census which is in XML format and using HTTPServices read it in Flex and then based on what the user selected municipality fill a datagrid and a variety of graphs with data pertaining to the muni.

    I know that it is done because I see it all the time and took a class last week where it has been shown.  Unfortunately, it was the last day of the class and time was running out, so we received a brief overview of this.

    I would be very appriciate anyone who can tell me the samples and documentation either online or in books.  And I should mention that the terminology is always a problem.  I'm trying to do a custom event or what?

    The code below all the works.  What I want to say that I am filling successfully control combobox and datagrid with the appropriate data.  I'm not able to get the two communicate with each other.  In other words the datagrid is showing the whole table and ignoring the combobox.

    <? XML version = "1.0" encoding = "utf-8"? >
    "" < mx:Application xmlns:mx = "http://www.adobe.com/2006/mxml"
    Layout = "vertical".
    creationComplete = "initApp ()" >

    < mx:Script >
    <! [CDATA]
    Mx.rpc.events import. *;
    Mx.controls import. *;
    Mx.charts import. *;
    Import mx.collections. *;

    [Bindable]
    private var acMuni:ArrayCollection = new ArrayCollection collection;
    [Bindable]
    private var acCity:ArrayCollection = new ArrayCollection collection;

    private function initApp (): void {}
    muniHS.send ();
    cityHS.send ();
    }

    private void eHandler(e:ResultEvent):void {}
    acMuni = e.result.GetAllMUNIS.MUNIS;
    }

    private void fHandler(e:FaultEvent):void {}
    var faultInfo:String = "error code:"+ e.fault.faultCode + "\n\n"; "
    "faultInfo +=" error string: "+ e.fault.faultString+"\n\n;
    mx.controls.Alert.show (faultInfo, "lack of information");

    var eventInfo:String = "event target:"+ e.target+"\n\n"; "
    ' type of event eventInfo += ":"+ e.type+"\n\n;
    mx.controls.Alert.show (eventInfo, "Event information");
    }

    private void eCityHandler(e:ResultEvent):void {}
    this.acCity = e.result.GetCITIES.CITIES;
    }
    []] >
    < / mx:Script >

    < mx:HTTPService id = "muniHS".
    URL = "" Data / GetAllMunis.Xml ""
    result = "eHandler (Event)" "
    Fault = "fHandler (Event)" "
    showBusyCursor = "true" / >

    < mx:HTTPService id = "cityHS".
    URL = "" Data / CityNames.Xml ""
    resultFormat ="object"
    result = "eCityHandler (Event)" "
    Fault = "fHandler (Event)" "
    showBusyCursor = "true" / >

    < mx:Panel width = "100%" height = "50%".
    paddingBottom = "10".
    paddingLeft = "10".
    paddingRight = "10".
    paddingTop = "10" title = "DataGrid" >

    < mx:ComboBox id = "muniCB".
    dataProvider = "{acCity}".
    message = "SΘlectionner town".
    labelField = 'city' / >

    < mx:DataGrid id = "dg".
    Width = '100% '.
    Height = "100%".
    dataProvider = "{acMuni}" >
    < mx:columns >
    < mx:DataGridColumn headerText = "municipality" dataField = "City" / >
    < mx:DataGridColumn dataField = "year" / >
    < mx:DataGridColumn headerText = "month" dataField = "month_no" / >
    < mx:DataGridColumn headerText = "labor force" dataField = "laborforce" / >
    < mx:DataGridColumn dataField = "employee" / >
    < mx:DataGridColumn dataField = "unemployed" / >
    < mx:DataGridColumn headerText = "unemployment rate" dataField = "unemp_rate" / >
    < mx:DataGridColumn headerText = "tract" dataField = "geogkey" / >
    < mx:DataGridColumn headerText = "tract extended" dataField = "geogkeyx" / >
    < / mx:columns >
    < / mx:DataGrid >
    < / mx:Panel >
    < / mx:Application >

    Thanks for any help you can provide

    Richard Krell

    If the position meets your querstion or help, please mark it as such.

    First, use XMLListCollection to the data for the ConboBox and the xlcMuni result with Manager (instead of acMuni).

    Here is a simplified version of your app with the answer. It uses e4x for the filtering syntax.

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

    -CityNames.xml-



      Chicago
      New York City
      Boston

    -GetAllMunis.xml-



     
        Chicago
        1866
     

     
        New York City
        1872
     

     
        Boston
        1756
     

    -MainApp.mxml-


    http://www.Adobe.com/2006/mxml '.
    creationComplete = "muniHS.send ();cityHS.send();" » >
     
        Import mx.events.ListEvent;
    Mx.rpc.events import. *;
    Mx.controls import. *;
    Mx.charts import. *;
    Import mx.collections. *;
     
    [Bindable] private var xlcMuni:XMLListCollection = new XMLListCollection;
    [Bindable] private var xlcCity:XMLListCollection = new XMLListCollection;
    [Bindable] private var xlcDG:XMLListCollection = new XMLListCollection;
     
    private void eHandler(e:ResultEvent):void {}
    this.xlcMuni = new XMLListCollection (... with e.result);
    }
     
    private void eCityHandler(e:ResultEvent):void {}
    this.xlcCity = new XMLListCollection (e.result.city);
    }
         
    private void populateDG(evt:ListEvent):void {}
    var temp: XMLList = xlcMuni.copy ();
    xlcDG = new XMLListCollection (temp. () city is ComboBox (evt.currentTarget) .selectedItem));
    }
    ]]>
     

     
    useProxy = URL "" Data / GetAllMunis.xml ' = 'false' "
    result = "eHandler (Event)" / > "
     
    resultFormat = "e4x" result = "eCityHandler (event)" / > "
     

       
    prompt = labelField 'Select a common' = 'city '.
    change = "populateDG (Event)" / > "
       
    dataProvider = "{xlcDG}" >
         
           
           
         

       
     

  • Windows Vista is very much reboot. No restore points, rename pending.xml and registry change made no difference.

    Hi, I have a laptop from a friend at work as he complained that she simply close and restart constantly on him.

    I took it home, and strangely had it turned on for a while before he was the first reboot.

    It restarts, and then he would say "fill the stadium"3 of 3"0% of some Windows Update (I don't know that we would be).»

    Then after having like 20 seconds, the login screen would come.

    I connect and wait for it to load everything in startup.

    As soon as everything in startup was responsible, it would then proceed to shut down the PC and restarts.

    Then he goes back to the "end stage"3 of 3"0%.» This happens infinitely.

    I am able to do in safe mode without this restart.

    I tried to rename pending.xml and editing the registry, still no go. Now, I see same of ' fill in step "3 of 3" to 0% more... it's just continually restart. "

    I am trying to go about it without having to reinstall the entire operating system (it would be quite difficult because manufacturers no longer send disks with their products).

    Any ideas would be helpful! Thank you!

    Mike

    Given that Windows Update has nothing to do with the problem now, please start a new thread in this forum for assistance: http://social.answers.microsoft.com/Forums/en-US/vistarepair/threads

    Tip: Post a link to this thread in your first post in the new forum of reference, please.

    Looks like you may have a hardware problem on your hands. Good luck! ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

  • Tried to reinstall XP on my laptop after installation of windows 7 and xp disks had missing files: cmnicfg.xml, ipcfgxml, osinfo.xml, potscfg.xml and pppcfg.xml. What should I do now?

    I installed Windows 7 on my laptop and it terribly slow. I used the XP disc and tried to reinstall it. Came in halfway through the messages that he was missing the following files: cmnicfg.xm, ipcfg.xml, osinfo.xml, potscfg.xml and pppcfg.xml. Now, it does nothing. Help!

    Hi SharonPittman,

    (a) you suggest to clean the Windows XP installation CD with a piece of cloth & then try to install windows XP.

    For more information, see these links.

    How to install or upgrade to Windows XP

    Reference: Install, reinstall, or uninstall Windows

    (b) if the problem persists, there is possibility that the Windows XP CD is damaged.

    I recommend buying a Microsoft Store installation disc.

    You can contact Microsoft Store at the link given below.

    http://www.microsoftstore.com/store/msstore/cat/CategoryID.37286600

    Hope the helps of information.
    Please post back and we do know.

  • XML and the data recovery

    Hey,.

    Not sure if this is the right section on the forum:

    I was wondering if there was a way to retrieve data from an XML page.

    For example, I want to create a BBApp that can request a XML page and once it has loaded to extract all of the appropriate fields and load them into a graphical user interface - without actually loading the page, basically I just want to create demand and get the XML Source Code and mine through this XML Source data.

    Thanks in advance,

    Jovinus Sveinbjornsson

    Hi Eva,

    This can easily be done in a BlackBerry Widget.  You will use the built in support of AJAX and the XMLHttpRequest object.

    You can retrieve the contents of the XML file via an AJAX call.  When it returns can then access the property of '.responseXML' which has already crawled your XML DOM document.  Just to make sure to whitelist the domain in the config.xml file to allow access to that external resource.  There are a bunch of samples and videos that explain this concept.

    You would then just browse XML and create your HTML code to reflect your data and insert it into the page.  A good tutorial on AJAX can be found here:

    http://www.w3schools.com/AJAX/default.asp

    Now for some advice

    If you are recovering data and then display as Web content within a widget, I would really recommend format of that content on the server in its HTML markup before sending it to your Widget in the AJAX request.  The reason why I recommend this is that there is a lot of manipulation of the DOM creating HTML nodes if you look at the raw XML data that is returned.

    If you flip it over already in HTML server-side, you can simply replace an item on your web page using innerHTML.  On a device mobile, if you can offload the work to a server it certainly helps performance.

  • Difference between prefer application-packages in weblogic.xml and weblogic application. XML?

    Hello!

    When you deploy a WAR for WebLogic 10.3.5, what is the difference between the prefer-application-package element in the weblogic.xml and weblogic application files. XML?

    In my WARs WEB-INF/lib / I have a JAR that contains classes that are already provided by the container (but older versions).

    If I do not prefer-application-packages use my application gets then the classes provided by the container.

    If I use prefer-application-packages in weblogic.xml can I get classes in WAR/WEB-INF/lib, which is expected.

    But if I use prefer application-packages in weblogic - application.xml, then I get the versions of container. Why?

    Is there a difference between these two options?

    The exact data that I use are:

    (foo.bar. * is the name of the conflicting package;) Add or remove the linex tagged XXXX)

    WEB-INF/weblogic.xml:

    <?xml version="1.0" encoding="UTF-8"?>
    <wls:weblogic-web-app
        xmlns:wls="http://xmlns.oracle.com/weblogic/weblogic-web-app"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd http://xmlns.oracle.com/weblogic/weblogic-web-app http://xmlns.oracle.com/weblogic/weblogic-web-app/1.2/weblogic-web-app.xsd">
        <wls:container-descriptor>
            <wls:show-archived-real-path-enabled>true</wls:show-archived-real-path-enabled>
            <wls:prefer-application-packages> <!-- XXXX -->
                <wls:package-name>foo.bar.*</wls:package-name> <!-- XXXX -->
            </wls:prefer-application-packages> <!-- XXXX -->
            <wls:prefer-application-resources>
                <wls:resource-name>META-INF/services/some....</wls:resource-name>
                <wls:resource-name>META-INF/services/unrelated...</wls:resource-name>
                <wls:resource-name>META-INF/services/stuff...</wls:resource-name>
            </wls:prefer-application-resources>
        </wls:container-descriptor>
        <wls:jsp-descriptor>
            <wls:page-check-seconds>-1</wls:page-check-seconds>
            <wls:precompile>true</wls:precompile>
            <wls:precompile-continue>true</wls:precompile-continue>
            <wls:keepgenerated>true</wls:keepgenerated>
        </wls:jsp-descriptor>
        <wls:session-descriptor>
            <wls:persistent-store-type>replicated_if_clustered</wls:persistent-store-type>
        </wls:session-descriptor>
    </wls:weblogic-web-app>
    

    META-INF/weblogic - application.xml:

    <?xml version="1.0" encoding="UTF-8"?>
    <weblogic-application
        xmlns="http://xmlns.oracle.com/weblogic/weblogic-application"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/javaee_5.xsd http://xmlns.oracle.com/weblogic/weblogic-application http://xmlns.oracle.com/weblogic/weblogic-application/1.2/weblogic-application.xsd">
        <application-param>
            <param-name>webapp.encoding.default</param-name>
            <param-value>UTF-8</param-value>
        </application-param>
    
        <xml>
            <parser-factory>
                <saxparser-factory>
                    org.apache.xerces.jaxp.SAXParserFactoryImpl
                </saxparser-factory>
                <document-builder-factory>
                    org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
                </document-builder-factory>
                <transformer-factory>
                    org.apache.xalan.processor.TransformerFactoryImpl
                </transformer-factory>
            </parser-factory>
        </xml>
    
        <prefer-application-packages>
            <package-name>foo.bar.*</package-name> <!-- XXXX -->
            <package-name>javax.jws.*</package-name>
            <package-name>javax.xml.ws.*</package-name>
            <package-name>org.apache.cxf.*</package-name>
            <package-name>antlr.*</package-name>
            <package-name>org.xmlsoap.schemas.wsdl.*</package-name>
        </prefer-application-packages>
    </weblogic-application>
    

    WebLogic - application.xml has no meaning in wars, it is only used in the ears.

  • XML and SQL output

    Hi all

    Please find test data and results as XML and SQL output.

    Version : Oracle Database 11 g Enterprise Edition Release 11.1.0.7.0 - 64 bit Production

    create table emp_xml (empno number, emp_name varchar2 (100), by e-mail to varchar2 (100));

    insert into emp_xml values (100, 'DAVID',' [email protected]');

    insert into emp_xml values (101, 'ROBERT',' [email protected]');

    insert into emp_xml values (102, 'DANIEL',' [email protected]');

    CREATE table emp_dept_xml (empno number, dept_list varchar2 (4000));

    insert into emp_dept_xml values (' 100,'10, 20, 30, ");

    insert into emp_dept_xml values (' 101,'40, 20, 10, 30, 50, ");

    insert into emp_dept_xml values (102, ' 10'),

    Expected in SQL output

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

    EMPNO EMP_NAME EMAIL DEPTNO

    DAVID 100 [email protected] 10

    DAVID 100 [email protected] 20

    DAVID 100 [email protected] 30

    ROBERT 101 [email protected] 10

    ROBERT 101 [email protected] 20

    ROBERT 101 [email protected] 30

    ROBERT 101 [email protected] 40

    ROBERT 101 [email protected] 50

    DANIEL 102 [email protected] 10

    Results in XML

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

    < USERS_DETAILS >

    < USER >

    < EMPNO > 100 < / EMPNO >

    DAVID < NAME > < / NAME >

    < EMAIL > [email protected] < / EMAIL >

    < ASSIGNED_DEPT >

    < DEPT > 10 < / DEPT >

    < DEPT > 20 < / DEPT >

    < DEPT > 30 < / DEPT >

    < / ASSIGNED_DEPT >

    < / USER >

    < USER >

    101/EMPNO < EMPNO > >

    ROBERT < NAME > < / NAME >

    < EMAIL > [email protected] < / EMAIL >

    < ASSIGNED_DEPT >

    < DEPT > 10 < / DEPT >

    < DEPT > 20 < / DEPT >

    < DEPT > 30 < / DEPT >

    < DEPT > 40 < / DEPT >

    < DEPT > 50 < / DEPT >

    < / ASSIGNED_DEPT >

    < / USER >

    < USER >

    < > 102 EMPNO < / EMPNO >

    DANIEL < NAME > < / NAME >

    < EMAIL > [email protected] < / EMAIL >

    < ASSIGNED_DEPT >

    < DEPT > 10 < / DEPT >

    < / ASSIGNED_DEPT >

    < / USER >

    < / USERS_DETAILS >

    Thank you

    Rambeau

    SQL>   select e.empno
      2         , e.emp_name
      3         , e.email
      4         , regexp_substr(d.dept_list, '[^,]+', 1, level) deptno
      5      from emp_xml e
      6      join emp_dept_xml d
      7        on e.empno = d.empno
      8   connect
      9        by level <= length(d.dept_list) - length(replace(dept_list, ','))
     10       and prior e.empno = e.empno
     11       and prior dbms_random.value() is not null;
    
         EMPNO EMP_NAME             EMAIL                DEPTNO
    ---------- -------------------- -------------------- --------------------
           100 DAVID                [email protected]      10
           100 DAVID                [email protected]      20
           100 DAVID                [email protected]      30
           101 ROBERT               [email protected]     40
           101 ROBERT               [email protected]     20
           101 ROBERT               [email protected]     10
           101 ROBERT               [email protected]     30
           101 ROBERT               [email protected]     50
           102 DANIEL               [email protected]     10
    
    9 rows selected.
    
    SQL> select xmlelement
      2         (
      3              "USERS_DETAILS"
      4            , xmlagg(xmlelement
      5              (
      6                  "USER"
      7                , xmlelement("EMPNO", empno)
      8                , xmlelement("NAME", emp_name)
      9                , xmlelement("ASSIGNED_DEPT", xmlagg(xmlelement("DEPT", deptno)))
     10              ))
     11         ).extract('*') xml_output
     12    from (
     13            select e.empno
     14                 , e.emp_name
     15                 , e.email
     16                 , regexp_substr(d.dept_list, '[^,]+', 1, level) deptno
     17              from emp_xml e
     18              join emp_dept_xml d
     19                on e.empno = d.empno
     20           connect
     21                by level <= length(d.dept_list) - length(replace(dept_list, ','))
     22               and prior e.empno = e.empno
     23               and prior dbms_random.value() is not null
     24         )
     25   group
     26      by empno
     27       , emp_name;
    
    XML_OUTPUT
    --------------------------------------------------------------------------------
    
      
        100
        DAVID
        
          10
          20
          30
        
      
      
        101
        ROBERT
        
          40
          50
          30
          20
          10
        
      
      
        102
        DANIEL
        
          10
        
      
    
    
    SQL>
    
  • Rights allowed the collection of XML and PDF of

    Hello

    Requirements is something in this line... Convert 3 page word doc - with the name field, date field and a few boxes to PDF. It would send then send back by e-mail, for further processing. Interested in the actual data rather than the PDF form.

    I used Adobe LiveCycle designer to create rights permit PDF with fields name, drop-down, radio buttons and submit by email button. Only reason that I turned him on rights is so that the user can save the partially completed document locally and later fill it out completely and send through the desktop e-mail client. End users would have the last drive in your computer and the outlook e-mail client.

    I guess, when the user selects the button send, an e-mail message starts with setting XML extension and can send it. On my end, I have user XML parser and read the data. I don't have the real PDF.

    Would be, collection of data, in this way, always drop less 500 use limit under license on PDF with Reader Extensions enabled.

    There is no comment or digital signatures involved or collected. Only the data in the form of XML and not the real PDF.

    Thanks in advance.

    If you (the licensee) are not extract data to an instance of an extended document (PDF) that contains the data of the beneficiary, I don't see how you can violate the agreement.

  • Compare 2 different versions of xml and highlite the differences

    Hello

    Currently we have xml and which is displayed on the web page using css style sheets.
    The same xml that we remain majority but with small changes (different say version created after a week).

    We want to be able to follow the differences with the previous version and highlight the differences, when to display in the web page.
    Please let know us if this is possible and how.

    Thank you.

    What is your version of the database? (SELECT * FROM version$ v)

    On 11.2.0.3, update of XQuery can be useful.

    On lower versions, I'd do it like this:

    SQL> WITH sample_data AS (
      2   SELECT xmltype(
      3  '
      4    
      5      7934
      6      MILLER
      7      CLERK
      8      7782
      9      1982-01-23T00:00:00
     10      1300
     11      
     12      10
     13    
     14  ') doc1,
     15  xmltype('
     16    
     17      7934
     18      MILLER
     19      CLERK
     20      7782
     21      xyz
     22      1982-01-23T00:00:00
     23      1300
     24      
     25      10
     26    
     27  ') doc2
     28   FROM dual
     29  )
     30  SELECT XMLSerialize(document
     31           XMLPatch(
     32             doc1
     33           , XMLQuery(
     34              'declare namespace xd = "http://xmlns.oracle.com/xdb/xdiff.xsd"; (: :)
     35               declare function local:copy($itemset as item()*) as item()* {
     36                 for $i in $itemset
     37                  return
     38                   typeswitch($i)
     39                     case element(xd:content) return element {node-name($i)} { {local:copy($i/(node()|@*))} }
     40                     case element() return element {node-name($i)} { local:copy($i/(node()|@*)) }
     41                     default return $i
     42               }; local:copy(*)'
     43               passing XMLDiff(doc1, doc2)
     44               returning content
     45             )
     46           )
     47           as clob indent
     48         )
     49  FROM sample_data
     50  ;
    
    XMLSERIALIZE(DOCUMENTXMLPATCH(
    --------------------------------------------------------------------------------
    
      
        7934
        MILLER
        CLERK
        7782
        
          xyz
        
        1982-01-23T00:00:00
        1300
        
        10
      
    
     
    

    Basically, take us the XMLDiff output and modify it slightly to insert the tag . Then, simply call the XMLPatch function with this newly formed Xdiff document.

    Note that I would normally use XSLT (identity model) to modify Xdiff output but there seems to be a bug when dealing with node Processing, where my using the equivalent of XQuery.

    Published by: odie_63 on September 13. 2012 16:14

  • example VSO.xml and solarSystem

    I'm kind of cunfused.

    In the solarSystem example I see that it is an action called getAllPlanets() VCO.

    This action configured in the vso.xml and it is part of the .dar file or it is part of the VCO displays?

    My main goal at the end must be able to deploy/install my plugin and action to VCO in the simplest possible. (For more used by clients)

    Help will be appreciated.

    Well, I guess I got what you ask.

    The getAllPlanets action was created when the plug-in has been deployed and was imported in the form of action within a package file. Now this package file, com.vmware.samples.solarsystem.package, contains this action item, which is then shipped as a package file in the plugin solarsystem .dar file. as a result, this action gets deployed automatically when you deploy your plugin solarsystem. It is not encoded anywhere in the code of the plugin, but the action is imported into the package file.

    I hope that answers your query.

  • Need help to read a _fmb. XML and write the properties of the element to a table

    We want to retrieve all the properties of elements of forms at a table.
    Table has this format:
    Describing oracle_forms_item_list....
    NAME                            Null?     Type
    ------------------------------- --------- -----
    FORM_NAME                       NOT NULL  VARCHAR2(100)
    ITEM_NAME                       NOT NULL  VARCHAR2(50)
    ITEM_TYPE                       NOT NULL  VARCHAR2(50)
    PROPERTY                        NOT NULL  VARCHAR2(50)
    PROPERTY_VALUE                            VARCHAR2(500)
    We want to get all D_e_p_a_r_t_m_e_n_t_s.fmb items (blocks, paintings, text etc.). So first convert us it to XML and we get the D_e_p_a_r_t_m_e_n_t_s_fmb.xml file which is shown below.
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <Module version="101020002" xmlns="http://xmlns.oracle.com/Forms">
       <FormModule Name="D_E_P_A_R_T_M_E_N_T_S" ConsoleWindow="WINDOW1" DirtyInfo="true" MenuModule="DEFAULT&amp;SMARTBAR" Title="MODULE5">
          <Coordinate CharacterCellWidth="7" CoordinateSystem="Real" CharacterCellHeight="14" RealUnit="Point" DefaultFontScaling="true"/>
          <Alert Name="ALERT6" DirtyInfo="true" DefaultAlertButton="Button 2" AlertMessage="Do you want to save ???" Button2Label="No" AlertStyle="Caution" Title="Saving........................... &lt;>" Button1Label="Yes"/>
          <Block Name="DEPT" ScrollbarTabPageName="" DirtyInfo="true" QueryDataSourceName="dept" ScrollbarWidth="14" ScrollbarYPosition="39" ShowScrollbar="true" ScrollbarCanvasName="CANVAS4" ScrollbarLength="70" RecordsDisplayCount="5" ScrollbarXPosition="237">
             <Item Name="DEPTNO" DirtyInfo="true" Height="14" PromptAlign="Center" XPosition="14" Width="27" ColumnName="DEPTNO" DataType="Number" YPosition="39" PromptDisplayStyle="First Record" ItemsDisplay="0" MaximumLength="3" PromptAttachmentEdge="Top" ItemType="Text Item" TabPageName="" CanvasName="CANVAS4" Prompt="Deptno"/>
             <Item Name="DNAME" DirtyInfo="true" Height="14" PromptAlign="Center" XPosition="41" Width="101" ColumnName="DNAME" YPosition="39" Tooltip="Dep name goooes here." DataLengthSemantics="BYTE" Hint="Entter the department name" PromptDisplayStyle="First Record" ItemsDisplay="0" MaximumLength="14" PromptAttachmentEdge="Top" ItemType="Text Item" TabPageName="" CanvasName="CANVAS4" Prompt="Dname"/>
             <Item Name="LOC" DirtyInfo="true" Height="14" PromptAlign="Center" XPosition="142" Width="95" ColumnName="LOC" YPosition="39" DataLengthSemantics="BYTE" PromptDisplayStyle="First Record" ItemsDisplay="0" MaximumLength="13" PromptAttachmentEdge="Top" ItemType="Text Item" TabPageName="" CanvasName="CANVAS4" Prompt="Loc"/>
             <DataSourceColumn Type="Query" DSCType="NUMBER" DSCNochildren="false" DSCLength="0" DSCPrecision="2" DSCName="DEPTNO" DSCScale="0" DSCMandatory="false"/>
             <DataSourceColumn Type="Query" DSCType="VARCHAR2" DSCNochildren="false" DSCLength="14" DSCPrecision="0" DSCName="DNAME" DSCScale="0" DSCMandatory="false"/>
             <DataSourceColumn Type="Query" DSCType="VARCHAR2" DSCNochildren="false" DSCLength="13" DSCPrecision="0" DSCName="LOC" DSCScale="0" DSCMandatory="false"/>
          </Block>
          <Canvas Name="CANVAS4" ViewportHeight="324" DirtyInfo="true" Height="324" WindowName="WINDOW1" Width="540" ViewportWidth="540" CanvasType="Content">
             <Graphics Name="FRAME5" GraphicsText="" FrameTitleOffset="14" Height="108" VerticalMargin="14" GraphicsFontColor="" GraphicsFontSpacing="Ultradense" Width="251" GraphicsFontSize="0" GraphicsFontWeight="Ultralight" StartPromptOffset="7" FillPattern="none" GraphicsFontColorCode="0" HorizontalObjectOffset="0" EdgeBackColor="white" FrameTitle="Departments" ShowScrollbar="true" RecordsDisplayCount="5" LayoutStyle="Tabular" DirtyInfo="true" XPosition="7" Bevel="Inset" GraphicsFontStyle="0" ScrollbarWidth="14" HorizontalMargin="7" FrameTitleSpacing="7" EdgePattern="solid" YPosition="15" GraphicsType="Frame" GraphicsFontName="" LayoutDataBlockName="DEPT"/>
          </Canvas>
          <ProgramUnit Name="ASK_FROM_USER" ProgramUnitType="Function" ProgramUnitText="FUNCTION ask_from_user RETURN BOOLEAN IS&amp;#10; v_button number;&amp;#10;BEGIN&amp;#10;  v_button := SHOW_ALERT('ALERT6');&amp;#10;  &amp;#10;  if v_button = ALERT_BUTTON2 THEN&amp;#10;       RETURN false;&amp;#10;  ELSE&amp;#10;       RETURN TRUE;&amp;#10;  END IF;&amp;#10;END;"/>
          <Trigger Name="POST-DATABASE-COMMIT" TriggerText="/*&amp;#10;   Created by ABC de Silva&amp;#10;   &lt;&lt;&lt;&lt;&lt;..>> &amp;#10;   testing for special characters &lt; rock &amp; roll &amp;#10;*/&amp;#10;BEGIN&amp;#10;     MESSAGE('*** Records successfully &lt;&lt;&lt;> commmited to the DB. ***');&amp;#10;     PAUSE;&amp;#10;END;" DirtyInfo="true"/>
          <Window Name="WINDOW1" Height="324" Width="540"/>
       </FormModule>
    </Module>
    Now, we want to read this file with UTL_FILE (in a PL/SQL stored procedure) and fill in the chart above like this:
    FORM_NAME                  ITEM_NAME   ITEM_TYPE  PROPERTY         PROPERTY_VALUE                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      
    ----------------------------------------------------------------------------------------------------------
    D_e_p_a_r_t_m_e_n_t_s.fmb  ALERT6      Alert      Title            Saving........................... <>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 
    D_e_p_a_r_t_m_e_n_t_s.fmb  DEPTNO      Text Item  Prompt           Dname                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
    D_e_p_a_r_t_m_e_n_t_s.fmb  DEPTNO      Text Item  MaximumLength    3                                                                                                                                                                                                                                                                                                                                     
    It's, I went through Google, nobody can give a complete solution. All are partial solutions.

    Any help will greatly be apprectiated.

    Published by: Channa on 30 Sep 2011 06:31

    Here goes:

    select x1.item_name
         , x1.item_type
         , x2.property
         -- to convert back entities such as 
     to their character values :
         , utl_i18n.unescape_reference(x2.property_value) as property_value
         -- parent information :
         , x1.parent_item_name
         , x1.parent_item_type
    from xmltable(
           xmlnamespaces(default 'http://xmlns.oracle.com/Forms', 'http://xmlns.oracle.com/Forms' as "def")
         , 'for $i in /Module/descendant::*[@def:Name]
            return element item {
              attribute item_name {data($i/@def:Name)}
            , attribute item_type {local-name($i)}
            , attribute parent_item_name {data($i/parent::*/@def:Name)}
            , attribute parent_item_type {local-name($i/parent::*)}
            , $i
            }'
           passing xmltype(bfilename('TEST_DIR','module2.xml'), nls_charset_id('AL32UTF8'))
           columns item_name         varchar2(50) path '@item_name'
                 , item_type         varchar2(50) path '@item_type'
                 , parent_item_name  varchar2(50) path '@parent_item_name'
                 , parent_item_type  varchar2(50) path '@parent_item_type'
                 , item              xmltype      path '.'
         ) x1
       , xmltable(
           xmlnamespaces(default 'http://xmlns.oracle.com/Forms', 'http://xmlns.oracle.com/Forms' as "def")
         , 'for $i in /item/*/attribute::def:*
            let $propname := local-name($i)
            where $propname != "Name"
            return element p {
              element name {$propname}
            , element value {data($i)}
            }'
           passing x1.item
           columns property       varchar2(50)  path 'name'
                 , property_value varchar2(500) path 'value'
        ) x2
    ;
    

    To make it easier, instead of calculating an ID, the information of the parent are given as (parent_name, parent_type).

  • only main - app.xml and main.swf appear in the content of the apk package list?

    I use Flash Builder 4.5 Pro with Flex and Air to create an Android app.

    I have a basic, MBR called swf, but I keep my property all in MainAssets. When I start the game in emulation of Android, it works well, but when I go to export, only hand - app.xml and main.swf see.

    Now I saw a forum mentioning by dragging the asset in the word bin (I did find an automated process for this yet) and assets appear in project > export Release Build. It is great EXCEPT my camera says that I'm running it in debug? (there appName - Debug is listed as the name of the game).

    If I go to file > export and select Release Build, it will build a version of my game HOWEVER as hand - app.xml and main.swf appear, which means no assets, no game.

    So, questions:

    1. Project > export Release Build actually build a release or debug? (I manually install the apks because my camera is bellicose and won't talk about FB)
    2. How can I get all my files appear in file > export? (I would like to start writing my own xml loader, but if I can't Pack xmls, it's kinda useless)
    3. Can I automate this process somehow?

    Thanks for any help.

    I am traditionally a programmer C++ awesomeness automation Flash Pro has done for me in the packaging and test android applications has not compensated for how it was difficult to code.

    In the projects that I've been compiling, FB is not copying most of the files in the output folder when I do a project-> export Release Build. Not sure why it does not copy the files during the export. There seems to be a bug in FB who has been around for at least a year or two.

    I just worked around this issue for a long time by following these steps:

    Project-> Export release build

    Click on the button "next".

    On your Mac/PC manually go to your project folder and copy your folder full resource (MainAssets in your case by the sound of it) of the CBC to your project folder in your destination folder which should now have been created (for example default bin-release-temp).

    In, click the "Finish" button to complete the building of FB.

    Hope that helps.

  • Print a page with text, image and datagrid

    I have an AIR application.

    I want this app to print a set of text, image and datagrid.

    I thought that of about in 2 ways:

    -create html file, so the application writes just the text in a file. Then the application can open it with the native browser but I don't know that it can print the HTML interpreted.

    -Add text, the image and the datagrid to a Sprite and print with PrintJob. But then I think that I can't use flex layout to create the page.

    How would you?

    Why not use PrintDataGrid and FlexPrintJob?

  • PHP, xml and Flash [multiple holders]

    Hello

    A few days ago, I posted a discussion related to php, xml and Flash. I want to display my xml in flash. I am using to do so. I now have a problem of obtaining xml data in my table to appear on different licensed video clips.

    It's my code. I tried a different configuration of the code, but without success.

    var urls:Array = [];

    var: index number;
    var index1:Number;

    var xml = new XML();
    xml.ignoreWhite = true;
    xml.onLoad = parseXML;
    XML. Load ("Content.php");

    parseXML() {} function
    for (var i: Number = 0; i < this.firstChild.childNodes.length; i ++) {}
    URLs.push (this.firstChild.childNodes [i].firstChild.nodeValue);
    }

    index = 0;
    index1 = 1;

    startyourappF();

    }

    function startyourappF() {}

    this.onEnterFrame = preloadA;

    holder.loadMovie (urls [index]);

    This is me trying it to get the second element in the url in an another film clip holder.

    holder1.loadMovie (URLs [index1]);
    }

    function preloadA() {}

    If (Holder.getBytesLoaded () > 50 & & holder.getBytesLoaded () > = holder.getByte sTotal()) {}

    delete this.onEnterFrame;

    Holder._width = 260,0;

    Holder._height = 96.0;
    }

    This should be resizing to the holder of the second.
    If (holder1.getBytesLoaded () > 50 & & holder1.getBytesLoaded () > = holder1.getB ytesTotal()) {}

    delete this.onEnterFrame;

    holder1._width = 260,0;

    holder1._height = 96.0;
    }
    }

    The success of code loads the holder first image but cannot load the second url holder1 and others, that I want to add. I spend the whole night to try different configurations of the code but without success.

    I hope you can help me. All I need is more than an image loaded from the URL variable in several other variables of the licensee.

    Hope you can help.

    soon > >

    You must first set the structure of your directory and you will need to use relative URLS.  There is no sense to work on something else because what works now in your first image, and if you fix the code in your 2nd frame, it will break as soon as you download on your server.

    Thus, to duplicate the configuration of directory, that you plan to use on your server and use relative URLS.

    If your xml, html and swf are in the same directories and you intend to keep them in the same directories when you download on your server, use load ("timol.xml") to load your xml file.  Similarly, remove all path information to load anything else.

Maybe you are looking for