to access the HTTPService xml attributes

I have a HTTPService isntalled, which gets a document xml, something like this
< item >
< name doc = 'x' url = "htttp://www.yyy.com" / >
< name doc = 'x' url = "htttp://www.yyy.com" / >
< name doc = 'x' url = "htttp://www.yyy.com" / >
< / point >
I want to display each tag doc in a component list with attribute-> name <-, now I can't get the list
to the poster: [object Object] and this is what looks like my dataProvider for the components of the list:
dataProvider = "{service.lastResult.item.doc}" I trid all simple stuff but I can not get the list to display the name of each of these tags attribute or even the tag url. " What is the solution to this?

Thank you, in fact, I used a few notions of action script to solve this problem, I realized that you can access each node e.g. source.lastResult.item.doc [0] ['name'], since I can not put the provider that I made a function that receives the object, calculates the length and place them in a table and the function returns this table in ({label ({: x, given: y}) format, what you would do in flash, so the dataProvider was "{getDoc (source.lastResult.item.doc)}" and given that the result is an array, worked like a charm, no need for thumbnails and who.

Tags: Flex

Similar Questions

  • Can someone please tell me the "see correct / more effective to get the 'status' XML ' attributes

    Can someone please tell me the "see correct / more effective to get the 'status' XML ' attributes (ID, CssClass, Description and IsActive to the XML code below):

    Implementation will be the standalone .swf file

    (XML)

    <ArrayOfLineStatus>
    <LineStatus ID="0" StatusDetails="">
        <BranchDisruptions/><Line ID="1" Name="Bakerloo"/>
        <Status ID="GS" CssClass="GoodService" Description="Good Service" IsActive="true">         
             <StatusType ID="1" Description="Line"/></Status></LineStatus>
    </ArrayOfLineStatus>

    < ArrayOfLineStatus >

    < LineStatus ID = "0" StatusDetails = "" >

    < BranchDisruptions / >

    < line ID = "1" Name = "Bakerloo" / >

    < State ID = 'GS' CssClass = "GoodService" Description = "Good Service" IsActive = "true" >

    < StatusType ID = '1' Description = 'Line' / > < / status >

    < / LineStatus >

    < / ArrayOfLineStatus >

    There is no good way with as2:

    trace(this.firstChild.childNodes[1].childNodes[4].) Attributes ['ID']);

    trace(this.firstChild.childNodes[1].childNodes[4].) Attributes ['CssClass']);

    etc.

  • Problem with &amp; quot; To access the data XML &amp; quot; Tutorial

    I was going through the tutorial on the XML data for access to the (well written I must add) there was a little bug inside, due to an invalid assumption, and it takes the selectedIndex property of the grid, and it assumes it is the same as that of the XML language, which is not the case. Here is the link:

    http://www.Adobe.com/devnet/flex/QuickStart/accessing_xml_data/

    I understand that this tutorial is the XML "to get to the" not necessarily communicate with DataGrid. I have the same problem and I'm not coming up with a nice way to solve this problem, when you double-click a row in a data grid, you can detect his 'id' / number/child-entry (or the unique property of this entry).

    I appreciate your comments.

    ML.

    I don't want to analyze this example. Are you asking how to get an id or some other value, when you select a row in a datagrid?

    When you select an item in the list-based control, properety selectedItem control contains a reference to the dataProvider of element for the selected item. You can get goods that are present in this object:
    var sId: String = myDataGrid.selectedItem.myIDProperty;

    If I misunderstood, Please rephrase your question.

    Tracy

  • Trouble accessing the dynamic XML of the API with a CFC

    Please see my example at the source of http://67.199.18.39/test.html and the view (to big to post here). I'm back XML returned by a dynamic call to an API through a ColdFusion CFC.

    You are looking for a generic name like dog. Click OK. I display the XML for you to see. I tried several different XMLList dataproviders but unable to get anything to work.

    Can someone indicate on the 'mistakes' of my ways?

    Thank you.

    It turns out that it was a matter of namespace. I found the answer from a tutorial of Bruce Phillips at -For-Each-Statement-And-The-Descendent-Accessor--Operator http://www.brucephillips.name/blog/index.cfm/2006/12/5/Processing-XML-in-Flex-20-Using-The

    I had to add:

    namespace private yahooNS = "urn: yahoo: Prods."
    Using namespace yahooNS;

  • With the help of the XML attributes in itemRenderer and labelFunction

    Hello!

    I searched for hours and read the Devguide but always impossible to find the solution to my problem.
    I have a xml returned from php like this:
    < files >
    < record id = "1" name = "name_1" type = "0" / >
    < record id = "2" name = "name_2" type = "0" / >
    < record id = "3" name = "name_3" type = "1 / >"
    < / documents >

    I can bind the result returned from the HTTPService to a data grid:

    < mx:DataGrid dataProvider = "{ret_XML.record}" width = "500" number of rows = "20" editable = "false" id = "dg" > "
    < mx:columns >
    <!-NEXT WORK! ->
    "< mx:DataGridColumn headerText ="Name" dataField="@name " width ="300"/ >
    <!- LABELFUNC don't DO NOT WORK IN LINE NEXT->
    "< headerText ="Type"dataField="@type mx:DataGridColumn " labelFunction ="labelFunc">
    < / mx:DataGridColumn >
    "< headerText ="Id"mx:DataGridColumn dataField="@id " editable ="false">
    < mx:itemRenderer >
    < mx:Component >
    <!-LINE FOLLOWING IS don't DO NOT WORK! ->
    "{< mx:Button label="{data.@id} '/ >
    < / mx:Component >
    < / mx:itemRenderer >
    < / mx:DataGridColumn >
    < / mx:columns >
    < / mx:DataGrid >

    and I have a labelFunction like this:

    private void labelFunc(item:Object,_column:DataGridColumn):String {}
    return "Type:"+ item.@type; "
    }

    So, my problem is that when I bind the column to an XML attribute, it works fine but when I try to link it to an itemRenderer or use it in a function, it does not work. I'm trying for hours now, but just can't make it work.
    I tried:
    "{< mx:Button label="{data.@id} '/ >
    < mx:Button label = "{data. () @id)} »/ >
    "{< mx:Button label="{@data.id} '/ >

    and perhaps others but no luck...
    Please someone help me with this one!

    Ty:
    [Pig]

    Problem solved!

    Well, post it on the forum after I solved my problem as follows:

    So in itemRenderer just use data.attribute () with the desired XML attribute name

    And in the labelFunction:

    private void labelFunc(item:Object,_column:DataGridColumn):String {}
    return "Type:"+ item.attribute ('type'); '.
    }
    Even with itemRenderer but rather data use () item.attribute

    I hope that this is the 'official' solution too...

    [Pig]

  • To access the values of the Atrributes VO at the bean object

    Scenario is,

    I have two attributes in the original Version, but I want to access the values of attributes, I can get the values of Vo using vo, getAtrribute (), but I want to access the values of the attributes when the user will enter new values, I want access to a new value to manage the bean to handle.

    I dropped VO as a form on the Page

    Version: Release 11g Jdev 2, 11.1.2.0.0

    Zaid

    You tell me that after 30 answers, it's not good

    and it is a totally different matter, then you need to open a new topic for each new question (ignore this time but remember)

    As you say that annual is the primary key in the primary table, then obviously you want to sink it is the current value in the child records, why you need the next sequence number to add detail records?

    Anyway check this box

    Immerse yourself in Oracle: get the next value in the sequence in ADF

    Ashish

  • To access the elements of the XML object

    A web service is back from the data to me as an XML object. I can access the items in the XML like this:

    & lt; cfset username = #XMLDocument.login.username # & gt; and if I have this dump to screen with cfoutput I get just the user name. But if I try to user the variable username as an attribute within a url cflocation it appears in the attributes with the xml notation, for example in the attributes will be:

    username = & amp; Lt;? XML = 20version & amp %; quot; 1.0 & amp; quot; % 20encoding = & amp; quot; UTF-8 & amp; quo t;? & amp; GT;

    Any help much appreciated. Thank you

    > Username>

    > I can't access like this:
    > #XMLDocument.login.username # this will show all
    > 'User_name '.

    Are you sure? If you view the source, don't you get the whole node?

    > but if I send these details as attributes, as follows:<>
    > url = ' index.cfm? username = #XMLDocument.login.username #... Can I get xml
    > formatting instead of just the user name.

    Well Yes.

    #XMLDocument.login.username # designates the entire node, not just the
    xmlText bit between the tags as you seem to expect. You want to
    just the xmlText node.

    You should probably read the docs on how CF manages XML:
    http://livedocs.Adobe.com/ColdFusion/8/htmldocs/help.HTML?content=XML_02.html.

    --
    Adam

  • How to access the attribute of the Parent of a child node?

    Hello

    I'm trying to accomplish something simple here, by accessing the value of the attribute of the node parent to a value of the child. I have the date given here, but I'll try to find the name of the event to the date, the name of the event or the attribute parent date.

    I have the code here, as in the following, but I kept getting #1009 error term undefined in line with parent() inside. Could someone please guide me on how to solve this problem?

    Thanks in advance.

    Alice

    "alice_data" wrote in message
    News:gr2fkh$CRE$1@forums. Macromedia.com...
    > Hi,.
    >
    > I am trying to accomplish something simple here, by accessing the parent company
    > value of the attribute of the node to a value of the child. I have the date given here,
    > but I
    > trying to find the name of the event of the day, including the name of
    > the
    > event is the attribute of date parent.
    >
    > I have the code here, as in the following, but I kept getting term #1009
    > not
    > set the error on line with parent() inside. Could someone please guide
    > me on
    > How do I fix this?
    >
    > Thanks in advance.
    >
    > Alice
    >
    > Excerpt from Actionscript:
    >
    > var resultC:XMLList;
    > resultC = searchResult... Book.schedule_item.date;
    > var resultD:XMLList;
    >
    > / * The following two lines kept giving me some bad mistakes #1009
    >
    > / / resultD = resultC.parent () .@type;
    > / / trace ("It's D" + resultD + "\n");
    >
    > / * End of error
    >
    > var resultC_collection:XMLListCollection = new
    > XMLListCollection (resultC.*);
    >
    > //Debug goal, print the string the result selected XML
    > trace ("this is the result:" + resultC);
    >
    > XML:
    >
    >
    > 20/03/2009
    > 22/03/2009
    >

    I think your problem is that resultC is an XMLList. Go to the parent company, you
    necessary to arrive at a SINGLE element in the list. Even if it is a list that contains
    a single element, which is not the same as a single element.

    Try

    Note that I do not book in your xml, so I doubt that is correct
    resultC is searchResult.child('book') .child ('schedule_item').child('date');.

    resultD resultC = [0] .attribute () .parent ('type');

    Note that the syntax that you used will break if no element has not one
    child or the attribute corresponding to your request, so I used the more verbose syntax.

    HTH;

    Amy

  • HTTPService - how to databind XML attribute

    I have a simple servlet that I call usign the HTTPService tag. Here is an example:

    < mx:HTTPService
    ID = "c4Test" method = "POST" resultFormat = "object" contentType = "application/xml".
    URL = "myServlet".
    useProxy = "false" >
    < mx:request >

    I call my servlet in my Flex application (via the HTTPService tag). The "myServlet" takes the request and responds with an XML response, like this:

    < Plan >
    < title id = "500" > Hello World < /title >
    < / myRoot >

    I want to display the attribute 'id' within the 'title' tag in a label field. I try to do it like that, but I get a syntax error:

    < mx:Label text="{c4Test.lastResult.myRoot.title[@message]}"/ >

    I know that syntax is probably wrong, but how we refer to an attribute. Referring to the "title" element works fine using the following syntax (but I don't want the title element, I want the value of the attribute id tithe).

    < mx:Label text="{c4Test.lastResult.myRoot.title}"/ >

    I try to avoid the use of ActionScript at this stage... try to do it with simple mx:controls

    Thanks for any help.



    OK... got it to work! It seems that when dealing with a result set of e4x, you have no need to reference the root node. My xml result looked liked this:


    Hello world

    I was trying to refer to the attribute "id" as follows (which did not work):

    But to make it work, I don't have to inlcude "myRoot" node root in the expression, as follows:

    It worked.

    Thank you!

  • I am trying to open a file and make me notice that the required index.xml file is missing. Is it possible to access the file? I don't know why this happened.

    I am trying to open a file in Pages 09 and am getting notice has the required index.xml file is missing. Is it possible for me to access the file? I don't know why this happened.

    You open a file with Pages ' 09 Pages 5.x.

    You need to right-click on the file and open it with Pages 5.x (the one with the orange document icon).

    Peter

  • How to access the LOV attribute in attribute transient expression

    I have a transitional attribute in one of my view object. It has an accessor of the view (ViewAccessorName) to the object from a different point of view.

    I have the expression in my transient attribute like this: ViewAccessorName.first (). = null? ViewAccessorName.first () .getAttribute ("AttributeName"): "empty text".

    I already have a LOV defined on the view accessor even. Can I access the LOV attribute in expression?

    For example, can I write something like LOVName.getSingle (). AttributeName?

    Thank you.

    It is a perfect solution for what I need.

    Andrejus Baranovskis Blog: Text Description LOV with Groovy

  • To access the elements of an array of elements based on the value of the attribute

    Hi all

    I create a BPEL 11 g process that calls a web service which returns a data table. I need iterator on the data elements and access based on their attribute value.

    Here is a sample web service load:

    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
       <env:Header/>
       <env:Body>
          <OutputParameters xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.oracle.com/apps/inv/soaprovider/plsql/item_pub/get_item/">
             <GET_ITEM>
                <Row>
                   <Column name="ORGANIZATION_ID" sqltype="NUMBER">101</Column>
                   <Column name="ORGANIZATION_CODE" sqltype="VARCHAR2">MyOrg</Column>
                   <Column name="SEGMENT1" sqltype="VARCHAR2">MySegment</Column>
                   <Column name="DESCRIPTION" sqltype="VARCHAR2">Upload 445</Column>
                   <Column name="PRIMARY_UNIT_OF_MEASURE" sqltype="VARCHAR2">Each</Column>
                   <Column name="PRIMARY_UOM_CODE" sqltype="VARCHAR2">EA</Column>
                   <Column name="ITEM_CREATION_DATE" sqltype="VARCHAR2">01/21/2014 09:22:35</Column>
                   <Column name="ITEM_UPDATE_DATE" sqltype="VARCHAR2">01/21/2014 09:22:35</Column>
                   <Column name="REVISION" sqltype="VARCHAR2">0</Column>
                   <Column name="REVISION_LABEL" sqltype="VARCHAR2">0</Column>
                   <Column name="REV_CREATION_DATE" sqltype="VARCHAR2">01/21/2014 09:22:57</Column>
                   <Column name="REV_UPDATE_DATE" sqltype="VARCHAR2">01/21/2014 09:22:57</Column>
                </Row>
                <Row>
                   ...
                </Row>
                <Row>
                   ...
                </Row>
             </GET_ITEM>
          </OutputParameters>
       </env:Body>
    </env:Envelope>
    

    How can I get some columns based on the name of the column attribute?

    I tried to do this:

    bpws:getVariableData('getItemResponse','body','/ns7:OutputParameters/ns7:GET_ITEM/ns7:Row[$partIndex]/ns7:Column[@name='SEGMENT1'])
    

    and

    bpws:getVariableData('getItemResponse','body','/ns7:OutputParameters/ns7:GET_ITEM/ns7:Row[bpws:getVariableData('partIndex')]/ns7:Column[@name='SEGMENT1'])
    

    but I got this compilation error:

    Error (157): xpath expression "bpws:getVariableData ('getItemResponse', 'body','/ ns7:OutputParameters / ns7:GET_ITEM / ns7:Row [bpws:getVariableData('partIndex')] / ns7:Column [@name = 'SEGMENT1'])" appearing is not valid, because XPath query syntax error. The syntax error occurs when parsing bpws:getVariableData ('getItemResponse', 'body','/ ns7:OutputParameters / ns7:GET_ITEM / ns7:Row [bpws:getVariableData('partIndex')] / ns7:Column [@name = 'SEGMENT1']) expression XPath, posted on 112. The XPath query syntax was false; the exception was: anticipated :). Check the detailed origin described in the text of the exception message and verify that the XPath expression that is named in the error message is correct. The XPath expression is defined in the BPEL process.

    I use JDeveloper 11.1.1.7.0

    Thanks in advance,

    Bill

    Use an entitlement and copy node and you can get it to work by using the syntax below.

    Assign an expression of the copy below syntax: -.

     

           

    Query="/ns1:GET_ITEM/ns1:row[$index]/ns1:column[./@name='Segment1']"/ >

           

         

    Query = "" / client: processResponse / client: result "/ >"

  • How to access the attributes of VO through binding...

    I have a lookup table that has 2 columns namely encode and attrib.

    I created a ViewObject with SQL like:

    SELECT THE CODE, REFER TO THE STUDY_TYPE_CODES

    And he stated in an Application Module.

    Now I want to post it to the end-user as part of a selection
    that should show REFER to but returns the value CODE.

    I want to iterate the elements and generating the choices myself.
    So I tried this on my page:

    < af:selectOneChoice label = "Test" required = "true" >

    < af:forEach elements = "#{bindings." Var StudyTypeCodesVVO1.allRowsInRange}"="row">

    "< af:selectItem value =" #{row.code} "label =" #{row.describ} "id ="si3"/ >

    < / af:forEach >

    < / af:selectOneChoice >

    It gives an error. Looks like how I use
    "#{row.code}" or "#{row.describ} ' is false.  If I ' # {line} "then
    It's OK, and I could see that the line is a

    ViewRow [oracle.job.Key []]

    But I do not know how to access attributes by name 'Code' and ' means ".". " I also tried
    "#{rank." Code}"with the capital and it does not work.

    How to access the attributes 'code' and 'describe' of each line?

    Kindly help.

    Thank you.

    Check the RangeSize property on the iterator to pageDef.

    Dario

  • I receive the "could not sign in you [access denied: 530]." Check your user name and password ' problem on Adobe Muse CC 2014 and I can not access the xml file that is supposed to solve this problem?

    I am a PC user and I have Adobe Creative Cloud Muse 2014. I received the "could not sign in you [access denied: 530]." Check your username and password "error. trying to download my muse to my ftp, GoDaddy host site I did it successfully in the past and that recently it has stopped working. I looked online at the Adobe Muse Help FAQ | Download a Site from Muse Adobe on a third-party hosting service and he said to download the ftpprefs.xml file but this file simply leads to a blank page that says / * not found * / / * not found * /.

    Can you direct me to a page to work with this file, or provide an alternative? Thank you!

    Hello

    As you have found the error [access denied: 530] This means that the problem is with access. The user name and password that you enter is incorrect or you don't have the appropriate permissions.

    I suggest you to contact Godaddy to reset the password or reset the permissions.


    Concerning

    Vivek

  • How can we access the value defined for the attribute search criteria

    Hi guys,.

    Is it possible to access the value that has been set to attribute programmatically in the bean in support of a search term?

    Kind regards!

    Schuhler

    Check the sample 85 ADF code corner sampleshttp://www.oracle.com/technetwork/developer-tools/adf/learnmore/85-querycomponent-fieldvalidation-427197.pdf

    Frank shows how to access the variables.

    Timo

Maybe you are looking for

  • How to get invisible on the net

    I would like to surf the net and be invisible. Is this possible?

  • Install Win7 (Pro) on a C6Z35UT 4540 ProBook S?

    HI -. I recently bought a laptop from ProBook 4540 S C6Z35UT. I love the material. It came with 64-bit Windows 8. I've never tried Windows 8 before, but I really used Windows 7. After playing a bit with it, I decided that I really don't like Windows

  • Two control relays

    Hello I have a problem to control the relays i advanced to two loops for the relay a solenoid to control and other control fans. loop of solenoid should work when the fans stop. I am unable to control loops or maybe my developed logic is incorrect. P

  • Brand new 6600 Jet error msg-

    4-5 days old printer worked fine two first impressions but not it will show that "printer failure - there is a problem with your printer or ink system".  I followed the suggestions on the HP support site: off, rebooted, disconnected - nothing.  I del

  • Untrapped exception on blackberry 9300 blackBerry Smartphones

    I get a message error uncaught exception: Application Registry.waitFor (0x1c26ebcd7b130582) timeout. I can not connect mt phone to my manager office or indeed make use of my phone. any help Kamelaht