How can I get the text value of an element XML in MXML?

Hello


I have the following XML loaded into a variable of XML type:

Properties of <>
the RIMpro data collector Configuration < comment > < / comment >
< key="server.pear.username"/ entry >
< key = "enter server.apple.retry.times" > 5 < / entry >
< Enter key = "rdc.proxy.host" > http://192.168.1.2:8080 < / Entry >

/Properties >

I can easily get the key attribute displayed in a DataGridColumn by setting the dataProvider my variable and the data in "@key" area  But I don't know how to get the text value in a second column...  Is it possible or do I have to change my XML to something like this:

Properties of <>
the RIMpro data collector Configuration < comment > < / comment >
< key="server.pear.username"/ entry >
< key = "enter server.apple.retry.times" value = "5" > < / entry > "
< Enter key = "rdc.proxy.host" value ="
http://192.168.1.2:8080"""> < / entry > "

/Properties >

Thanks in advance.


Marc

Yes, you'd better change your XML structure to fit the internal mechanisms of the DataGrid.

As model dataField require each element of the grid line to have a named property to display, otherwise you will be forced to overcome this model to the custom help labelFunction for the particular column that will implement your custom actions on how to extract the appropriate data for this column of the grid line item. It will be much more complicated that just reorganize your xml structure.

Tags: Flex

