Using xml with datagrid - problem with element attributes ...

Hi,
When i try to set the datafield in a DataGridColumn to an
attribute, ex.: @isPermaLink - the value is not printet in the
datagrid?
My code:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
creationComplete="feedRequest.send()" layout="absolute"
backgroundGradientColors="[#808080, #c0c0c0]">
<mx:HTTPService id="feedRequest" url="
http://kristianthrane.dk/feed"
useProxy="false" />
<mx:Panel x="10" y="10" width="475"
title="{feedRequest.lastResult.rss.channel.title}" id="panel1"
height="531">
<mx:DataGrid id="dgPosts" x="20" y="20" width="100%"
dataProvider="{feedRequest.lastResult.rss.channel.item.guid}"
height="100%">
<mx:columns>
<mx:DataGridColumn headerText="Lande"
dataField="@isPermaLink" />
</mx:columns>
</mx:DataGrid>
</mx:Panel>
</mx:Application>
I hope someone has a tip ....
Best regards,
Kristian Thrane

Hi Kristian,
I'm with some problems, a bit alike yours, but from what I've seen, I would recomend you to see type errors...does the atribute "isPermaLink" inside the "guid" tag, or "title" tag?
My problem is the opposite of what you have... I can place tag attributes in a datagrid, but I can't put in the same Datagrid the tag value. But I have no choice since the feed comes from a public webservice.
My feed is:
<search ver="3.0">
<loc id="BRXX1094" type="1">Aveiro, Brazil</loc>
<loc id="POXX0006" type="1">Aveiro, Portugal</loc>
</search>
<mx:DataGrid x="10" y="53" width="365" id="dgLocation" dataProvider="{wSearch.lastResult.loc}" itemClick="callService(event);">
<mx:columns>
       <mx:DataGridColumn headerText="Localidade" dataField="loc"/> //This doesn't work
       <mx:DataGridColumn headerText="Referência" dataField="@id"/> //This does
</mx:columns>
</mx:DataGrid>
Hope it give you any ideas.
Beste regards
Leonel

