How to access the XML in Flex
< user >
< UID = "HR" dept >
< user >
mm < fname > < / fname >
< Email > [email protected] < / email >
< / user >
< user >
SSS < fname > < / fname >
< Email > [email protected] < / email >
< / user >
< / dept >
< UID = 'Finance' dept >
< user >
FFFF < fname > < / fname >
< Email > [email protected] < / email >
< / user >
< user >
www < fname > < / fname >
< Email > [email protected] < / email >
< / user >
< / dept >
< / users >
using the HTTP service with access to the data
This my user.xml file I want to display all the item in flex datagrid using the function navigator tab... each browser tab contains a grid of data for corresponding like HR, sales, Finance Dept
the corresponding information will be displayed in the data grid
first tab navigatore is
HR-> grid of data such as fname, Email field
Finance-> fname, E Mail
Try this if you have problems and the way in which you want to change it:
<>
"xmlns:MX ="http://www.adobe.com/2006/mxml"
Layout = "vertical".
"" xmlns:local = "*".
creationComplete = "init ()" > "
dataProvider = "{myXML.dept}" > "
Kind regards
Adrian
Tags: Flex
Similar Questions
-
How to access the xml stored procedure clob?
Hello
I am producing what appears to be a simple bit of code (just a simple report in the form of a web page), while what I've tried so far only does not work. I come back kind of clob broken by the stored procedure, so I feel it's almost right, but who knows at this point. TIA
Here is an excerpt from Oracle:
-p_XMLReport ON CLOB,
-qryCtx DBMS_XMLGEN.ctxHandle;
-sql_stmt VARCHAR2 (32767).
qryCtx: = DBMS_XMLGEN.newContext (sql_stmt);
p_XMLReport: = DBMS_XMLGEN.getXML (qryCtx);
Here's a snippet of VB:
Conn = New OracleConnection
Dim cmd As New OracleCommand
Dim rs As OracleDataReader
Try
Connection group conn cmd.
Conn. Open()
cmd.CommandText = "GETDATA".
cmd.CommandType = CommandType.StoredProcedure
cmd. Parameters.Add (New OracleParameter ("p_XMLReport", OracleDbType.Clob)). Direction = ParameterDirection.Output
cmd. Parameters.Add (New OracleParameter ("p_Conditions", OracleDbType.Clob)). Value = "'" + conditions + "'."
cmd. Parameters.Add (New OracleParameter ("p_Fields", OracleDbType.Clob)). Value = "'" + fields + "'."
RS = cmd. ExecuteReader()
xmlDoc = New XmlDocument
CLOB Dim As String
CLOB = (cmd. Parameters ("p_XMLReport"). (Value). Value ' kind of work...
Response.Write ("< pre >")
Response.Write (clob)Usually you would call ExecuteReader only if you use a query or a proc that returns a ref cursor
See if that helps,
Greg/* create or replace procedure getxmlclob(v1 out clob) as qryCtx DBMS_XMLGEN.ctxHandle; sql_stmt VARCHAR2(32767); begin sql_stmt := 'select * from all_objects'; qryCtx := DBMS_XMLGEN.newContext (sql_stmt); v1 := DBMS_XMLGEN.getXML(qryCtx); end; / */ using System; using System.Data; using Oracle.DataAccess.Client; using Oracle.DataAccess.Types; class Program { static void Main(string[] args) { using (OracleConnection con = new OracleConnection("user id=scott;password=tiger;data source=orcl")) { con.Open(); using (OracleCommand cmd = new OracleCommand("", con)) { cmd.CommandText = "getxmlclob"; cmd.CommandType = CommandType.StoredProcedure; cmd.Parameters.Add("foo", OracleDbType.Clob, ParameterDirection.Output); cmd.ExecuteNonQuery(); Console.WriteLine(((OracleClob)cmd.Parameters["foo"].Value).Value.ToString()); } } } }
-
How to access the files from google docs?
Hello
can someone tell me how to access the mp3 files saved on google docs.
as I am able to recover google docs docs files.
connection = (HttpConnection) Connector.open("http://docs.google.com/feeds/documents/private/full/-/document"); connection.setRequestMethod(HttpConnection.GET); connection.setRequestProperty("Authorization", auth); connection.setRequestProperty("Content-type","application/atom+xml");
but the mp3 files do not appear in the xml only doc files are listed?
any idea how to get mp3 files?
Thankx
@Sannyo: agree with you.
I also saw that. This is only the docs.
------------------------------------------------------------------------------------
Kudo press to say thank you to the developer.
Also, press accept it as a button when you got the Solution. -
How to access the MDS of Hudson and Machine Unix resources?
Hello
How to access the MDS of Hudson and Machine Unix resources?
I can do even Jdeveloper using the local filesystem n oramds Protocol and access resources.
Please share the information for Hudson & Unix Machine?
Kind regards
EnNeed for resources MDS configure using adf - config.xml in the application. You can also change the configration of 'Oracle_SOA1\bin\ant-sca-package.xml '.
Concerning
En
-
To access the XML from a different class
Hi all
I have a xml class that loads the xml data, I need to access the data of another class. I imported the xml classinto the new class and created a new instance of it. However when I try to access the xml data it come back as null. I understand that it is certainly because when she is called the xml data has not completed loading. How can I get around this?
XML class:
package {}
flash.xml import. *;
import flash.events. *;
import flash.net. *.
import flash.display. *.
public class xml extends MovieClip
{
public var xmlRequest:URLRequest;
public var xmlLoader:URLLoader;
public var xmlImages:XML;
public void xml()
{
xmlRequest = new URLRequest ("images.xml");
xmlLoader = new URLLoader (xmlRequest)
xmlLoader.addEventListener (Event.COMPLETE, xmlLoaded);
xmlLoader.load (xmlRequest);
}
private void xmlLoaded(event:Event):void
{
trace (xmlLoader.Data);
xmlImages = new XML (xmlLoader.data);
}
}
}Thanks in advance
Or even better:
package { import flash.events.*; import flash.net.*; import flash.xml.*; public class XMLLoader extends URLLoader { public var xmlImages:XML; public function XMLLoader() { } public function loadXML(url:String):void { this.addEventListener(Event.COMPLETE, xmlLoaded); this.load(new URLRequest(url)); } private function xmlLoaded(event:Event):void { trace(xmlLoader.data); xmlImages = newXML(this.data); dispatchEvent(new Event("loadComplete")); } }}
Use:
var xmlLoader:XMLLoader = new XMLLoader();
xmlLoader.addEventListener ("loadComplete", onXMLLoad);xmlLoader.loadXML ("images.xml");
function onXMLLoad(e:Event):void {}
trace (xmlLoader.xmlImages);
} -
Cannot access the XML file on localhost.
Type localhost or 127.0.0.1 in any browser on a Macintosh (os 10.5) does not have access to the host computer.
The following Actionscript code generates the following error:
var XMLURL:URLRequest = new URLRequest ("http://localhost/quoteRotator/quotes1.xml");
Error opening URL ' http://localhost/quoteRotator/quotes1.XML '
#2044 error: Unhandled IO error...
How can I access the XML file using Actionscript 3?
Thanks for your help.
use:
var XMLURL:URLRequest = new URLRequest("quotes1.xml");
-
How to access the info in my iCloud account
How to access the info in my iCloud account?
You can access much of the iCloud.com on a computer or through specific applications on your mobile device such as contacts, calendars, iCloud Drive, Photos. What exactly you were looking for and what type of device.
-
I am trying to install a new OS, how to access the bios on my HP Pavilian dv8?
Hello:
You should be able to access the BIOS by pressing the F10 key as soon as you see the HP welcome screen.
Paul
-
How to access the BIOS on a Pavilion Elite e9237c with mouse and keyboard wireless?
I have a desktop computer Pavilion Elite e9237 with a wireless keyboard and mouse. I tried to access the BIOS by pressing F10 at startup with no luck, and I can't access any of the other menus for the start-up eiither. I don't have a PS/2 port on my computer, so I can't get a wired keyboard and mouse. Does anyone know how to access the BIOS with this configuration?
I bought a USB keyboard and he answered in the same way... No bios access. I then studied why it did not work and discovered that it was the way in which he has been connected to the computer. I had initially plugged into a USB hub when he was not working and I moved it directly into a USB port and it works! I plugged my keyboard wireless directly into the USB port and it works too! Thanks for your help... I wouldn't have thought of it if it wasn't for to recommend you the USB keyboard.
-
How to access the firefox on laptop Office keeping all the features?
How to access the firefox on laptop Office keeping all tabs and bookmarks?
Hello
You may be able to do this in Firefox Sync configuration on both devices. Please see for detailed instructions.
-
Qosmio G30-126 - how to access the bios!
I have a laptop Qosmio G30-126 and I don't know the key to enter the bios to change real estate for the HARD drive or something... then how to access the bios? What is the key for the bios?
Hello
Try pressing the F2 key by turning on the device.
The Toshiba notebooks supported the ESC and then F1 button
If these two options are possible -
Re: How to access the BIOS on Satellite Pro A120
Can someone tell me how to access the BIOS on my SAT Pro A120?
Hello
You must press ESC and then F1 key immediately after the laptop has been powered!
The laptop seems to be to use the Toshiba BIOS and ESC key should be the right one!
Good bye
-
How to access the BIOS on Satellite A110-195 settings?
How to access the BIOS settings (CPU, video memory ect). I have http://eu.computers.toshiba-europe.com/innovation/jsp/SUPPORTSECTION/discontinuedProductPage.do?service=EU&PRODUCT_ID=1 18639
At the start when the Toshiba start screen appears press F2 repeatedly and you should be able to enter the BIOS settings.
-
How to access the BIOS on Satellite C50-A-1F
Hey folk,
A small question:
How to access the BIOS of my laptop?
I tried this method and f12, f1, f2 etc.
Thanks in advance
Have you ever tried to look for similar issues here in the forum?
Check this one:
http://forums.computers.Toshiba-Europe.com/forums/thread.jspa?threadID=76740 -
HP laptop - 15-ac121dx: how to access the ram on a 15-ac121dx modules
I want to upgrade the ram in my HP laptop - 15-ac121dx and maybe the hard drive, but I can't understand how to access the ram. There is no access panel, and unlike some other models, it doesn't have a single lever in the battery bay to remove the cover.
OK, I realized how down low on the laptop. After watching some youtube videos I came across another HP laptop computer who had screws under the rubber feet and of course there are also screws under the back of two rubber feet, can't believe I didn't think to look under them.
To get the background you need to:
- Remove all the screws on the bottom. (Must be 12 total)
- Remove the drive from DVD (Yes it does not).
- Finally, carefully separate the case around the side.
After that, you should have full access to the slots of RAM and hard drive.
Maybe you are looking for
-
Jack was very warm when you disconnect the plug iPhone
When my iPhone 6 supported this morning, I noticed the plug that goes into the wall was pretty hot when I disconnected the unit from the wall. I never noticed this before. Is it a bad sign and is it safe to use?
-
Could not find a way to get my Logitech Wingman Formula Force racing wheel to work.
OK, here's the problem. Logitech is not support the wheel for 64-bit operations. Supposedly, it is supposed to work with Vista 32-bit, but I have the 64 bit installed. Someone is mentioned on another forum that there may be a work around for this,
-
BlackBerry - blackberry 9720 Smartphones transfer applications
Hi, I would like to transfer an icon dial voice in my favorites in my file folder all them is possible and if it is how to do, can anyone out there help please dave4
-
This - according to the internet - heavy CPU usage is healed by downloading the latest version from Intel. However, Intel warns that manufacturers may have their own version. Is there a version of Dell's IAStorDataSvc.exe for 10 windows on the Precis
-
For the Adobe Reader distribution agreement
Hi allIt's Adobe Reader is free to use in a society with 70 users when you made a distribution agreement?Thank you in advance for taking your time and answer this question.