Similar Questions

  • I have a form in which the text area can be developed to accept more text, but the text does not appear on the printed copy.  How can I get the text to print?

    I have a form in which the text area can be developed to accept more text, but the text does not appear on the printed copy.  How can I get the text to print?

    Hi robinm6200,

    Make sure that you have selected 'Document and annotations' under 'Comments and forms' when printing.

    Kind regards

    Nicos

  • NOAE: How can I get the real value of FPS?

    I implement an external encoder as an After Effects plugin library. This requires a value for the encoding of the FPS as a float value.

    With the help of:

    ERR (suites. IOOutSuite4()-> AEGP_GetOutSpecFPS (mouthand fps));

    gives a completely ridiculous value (1964114, when the FPS publication is 29.97). How can I get the real value of FPS?

    Hello

    It seems that AEGP_GetOutSpecsFPS returns a value of type A_Fixed.  You can use the macro FIX_2_FLOAT() (defined in AE_Macros.h) to convert to a float value.

  • How can I get the string value displayed on a digital control defined for the relative time.

    I have a digital potentiometer to display relative time in increments of 30 minutes.

    I want to record the value displayed on the control string.  Unfortunately, when I use the "convert to decimal string.vi" number, the resulting string is just the value in seconds.

    How can I get the value as a string? (for example 01:30 for an hour and thirty minutes)

    Thank you

    Sean

    Hi Sean.C!

    M_Peeker's suggestion is a good thing.  A stage that could clarify things is that you must set the % t <%H:%M> format string entry.

    < br / > Kristen:.

  • How can I display the display value for an element of lov in another area

    My page has a few elements that allow the user to select specific criteria for their report.
    pn_person - select point based on lov. Lov shows the name of the person and returns the code of the person in pn_person

    When the user has made their choice, they press a button that the report is generated.

    I want to do is show the display value for one of the search fields in the title of the report (for example, person_name) region. I think to do that I need to create a (hidden) pn_person_name point, then I put & pn_person_name. as a region

    However, how can I get the value of pn_person in pn_person_name display?

    I thought that apex_item.text_from_lov, but don't know how to use it - what elements (types), the calculations / process I need to create...

    THX Caron

    Published by: user11267129 on January 7, 2010 15:01

    Published by: user11267129 on January 7, 2010 15:02

    Published by: user11267129 on January 7, 2010 15:02

    Caron:

    You can use javascript to set the value of 'pn_person_name' to display the LOV selection value.
    Set the form field HTML to the elements attributes for the element of selection as list page

    onchange=$s('PN_PERSON_NAME',this.options[this.selectedIndex].text)
    

    CITY

    Published by: city has on January 7, 2010 17:22

  • How can I get the text of title styles to work?

    Hello
    How do you get the title of the text Styles to work in ss12 (mac)? I can get the character of formatting (e.g. bold, underlined) to work, but can't get the styles to work. I have tried by selecting the text or the text without success box. Here's a short screencast of what I see. Anyone know what I am doing wrong? Thank you

    AVO

    There is a known issue with text Styles in the workspace Expert only.

    The solution is updated 12 in 12.1 using Help Menu/updates of the project. Have you been there and done that?

    If this isn't the case, please cela and let us know the result.

    Thank you.

    RTA

  • How can I get the numeric value of a reference?

    I would like to get the numeric value of a reference.  If I look at any reference with a probe, I can see it has value, i.e. F280006B.  I would like to enter this value in a digital indicator for some troubleshooting I do. but running a Ref directly in a digital indicator introduced the code. Somehow the probe's work, it must be accessible. All advice out there?

    Type caster in U32.

    Lynn

  • How can I get the text of oracle database data?

    We would like to get the text data to oracle database instead of manually in illustrator, is there a way to do it? Thank you.

    I can not extract data from databases. There may be some plug-ins for automation, somewhere, but not in native mode.

    Mylenium

  • How can I get the instant value of waveform

    Hello

    I have a generator of fishing into a waveform display.  I would like to be able to acquire the instantaneous amplitude (I mean the instantaneous amplitude, which is now generated - you might think this is the last value generated thus) generator of fishing and be able to display on the front panel (I also use the value of doing other calculations).  I tried several approaches and can't seem to get an instantaneous amplitude out of my wave form permanently.

    Thanks for any ideas or suggestions.

    Hello!

    You are just looking for the value of the most recent (or last) of a sinusoidal signal generator?

    Or am I misunderstanding the question?

  • How can I get the text of the announcement of an image in the folder my pictures

    As many of us we all have photos stored in the folder my pictures.

    What I want to do is add text to some of the pictures.

    I'm on iPad 2 and I want to see the pictures on TV,.

    I used Pisca and you can add text to photos when Pisca is open, but when I come back to my pictures folders and select the photo, there is no text.

    How can I fix this.

    Thank you... Ian

    If you added the text to the face of a Photo in Picasa and saved the
    file... (Save under a new name), you should be able to see the
    text when you view the file.

    How to add text to your Photos using Picasa from Google 3
    http://www.ehow.com/how_4599330_text-photos-using-Googles-Picasa.html

  • How can I get the text to resize, rather than the entire web page?

    I used to be able to re-size the text on a webpage by typing Ctrl + +. Today, the entire Web page is resized, and when I move to another page, it comes back. (I see this especially in Facebook.). Why this change, and then I go back to having just the text resize?

    Make sure that you are not Firefox running in permanent private browsing mode.

    • https://support.Mozilla.com/kb/private+browsing
    • You enter private browsing mode, if you select: Tools > Options > privacy > History: Firefox will be: "don't forget the story ever.
    • To view the history settings and cookies, choose: Tools > Options > privacy, choose the setting Firefox will: use the custom settings for the story of
    • Uncheck the box: [] "Permanent private browsing Mode.

    You can use one of the following extensions to define a page zoom and the size of the default font on web pages:

  • How can I get the text on my screen smaller

    When I executed a qb64 program or restart the computer, the text on the screen is hugh and does not. What can I do?

    If the problem is only with qb64 take a look at some of them.

    POLICE
    http://qb64.NET/wiki/index.php?title=font

    http://www.Google.com.au/search?q=qb64+text+size&SourceID=IE7&RLS=com.Microsoft:-to THE: IE-address & ie = & oe = & redir_esc = & ei = 2AuUUJz7HcyjiAed44DgDg

    This is the Windows desktop that has the problem of text size?

  • How can I get the text tool to return to the horizontal

    The rectangle tool and the text tool place in a corner, that the text amounts to approximately 45 degrees and the rectangle tool arrives like a diamond, how to make their return on the horizontal.

    Edit > Preferences > General > ConstrainAngle: 0.

    JET

  • How can I get the text size to stay the same size?

    Is it possible to give the text a height fixed and any parameter, the user has their value of text size

    It will not change the size of the text?

    Well, it is possible but only if you use Flash or images instead of text.  But for people on ultra large screens with less than perfect vision, not being is not able to increase the size of the text is cruel.

    If your text is spilling containers or collide in the other elements on the page when the text size is increased, you are doing something fundamentally wrong. Read the Page layout 101

    http://apptools.com/examples/pagelayout101.php

    Nancy O.
    ALT-Web Design & Publishing
    Web | Graphics | Print | Media specialists
    www.Alt-Web.com/
    www.Twitter.com/ALTWEB

  • How can I get the actual size of an element in a photo?

    HI -.

    I was responsible for providing the actual measurements of the elements in the photographs. (There are 300 different photos, so I hope we find a pretty direct solution).

    My thought process was to open a photo, drag a bounding box around the document with the tool of the mark and read the precautions in the Info Panel.  But it does not work too well.


    In the sake of discussion, let's say I have a picture of a simple, plastic, badge/toy type 'happy meal '.  The insignia is actually 1 "squares.

    When I drag the box around it the Panel Info tells me that it measures W:3.37 "X H:3.37".

    ' ' I can't figure out how to get l: 1 "x H:1" to appear in the Info Panel.

    Dimensions of the photo show a massive 66 "x 44" at 72 dpi, and it seems that all 300 of these photos have the same dimensions, so one solution it should all.

    So the question is - using Photoshop, how to learn the physical measures of an element in a photo?

    I thought that this should be simple, but it turns out to be a real headache.

    Any expert TIA of entry.

    Josh

    You open the dialog box Image size (Ctrl Alt i or Cmd Opt i on a Mac).  Make sure that resampling is _not_ checked and the width is defined in inches.  Now do a little math:

    Size of your choice as 3.37 in. is indicated in your case, but you know that the actual size is 1 inch, multiply all that is in the field of the resolution of 3.37

    So if it's 72 resolution must be 242.64

    Make this change and OK it

    Drag another sample around the badge to check that the right size now.

    Don't forget: Re-sample must be disabled in the Image Size dialog box.

Maybe you are looking for