<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic XML String from WD to Flex XML in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-string-from-wd-to-flex-xml/m-p/6020155#M1347469</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am new in flex development. I'd like to transfer an XML String to Flex. Unfortunately I don't´know how to do this.&lt;/P&gt;&lt;P&gt;In abap web dynpro I created a string variable which contains the xml. The string contains e.g. the following hierarchical information: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In flex I created the following variable:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      &lt;A href="https://community.sap.com/Bindable"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;      public var XmlString:String;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using a open source component in flex which can display this hierarchy. This component expects the information as a variable of type XML:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know, how to convert the string XML into the flex XML type?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you and best regards, Eddy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 23 Aug 2009 23:32:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-08-23T23:32:22Z</dc:date>
    <item>
      <title>XML String from WD to Flex XML</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-string-from-wd-to-flex-xml/m-p/6020155#M1347469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am new in flex development. I'd like to transfer an XML String to Flex. Unfortunately I don't´know how to do this.&lt;/P&gt;&lt;P&gt;In abap web dynpro I created a string variable which contains the xml. The string contains e.g. the following hierarchical information: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In flex I created the following variable:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      &lt;A href="https://community.sap.com/Bindable"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;      public var XmlString:String;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using a open source component in flex which can display this hierarchy. This component expects the information as a variable of type XML:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know, how to convert the string XML into the flex XML type?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you and best regards, Eddy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Aug 2009 23:32:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-string-from-wd-to-flex-xml/m-p/6020155#M1347469</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-23T23:32:22Z</dc:date>
    </item>
    <item>
      <title>Re: XML String from WD to Flex XML</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-string-from-wd-to-flex-xml/m-p/6020156#M1347470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Edger,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the new XML() constructor to create an XML object from a string, as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;var myDataProvider:XML = new XML('&amp;lt;Organization name="Manager" experience="20"&amp;gt;
&amp;lt;Organization name="Project Lead" experience="10"&amp;gt;
&amp;lt;Organization name="Architect" experience="6"/&amp;gt;
&amp;lt;Organization name="Developer" experience="3"/&amp;gt;
&amp;lt;Organization name="Developer" experience="1"/&amp;gt;
&amp;lt;Organization name="Developer" experience="2"/&amp;gt;');&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more help you can refer XML type conversion in :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://127.0.0.1:54718/help/index.jsp?topic=/com.adobe.flexbuilder.help/html/13_Working_with_XML_01.html" target="test_blank"&gt;http://127.0.0.1:54718/help/index.jsp?topic=/com.adobe.flexbuilder.help/html/13_Working_with_XML_01.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vivek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2009 04:12:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-string-from-wd-to-flex-xml/m-p/6020156#M1347470</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-24T04:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: XML String from WD to Flex XML</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-string-from-wd-to-flex-xml/m-p/6020157#M1347471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vivek,&lt;/P&gt;&lt;P&gt;thank you for your answer. &lt;/P&gt;&lt;P&gt;I knew that possibility to create an XML using your mentioned XML constructor. My problem is I originally have an xml string on abap web dynpro side. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This string is sent to flex via binding. The next step on flex side would be, to convert this string to an xml object, as you mentioned above. So there must be something like an event handler that is called, every time the xml string is changed. In this event handler the string is converted to an xml object. &lt;/P&gt;&lt;P&gt;Do you have an idea, how to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you and best regards, Eddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2009 06:19:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-string-from-wd-to-flex-xml/m-p/6020157#M1347471</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-24T06:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: XML String from WD to Flex XML</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-string-from-wd-to-flex-xml/m-p/6020158#M1347472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Edger,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Events are handled mainly on service responce or components. On change of raw value of any variable i don't find any event that you may find for any component like change of value in any TextInput etc.&lt;/P&gt;&lt;P&gt;When you start your application you can hit to back-end DB sytem to get latest values at present. &lt;/P&gt;&lt;P&gt;You can try to pass some trigger from WDA side to Flex so that it'll refresh it's XML collection at that moment.&lt;/P&gt;&lt;P&gt;Or another way is you have keep polling for that XML value at regular interval.&lt;/P&gt;&lt;P&gt;This can be done using Timer Class in Flex. you can get many examples for it's use in Help of Flex builder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Regards,&lt;/P&gt;&lt;P&gt;Vivek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2009 07:57:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-string-from-wd-to-flex-xml/m-p/6020158#M1347472</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-24T07:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: XML String from WD to Flex XML</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-string-from-wd-to-flex-xml/m-p/6020159#M1347473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I can't believe that there isn't a way to convert a string from web dynpro to an flex xml object. I heard of setter methods in flex, which are called when the WD context is changed.  Would this be the right approach to handle this problem? Or has anyone else a solution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards, Edgar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2009 09:22:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-string-from-wd-to-flex-xml/m-p/6020159#M1347473</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-24T09:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: XML String from WD to Flex XML</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-string-from-wd-to-flex-xml/m-p/6020160#M1347474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Edger,&lt;/P&gt;&lt;P&gt;I don't know if this could help you, but you can try as you said with a setter method, like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;public function set flexXMLString(XMLString:String):void{
  var _flexXML:String = XMLString;
  "your code"
}&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This method will be called whenever the variable flexXMLString is changed.&lt;/P&gt;&lt;P&gt;Remeber to not declare flexXMLString, as it will be done implicitly but building up a setter method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind reg,&lt;/P&gt;&lt;P&gt;R.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Oct 2009 09:02:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-string-from-wd-to-flex-xml/m-p/6020160#M1347474</guid>
      <dc:creator>former_member199581</dc:creator>
      <dc:date>2009-10-23T09:02:42Z</dc:date>
    </item>
  </channel>
</rss>