Similar Messages

  • Using techtool pro found problem with "volume structure".  What to do?

    Using techtool pro found problem with "volume structure" and this was not fixed by TECHTOOL PRO.  What do you suggest I do?

    I would boot from my gray install disk (put the disk in the drive and restart holding down the C key). Then choose Utilities and run Disk Utility and click Repair Disk. As always, be sure you have a back up of your data first.

  • Is anyone using iPhoto having a problem with the slide show using shatter where it does not let you put a title over photo?

    Is anyone using iPhoto having a problem with the slide show using shatter where it does not let you put a title over photo? It use to work but it no longer lets you place a title over the opening photo.

    Is your signature still current?(iPhoto '08, OS X Mountain Lion (10.8.4))    I can confirm this for iPhoto '11; Shatter will only show the text slide title between the slides. Ken Burns and Classic theme can still be set to overlay the caption and title directly over the slides.

  • MacBook will not start. I have restarted with original CD. I have used Utilities and "no problem" with hard drive. I have reset PRAM. I have tried safe boot. Nothing is work. Gray screen with Apple logo and rotating wheel. Thanks for any suggestions!

    MacBook will not start. I have restarted with original CD. I have used Utilities and "no problem" with hard drive. I have reset PRAM. I have tried safe boot. Nothing is work. Gray screen with Apple logo and rotating wheel. Thanks for any suggestions!

    Snow Leopard is a Mac OS X version. You say that it's the version you have in your Mac (10.6.8). Do a back up of your files, format the hard drive (using Disk Utility) and reinstall again

  • HT1349 Hi all,I have just purchased new iphone but have difficulty in completing the itunes download with message : problem with Windows installer package. A program run as part of the setup did not finish as expected.

    Hi all,I have just purchased new iphone but have difficulty in completing the itunes download with message : problem with Windows installer package. A program run as part of the setup did not finish as expected.
    Would appreciate help...its driving me up the wall!!

    Perhaps let's first try updating your Apple Software Update.
    Launch Apple Software Update ("Start > All Programs > Apple Software Update"). Does it launch and offer you a newer version of Apple Software Update? If so, choose to install just that update to Apple Software Update. (Deselect any other software offered at the same time.)
    If the ASU update goes through okay, try another iTunes install. Does it go through without the errors this time?

  • Why can't I receive help with my problems with Match? A service I pay for??

    Why can't I receive help with my problems with Match? A service I pay for??

    Hi,
    THis is a user help forum. If you tell us what your issues are, maybe someone can offer advice. Otherwise, read this https://www.apple.com/uk/support/itunes/itunes-match/
    JIm

  • [XML/XPATH] jaxen : problem with "parent" function

    Hello
    I have a problem with jaxen, when I try to use the XPath function parent :
    When I try this :
    import ...
    DocumentNavigator dn=new DocumentNavigator();
    try {
    objet=dn.getDocument("TESTXPath.xml");
    apath=dn.parseXPath("/Entry/Resultats/step/Population/individu/*");
    result=apath.evaluate(objet);
    System.out.println(result);
    apath=dn.parseXPath("/Entry/Resultats/step/Population/parent::*");
    result=apath.evaluate(objet); // ---> exception
    System.out.println(result);
    catch(Exception e) {
    e.printStackTrace();
    The first result is well displayed, but just before the second, I catch this exception:
    Exception in thread "main" java.lang.NoSuchMethodError: org.jdom.Element.getParent()Lorg/jdom/Element; at org.jaxen.jdom.DocumentNavigator.getParentAxisIterator(DocumentNavigator.java: 252)
    at org.jaxen.expr.iter.IterableParentAxis.iterator(IterableParentAxis.java:82)
    at org.jaxen.expr.DefaultStep.axisIterator(DefaultStep.java:139)
    at org.jaxen.expr.DefaultLocationPath.evaluate(DefaultLocationPath.java:188)
    at org.jaxen.expr.DefaultAbsoluteLocationPath.evaluate(DefaultAbsoluteLocationPat h.java:126)
    at org.jaxen.expr.DefaultXPathExpr.asList(DefaultXPathExpr.java:107)
    at org.jaxen.BaseXPath.selectNodesForContext(BaseXPath.java:716)
    at org.jaxen.BaseXPath.selectNodes(BaseXPath.java:239)
    at org.jaxen.BaseXPath.evaluate(BaseXPath.java:196)
    at MainTestClass.main(MainTestClass.java:85)
    However, the first query works good and I received list so I'm quite sure that it's not a problem of unfindable elements.
    Finaly I can't be syccessful to use XPath parent function:
    Either I catch an exception, or it returns nothing or empty list
    Isn't the XPath syntax correct in my second expression ?
    Can we do :
    /.../.../parent::* ? ou //individu/parent::* ?

    Thanks
    I think so, but.
    In fact I don't think I'm using different version of JDOM.
    I use eclipse with jdk1.4.2.
    I have downloaded JDOM-b10 and the only things I have done is to extract zip archive and to add all .jar files of the jdom directory in my library path.
    Do this is the only version of JDOM I'm using.
    All works perfectly excepted only the XPath parent method. It's strange that the other methods work fine.
    I don't knnow how to solve this problem ! so if you can help me I be very thankfull.

  • XML to model, problem with arrays

    I've imported XML data from the server using the HTTPService
    and using the service to convert the XML to a model. So below is my
    XML:
    <details>
    <field label="" value=""/>
    <field label="" value=""/>
    </details>
    I have to deal with the situation where if there is only one
    field, details.field is not Array otherwise it is but the following
    condition doesn't seem to work:
    if (details.field is Array)
    but I can still iterate through the elements as if it was an
    array. So if details.field is not an Array, what is it? Or more
    generally how do I find out the class of a variable?

    The default resultFormat of HTTPService is object. This
    causes your xml to be converted to a nested object structure. This
    is rarely desirable. And it causes the issue you are seeing,
    because the convertor can't differentiate between an array with a
    single element and an object..
    Instead, set resultFormat="e4x". then, in the result handler,
    do:
    var xmlResult:XML = XML(event.result);
    trace(xmlResult.toXMLString);
    The expression, xmlResult.field, will return an XMLList. You
    can iterate over that using a normal for loop with bracketed index
    style references.
    There are also solutions to your issue if you want to stay
    with resultFormat="object". They involve, as you expect, examining
    the the result object for its contained datatype. You can probably
    find an example in the archives.
    But switch to XML, and drop Model. Look up e4x xml if you
    want more erasons.
    Tracy

  • Custom DataGrid problems with Comboboxes

    I am using a custom datagrid with comboboxes and
    colorpickers. I found this code on the web and adapted it to work
    with my code. The only problem is that if you pull down a combobox
    and then click somewhere outside without selecting anything, it
    seems to erase the data in the dataprovider arraycollection and so
    'value' in the set data method becomes null.

    This is not a bug if I understand you properly. I believe most people would wish anything which is obtained via the tv to be backed up, which is why the content is transferred. If you want it to remain available on the tv you will need to sync it back to it.

  • Why did my calendar view suddenly change? Using iOS 7.1 and I've been using this version for a few weeks with no problem with my calendar. Now the view has changed and I can't view a list mode without seeing the month too

    Why did my calendar view suddenly change in iCal? I've been using ios7 fôr a few weeks now with no problems. Suddenly, without any updates or anything, the calendar view changed and I can no longer view it as a list without having the entire month seen as well.

    Hey Gattypyle,
    Thanks for the question. You simply need to go back to Day/Week view, then tap the list-view icon once more.
    Calendar at a glance - iPhone
    http://help.apple.com/iphone/7/#/iph3d110f84
    View a list of events. In month view, tap to see a day’s events. In day view, Tap the to view a list of events.
    Thanks,
    Matt M.

  • FCP XML to Flint - Problems with Time Remap

    My Flint artist and I have had some problems with the XML Export and Import that we cannot figure out. The XMLs from FCP sequences that have variable speed Time Remaps applied show up on the Flint with those particular clips with the wrong in/out points in both the source and record times. Also, the speed ramp info doesn't show up properly.
    We have followed the Flint manual to a T on importing correctly. Anyone encountered this or know a solution? Especially why it's throwing off the in points. It screws the whole timeline when that happens.
    Thanks in advance.

    The TimerEvent target is a flash.utils.Timer object and does
    not contain a reference to your lblTimeUntil label.
    Recode
    trace("Seconds Left" + evt.target.lblTimeUntil.text);
    to
    trace("Seconds Left" + lblTimeUntil.text);
    and you will not blow up anymore.
    This code will display the count up till refresh.
    public function onTick(evt:TimerEvent):void {
    var minuteTimer:Timer = evt.target as Timer;
    lblTimeUntil.text = minuteTimer.currentCount.toString();

  • How to use bugzilla to report problems with OVM

    Hello,
    I want to use bugzilla.oracle.com to post some problems with OVM 3.1.1. After registration process (follow the link received in the confirmed email)
    I try to login, but it seems that it is not possible to login. Normally the login name should be displayed at the top of the window (I know it from bugzilla.redhat.com), but at Oracle I arrived again at https://bugzilla.oracle.com/bugzilla/index.cgi after login.
    So in general it seems that it is not possbile to use bugzilla.oracle.com. All searches I tried display no results.
    Has anyone some experience in this issue?
    Edited by: pdbrmont on Aug 26, 2012 2:10 PM
    Edited by: pdbrmont on Aug 26, 2012 2:12 PM

    SRW.RUN_REPORT('report=ports paraform=no'|| :port));
    in above syntax what is the error
    please reply
    You have two closing parenthesis that's why.-------------------------------------------------------------------------------
    Where to put the code:
    normally... You will put the code in before report trigger.
    to define the parameter...
    srw.run_report('parameter1=param_value');
    insert ----> parameter1=param_value <-- somewhere in the comand line, there should be no problem with that.

  • Excessive data use is there a problem with OS4?

    I posted this problem on the network section with no response, so I thought I would try here (inspite of the previous posters comments!Perhaps someone can help me?
    Has anyone had problems with excessive data use since switching to the new iphone and 0s4? My data use (i'm with o2) has increased over 4 times in the first month! In the 18 months with the 3g i used an average of about 150mb a month, the the most ever being 176mb. In the first two weeks of using the new phone I had racked up 450mb! I have tried the following - no push emailing, switching off notifications, closing down all the apps on the multi-task!etc. I have even taken to switching off 3G and data. O2 have given me a new sim card when I talked to them about the problem. Whilst the problem has been reduced with these measure it hasn't gone altogether and i am not getting the use or enjoyment out of my phone as I did with the 3g(i'm to worried to use many apps incase the data use goes throught the roof again) . Since I bought the phone I have added a few new apps and have played with the phone a little more but there is no possible explanition for the the massive increase in data use (it tended to happen over night - but i'm told thats when the data use information is sometimes collected). My 02 billing and data monitoring on the phone seem to be inline so I think it must be a problem with os4 or the phone.I know i'm not alone with this problem and as others start to monitor the use of data with the new limited data use coming on stream I think this could become as big as the reception issue for apple. Help anyone?

    This thread might help you.
    http://discussions.apple.com/thread.jspa?messageID=11963434&#11963434

  • Ipad air using iOS 8.1.1 refuses to mirror or use airplay. Same problem with iPhone 5c.

    I use an iPad Air to deliver keynote presentations via Airplay using Apple TV.  Did this a few months ago no problems. Tried yesterday to deliver a presentation iPad refuses to mirror/airplay. Both are on same wifi - signal is good. Select tick box for airplay (mirroring tab is selected) but nothing happens! After barely a few seconds tick box jumps and selection is removed. Tried hundreds of times same result. Have tried powering down and re-staring all the equipment no joy. Restarted router no joy. Interesting to note have same problem with iPhone 5C (and 4S which is still on IOS 7). Any help gratefully received.  Thank you.

    By accident solved my own problem. Apple TV and iPad were working on the same wifi network, close to the router, with a strong signal. That signal is boosted to the far corners of the house via a network based on the Airport Extreme & Express units. Perversely Airplay & mirroring only works when picking up that weaker wifi signal via a different channel! Now to see if a similar solution works for the iPhones.

  • Toplink with mysql: problem with blob size

    I'm using toplink with a mysql database. I want to store some data in a blob.
    In mysql there exist different sizes of blobs (in my case I need a mediumblob).
    But if I create the scheme for the database with jpa/toplink it alway creates only a column with type blob.
    I can explicitly tell the database to use a mediumblob by this:
    @Column("MEDIUMBLOB")
    But by doing this I limit my program to mysql of course, as this data type is not known to other databases.
    Does anybody know a more elegant solution to setting the blob size?
    for example with hibernate it can be done this way:
    @Column(length=666666)

    Looks like you are using JPA, and in JPA you would set the columnDefinition to the type that you want, e.g.
    @Lob
    @Column(name="BLOBCOL", columnDefinition="MEDIUMBLOB")
    byte[] myByteData;
    As you mentioned, this does introduce a dependency on the database. However, you can always either put the Column metadata in XML, or override it with something else later in XML.
    The length attribute was intended and specified for use with Strings but I guess there is no reason why it couldn't be used for BLOBs as well (please enter an enhancement request, or submit the code to add the feature to EclipseLink). Be aware, though, that doing so at this stage is going to be introducing a dependency on the provider to support a non-spec defined feature.

Maybe you are looking for

  • HP Mediasmart DVD - Blu Ray Problem

    Hi I have a HP Pavilion dv6t-2300. Last month I had a problem trying to play some blurays with the media smart. It was like the player tries to rplay the disk but after a while nothing happened, so I tried to update the software but it displayed an e

  • Using nautilus as a file manager in xfce

    I decided to use nautilus as file manager in XFCE because I'm having some issues with thunar (slow mounting of removable drives etc.). I've assigned a keyboard shortcut to launch this command "nautilus --browser --no-desktop". The first time I run it

  • What is use of t code SHD0.

    Hello There , I wanted to know the use of the t-code SHD0.  Can we do recording of screen steps via SHD0 ? If yes , how are we are gng to do it . Warm Regards, Abhishek .

  • How to handle home directory change in /etc/passwd.pacnew?

    Hey, the recent update of the filesystem package had a change in /etc/passwd that I am not sure how to handle: daemon:x:2:2:daemon:/sbin:/usr/bin/nologin was changed to daemon:x:2:2:daemon:/:/usr/bin/nologin As you can see, the home directory of daem

  • IPhoto View will not open from thumbnail

    I have version 9.2.3 of iPhoto running on an iMac (mid 2011). iPhoto has been running without any problems. I do not use it for editing and have not added any new phographs. In the past week I have simply looked at photographs without altering them i