Mx_internal_uid problem with advanced datagrid

I have a XML structure like this:
<Projekti ...attributes>
<Tehtava ....attributes />
<Tehtava ...attributes />
</Projekti>
<Projekti...>
...etc
And I'm populating advanced datagrid with this hierarchial
data, so I can get a tree view in datagrid where there is Projekti
-nodes and inside them is the Tehtava-nodes.
Problem:
When I bind the XML, and the hierarchialdata (that is created
from the XML) flex automatically adds
<mx_internal_uid>a324235351514......</mx_internal_uid>
-nodes inside of the Projekti-nodes. And this causes empty folders
added in a tree view when user clicks them.
Is there a simple way to:
a) prevent thos uid-nodes being created?
b) filter thos <mx_internal_uid>-nodes out from the
dataprovider of the advanced datagrid?

I know this is way after-the-fact, but I just ran into this problem myself today. I found that it generated the mx_internal_uid if the node I was selecting was an XMLList instead of XML. A simple cast fixed the problem.
P.S. "And this causes empty folders added into a tree view when user clicks on them." makes perfect sense when you're using the XML inside a <mx:Tree>. As soon as you select the item (whether by clicking or programmatically), you get extra nodes in the tree.

Similar Messages

  • Problem with Advanced Routing in WRT320N

    Hi, everybody.
    First of all, sorry for my poor English.
    I've a problem with Advanced Routing in router. My provider using routing and it looks like that:
    route add -p 172.16.2.0 mask 255.255.255.0 10.1.0.2
    route add -p 172.16.5.0 mask 255.255.255.0 10.1.0.2
    route add -p 10.0.0.0 mask 255.0.0.0 10.1.0.2
    Everything is working well in XP (or other OS), but then I try to setup a Routing in router:
    1.
    2.
    I'm realy tired to flashing and reflashing between 1.00.02 and 1.00.03, changing browsers, and hard reseting.
    Anybody'll gimme a shot trick to my tired brains?
    Solved!
    Go to Solution.

    1. Yes.
    2. netstat:
    C:\Users\dan>netstat -rn
    ===========================================================================
    Список интерфейсов
    31...........................inet
    12...00 40 f4 76 95 bd ......VIA Rhine III Fast Ethernet адаптер
    11...00 1d 92 2c 23 02 ......Realtek RTL8168B/8111B Family PCI-E Gigabit Ethern
    et NIC (NDIS 6.20)
    1...........................Software Loopback Interface 1
    15...00 00 00 00 00 00 00 e0 Адаптер Microsoft 6to4 #2
    21...00 00 00 00 00 00 00 e0 Адаптер Microsoft ISATAP #2
    13...00 00 00 00 00 00 00 e0 Teredo Tunneling Pseudo-Interface
    14...00 00 00 00 00 00 00 e0 Адаптер Microsoft 6to4
    19...00 00 00 00 00 00 00 e0 Адаптер Microsoft ISATAP #3
    18...00 00 00 00 00 00 00 e0 Адаптер Microsoft ISATAP
    16...00 00 00 00 00 00 00 e0 Адаптер Microsoft 6to4 #3
    20...00 00 00 00 00 00 00 e0 Адаптер Microsoft ISATAP #4
    ===========================================================================
    IPv4 таблица маршрута
    ===========================================================================
    Активные маршруты:
    Сетевой адрес Маска сети Адрес шлюза Интерфейс Метрика
    0.0.0.0 0.0.0.0 10.1.0.2 10.1.3.42 4501
    0.0.0.0 0.0.0.0 On-link 91.203.178.26 21
    10.0.0.0 255.0.0.0 10.1.0.2 10.1.3.42 4246
    10.1.0.0 255.255.0.0 On-link 10.1.3.42 4501
    10.1.3.42 255.255.255.255 On-link 10.1.3.42 4501
    10.1.255.255 255.255.255.255 On-link 10.1.3.42 4501
    91.203.178.26 255.255.255.255 On-link 91.203.178.26 276
    127.0.0.0 255.0.0.0 On-link 127.0.0.1 4531
    127.0.0.1 255.255.255.255 On-link 127.0.0.1 4531
    127.255.255.255 255.255.255.255 On-link 127.0.0.1 4531
    172.16.2.0 255.255.255.0 10.1.0.2 10.1.3.42 4246
    172.16.2.10 255.255.255.255 10.1.0.2 10.1.3.42 4246
    172.16.5.0 255.255.255.0 10.1.0.2 10.1.3.42 4246
    224.0.0.0 240.0.0.0 On-link 127.0.0.1 4531
    224.0.0.0 240.0.0.0 On-link 10.1.3.42 4502
    224.0.0.0 240.0.0.0 On-link 91.203.178.26 21
    255.255.255.255 255.255.255.255 On-link 127.0.0.1 4531
    255.255.255.255 255.255.255.255 On-link 10.1.3.42 4501
    255.255.255.255 255.255.255.255 On-link 91.203.178.26 276
    ===========================================================================
    Постоянные маршруты:
    Сетевой адрес Маска Адрес шлюза Метрика
    172.16.2.0 255.255.255.0 10.1.0.2 1
    172.16.5.0 255.255.255.0 10.1.0.2 1
    10.0.0.0 255.0.0.0 10.1.0.2 1
    ===========================================================================
    IPv6 таблица маршрута
    ===========================================================================
    Активные маршруты:
    Метрика Сетевой адрес Шлюз
    16 1125 ::/0 2002:c058:6301::c058:6301
    11 276 ::/0 fe80::f88b:9485:52cd:caaf
    1 306 ::1/128 On-link
    13 58 2001::/32 On-link
    13 306 2001:0:4137:9e50:2846:3ccb:a434:4de5/128
    On-link
    16 1025 2002::/16 On-link
    16 281 2002:5bcb:b21a::5bcb:b21a/128
    On-link
    11 276 fe80::/64 On-link
    13 306 fe80::/64 On-link
    13 306 fe80::2846:3ccb:a434:4de5/128
    On-link
    11 276 fe80::b9aa:b87b:89ea:fcdd/128
    On-link
    1 306 ff00::/8 On-link
    13 306 ff00::/8 On-link
    11 276 ff00::/8 On-link
    ===========================================================================
    Постоянные маршруты:
    Отсутствует
    C:\Users\dan>
     2. ipconfig:
    C:\Users\dan>ipconfig /all
    Настройка протокола IP для Windows
    Имя компьютера . . . . . . . . . : druh
    Основной DNS-суффикс . . . . . . :
    Тип узла. . . . . . . . . . . . . : Гибридный
    IP-маршрутизация включена . . . . : Нет
    WINS-прокси включен . . . . . . . : Нет
    Порядок просмотра суффиксов DNS . : mannet.lan
    Адаптер PPP inet:
    DNS-суффикс подключения . . . . . :
    Описание. . . . . . . . . . . . . : inet
    Физический адрес. . . . . . . . . :
    DHCP включен. . . . . . . . . . . : Нет
    Автонастройка включена. . . . . . : Да
    IPv4-адрес. . . . . . . . . . . . : 91.203.178.26(Основной)
    Маска подсети . . . . . . . . . . : 255.255.255.255
    Основной шлюз. . . . . . . . . : 0.0.0.0
    DNS-серверы. . . . . . . . . . . : 91.190.68.2
    91.203.177.4
    NetBios через TCP/IP. . . . . . . . : Включен
    Ethernet adapter lanHOME:
    Состояние среды. . . . . . . . : Среда передачи недоступна.
    DNS-суффикс подключения . . . . . :
    Описание. . . . . . . . . . . . . : VIA Rhine III Fast Ethernet адаптер
    Физический адрес. . . . . . . . . : 00-40-F4-76-95-BD
    DHCP включен. . . . . . . . . . . : Да
    Автонастройка включена. . . . . . : Да
    Ethernet adapter 1000LAN:
    DNS-суффикс подключения . . . . . : mannet.lan
    Описание. . . . . . . . . . . . . : Realtek RTL8168B/8111B Family PCI-E Gigab
    it Ethernet NIC (NDIS 6.20)
    Физический адрес. . . . . . . . . : 00-1D-92-2C-23-02
    DHCP включен. . . . . . . . . . . : Да
    Автонастройка включена. . . . . . : Да
    Локальный IPv6-адрес канала . . . : fe80::b9aa:b87b:89ea:fcdd%11(Основной)
    IPv4-адрес. . . . . . . . . . . . : 10.1.3.42(Основной)
    Маска подсети . . . . . . . . . . : 255.255.0.0
    Аренда получена. . . . . . . . . . : 17 октября 2009 г. 17:37:10
    Срок аренды истекает. . . . . . . . . . : 18 октября 2009 г. 17:37:09
    Основной шлюз. . . . . . . . . : fe80::f88b:9485:52cd:caaf%11
    10.1.0.2
    DHCP-сервер. . . . . . . . . . . : 172.16.2.2
    IAID DHCPv6 . . . . . . . . . . . : 234888594
    DUID клиента DHCPv6 . . . . . . . : 00-01-00-01-12-43-2B-71-00-1D-92-2C-23-02
    DNS-серверы. . . . . . . . . . . : 172.16.2.2
    Основной WINS-сервер. . . . . . . : 172.16.2.2
    NetBios через TCP/IP. . . . . . . . : Включен
    Туннельный адаптер Reusable Microsoft 6To4 Adapter:
    Состояние среды. . . . . . . . : Среда передачи недоступна.
    DNS-суффикс подключения . . . . . :
    Описание. . . . . . . . . . . . . : Адаптер Microsoft 6to4 #2
    Физический адрес. . . . . . . . . : 00-00-00-00-00-00-00-E0
    DHCP включен. . . . . . . . . . . : Нет
    Автонастройка включена. . . . . . : Да
    Туннельный адаптер Reusable ISATAP Interface {543B8BBE-84D2-471B-B8FB-F73600B4A8
    2B}:
    Состояние среды. . . . . . . . : Среда передачи недоступна.
    DNS-суффикс подключения . . . . . :
    Описание. . . . . . . . . . . . . : Адаптер Microsoft ISATAP #2
    Физический адрес. . . . . . . . . : 00-00-00-00-00-00-00-E0
    DHCP включен. . . . . . . . . . . : Нет
    Автонастройка включена. . . . . . : Да
    Туннельный адаптер Подключение по локальной сети* 5:
    DNS-суффикс подключения . . . . . :
    Описание. . . . . . . . . . . . . : Teredo Tunneling Pseudo-Interface
    Физический адрес. . . . . . . . . : 00-00-00-00-00-00-00-E0
    DHCP включен. . . . . . . . . . . : Нет
    Автонастройка включена. . . . . . : Да
    IPv6-адрес. . . . . . . . . . . . : 2001:0:4137:9e50:2846:3ccb:a434:4de5(Осно
    вной)
    Локальный IPv6-адрес канала . . . : fe80::2846:3ccb:a434:4de5%13(Основной)
    Основной шлюз. . . . . . . . . :
    NetBios через TCP/IP. . . . . . . . : Отключен
    Туннельный адаптер 6TO4 Adapter:
    Состояние среды. . . . . . . . : Среда передачи недоступна.
    DNS-суффикс подключения . . . . . :
    Описание. . . . . . . . . . . . . : Адаптер Microsoft 6to4
    Физический адрес. . . . . . . . . : 00-00-00-00-00-00-00-E0
    DHCP включен. . . . . . . . . . . : Нет
    Автонастройка включена. . . . . . : Да
    Туннельный адаптер isatap.mannet.lan:
    Состояние среды. . . . . . . . : Среда передачи недоступна.
    DNS-суффикс подключения . . . . . : mannet.lan
    Описание. . . . . . . . . . . . . : Адаптер Microsoft ISATAP #3
    Физический адрес. . . . . . . . . : 00-00-00-00-00-00-00-E0
    DHCP включен. . . . . . . . . . . : Нет
    Автонастройка включена. . . . . . : Да
    Туннельный адаптер isatap.{AE6B314F-94BA-478F-8751-74DEB5AB1888}:
    Состояние среды. . . . . . . . : Среда передачи недоступна.
    DNS-суффикс подключения . . . . . :
    Описание. . . . . . . . . . . . . : Адаптер Microsoft ISATAP
    Физический адрес. . . . . . . . . : 00-00-00-00-00-00-00-E0
    DHCP включен. . . . . . . . . . . : Нет
    Автонастройка включена. . . . . . : Да
    Туннельный адаптер Подключение по локальной сети*:
    DNS-суффикс подключения . . . . . :
    Описание. . . . . . . . . . . . . : Адаптер Microsoft 6to4 #3
    Физический адрес. . . . . . . . . : 00-00-00-00-00-00-00-E0
    DHCP включен. . . . . . . . . . . : Нет
    Автонастройка включена. . . . . . : Да
    IPv6-адрес. . . . . . . . . . . . : 2002:5bcb:b21a::5bcb:b21a(Основной)
    Основной шлюз. . . . . . . . . : 2002:c058:6301::c058:6301
    DNS-серверы. . . . . . . . . . . : 91.190.68.2
    91.203.177.4
    NetBios через TCP/IP. . . . . . . . : Отключен
    Туннельный адаптер isatap.{8B513FFA-4355-406F-B999-1701EE42D5B9}:
    Состояние среды. . . . . . . . : Среда передачи недоступна.
    DNS-суффикс подключения . . . . . :
    Описание. . . . . . . . . . . . . : Адаптер Microsoft ISATAP #4
    Физический адрес. . . . . . . . . : 00-00-00-00-00-00-00-E0
    DHCP включен. . . . . . . . . . . : Нет
    Автонастройка включена. . . . . . : Да
    3. 
    4. without privider's cable:
    4. with provider's cable:

  • Problem with Advanced Healing Brush on LR 5

    I am experiencing a problem with the Advanced Healing Brush  on LR 5. Using, say, the Heal option, when I have marked the area I want to heal, and then move to the source I want to copy, I cannot get the colour of my selected source point to remove the heal spot.
    I have looked at a number of tutorials and working comments on using this function, and I am pretty sure that I am following the correct procedure for using the Advanced Healing Brush. I have the same problem when I try to use the Cloning option - the colour just does not fill the area I want to fix.
    Is there possibly a bug hanging around?  Can anyone give me any possible solutions to my problem?  I so want to try out this terrific new feature in LR 5.

    Thanks for your response
    I attach 2 screenshots
    Screenshot1  - See the orange tip of a feather behind the kid's head - I want to remove this with the heal option in the Spot Removal tool
    Screenshot2 - I have demarcated a piece of the feather with the spot tool and have chosen the source color of the wooden bench
    I was expecting the demarcated area to have adopted the chosen source color, but it hasn't, by a long shot. I've tried evry which way to get it to work, but no luck.
    I even tried using the Clone option, choosing the same source color and painting over the orange feather, but that also didn't work.
    I look forward to your comments
    Sorry - forgot to add the images
    Message was edited by: mandav1023

  • Problems with Advanced Queueing...

    Hi,
    Has anyone used AQ through OCI?
    We are having problems with OCISubscriptionRegister() the error reported back is 'two task conversions - overflow integer'. The code we are running is straight out of the published demos...
    Please HELP!!
    Thanks,
    Darryl Schallig

    There are discussion on this in the Advanced Queueing forum.

  • Problem with advanced threshold in OCR - Vision Assistant 2013

    I'm facing a problem with Vision Assistant 2013
    The OCR charter set file advanced threshold data is always fixed at 255 upper value and optimize for speed is checked.
    I edit them and reopen the file but no change.
    anyone facing the same problem ?
    Attachments:
    Untitled.png ‏7 KB

    Hi Paolo,
    Thanks for your answer. Yeah I have seen the examples and I´m familiar with the use of the OCR VI. I have use it a couple of time already with good results.
    My problem came last week. While I was trying to run OCR on my image in my LabVIEW code. The algorithm did not detected what I was expecting.
    I decided to run the test on the vision assistant and it worked perfectly. I assumed my code had different parameters, so I decided to generate a VI from the vision asssistant and run it on LabVIEW for the same image to verify.
    I did not change anything on the VI (all parameters are the same), and used the same image. Surprinsingly the results are different between the assistant and the VI. That strikes me a lot!
    I´ll start a new thread as you recommended. Hope to find the solution soon. Thanks  
    Regards,
    Esteban

  • Efficiently retrieve MANY records with Advanced Datagrid?

    Hi all,
    I've encountered the following issue:
    I have a database with more then 120.000 records, that I want to show with an advanced datagrid.
    It's grouped by 2 ID's, thus showing the results a group within a group. This works perfect!
    Only: it takes a long time before it shows the results, probably because it's downloading all the records at once (with the getAll() function).
    Is there a way to use advanced datagrid more efficiently? Like: first download the two columns that are used to define the groups, and only retrieve data that's visible once you click the group? (In this case, the 2nd group within the 1st group)
    This would greatly increase the loading-time of the whole application.
    Or should I take an other aproach to this application, like, using a tree-component, a simple datagrid, writing alternative update & retrieve functions in AS3 & PHP?
    Thanks!

    Hi Sam, thanks for your help!
    I'm not sure though how to create the returned datastructure?
    Example:
    Product_id
    productname
    category_a
    category_b
    1
    Toy A
    boy
    0-3
    2
    Toy B
    girl
    0-3
    3
    Toy C
    girl
    3-6
    4
    Toy D
    boy
    6-9
    5
    Toy E
    girl
    3-6
    6
    Toy F
    boy
    0-2
    7
    Toy G
    boy
    6-9
    Grouping by [category_a] and [category_b], I would like to get the following in the Advanced Datagrid, but paginated:
    Product_ID
    Productname
    boy
    0-2
    6
    Toy F
    0-3
    1
    Toy A
    6-9
    4
    Toy D
    7
    Toy G
    girl
    0-3
    2
    Toy B
    3-6
    3
    Toy C
    5
    Toy E
    In my PHP-service, I would create the following query:
         public function getProducts_paged($startIndex, $numItems) {
              $stmt = mysqli_prepare($this->connection, "SELECT product_id, category_a, category_b, productname FROM $this->tablename GROUP BY category_a, category_b LIMIT(?,?)");
              $this->throwExceptionOnError();
              mysqli_bind_param($stmt, 'ii', $startIndex, $numItems);
              mysqli_stmt_execute($stmt);
              $this->throwExceptionOnError();
              $rows = array();
              mysqli_stmt_bind_result($stmt, $row->product_id, $row->category_a, $row->category_a, $row->productname);
             while (mysqli_stmt_fetch($stmt)) {
               $rows[] = $row;
               $row = new stdClass();
               mysqli_stmt_bind_result($stmt, $row->product_id, $row->category_a, $row->category_a, $row->productname);
              mysqli_stmt_free_result($stmt);         
              mysqli_close($this->connection);
              return $rows;
    This will give me the right structure, Right?
    Now:
    - How to tell the Advanced Datagrid which 2 groups to apply?

  • Problem with advanced data Grid

    Hi,
    I am new to flex. I am designing the UI using flex. I need
    to that know tht using advanced datagrid when i click the add
    button the content in my textbox need to be displayed in my ADG,
    and also i need to know when i click the add button i should show
    as well as i need that ADG to display in a tree format in left side
    of the screen and my form will need to be in right side. Can anyone
    help me out. Any Code for it.
    Regards
    Muthu

    Take a look here :
    http://livedocs.adobe.com/flex/3/html/help.html?content=Part2_DevApps_1.html
    Laurent,

  • Problem with advanced sidechaining in logic x

    probably best i explain what i'm trying to do first!
    I'm bussing 4 different audio tracks to  bus 1 (for example) which has eq / compressor etc and outputs to the master and also to bus 2
    bus 2 has a drastic high cut on it but has no output, it is intended to be used as a silent sidechain effector
    bus 3 has a compressor set to sidechain to bus 2, but instead of sidechaining to the high cut signal, it uses the dry one.
    i used to route the same thing the same way on logic 8 and 9 but on 10 i have encountered this problem, is there a setting i need to change or is it a problem with the softwar that i'll have to add extra busses to route around?
    thanks!

    When you send (or change the output) of a channel to a bus, an Aux is created automatically in the mixer for you.  You can create more Auxes manually and set their inputs to the same bus # if you need to.  For example you could create a submix of 4 gtrs by setting the output to bus 1.  In the mixer you will now have an Aux with bus 1 as its input.  You could create 2 more Auxes with bus 1 as their input.  So you have 3 channels all with the exact same submix of gtrs.  Now you could do some parallel processing:  1 Aux has distortion, 1 Aux is clean, etc.  Say you wanted to filter the crap out of the gtr submix and use it for a sidechain on something else, you take your third Aux and put your crazy filter on it, and change its output to Bus 2.  A new Aux is created, but you can either delete it or change its output to none.  Whatever you want to listen to the crazy filter in its sidechain listens to bus 2, where that filter has been sent (from the 3rd aux above).
    I'm bussing 4 different audio tracks to  bus 1 (for example) which has eq / compressor etc and outputs to the master and also to bus 2
    Does the AUX output to Master & send to Bus 2?  or is it bad grammar (not criticizing) and you mean the 4 audio tracks also go to Bus 2?
    bus 2 (You mean an AUX with bus 2 as its input) has a drastic high cut on it but has no output, it is intended to be used as a silent sidechain effector
    OK so far
    bus 3 has a compressor set to sidechain to bus 2, but instead of sidechaining to the high cut signal, it uses the dry one.
    I think what you want is to set the output of the AUX with the high cut to an open bus, and use that as the sidechain for whatever is on what "bus 3" is.
    Maybe think of it like this:  busses are pathways, they can even be potential pathways.  If you send something to a bus it's like you plugged in a cord to a jack.  The other end of that cord might not be plugged into anything.  Or it might be plugged into the sidechain of a compressor, or an AUX channel.  In Logic's virtual world, that cord is like a Y jack with, like, 250 ends on it.  If you plug one of those ends into a filter, and one into an AUX channel, and one into a sidechain, the sidechain isn't going to hear what came from the filter.   You need another cord (bus) to come out of the filter and then into the sidechain.
    If you want to be 'clean and conservative' with your busses (and who doesn't in this economy?), you could skip the intermediate bus/channel.  Unless the compression is critical to the silent sidechain signal, you could skip sending the compressed signal to bus 2.  Change the input of the drastic high cut channel to Bus 1, and set its output to Bus 2,  Make sure no AUXes are there with Bus 2 as their input.

  • Problem with 'Advance' entry

    Griends,
    I am getting this strange problem. Does it happens with you also? Any solution..
    The problem is as follows;
    1. Transaction PR05
    2. Enter only advance and save it with status Request Recorded/To Be Settled.
    3. OPen the trip again, Simulate, the advance is visiable.
    4. Click the 'Advance'  tab.
    5. As soon as you open the advance tab, the advance amount is grayed out (disabled)
    6. Simulate now and the advance is shown as 0.
    You see, only clickig the 'Advance' tab cause the adance to be ignored.
    Regars!

    Thanks Raynad,
    The poblem is solved now. Actually the problem was due the field 'Settlement amount' in Advance tab, which I made hidden. Upon clicking the 'Advance' tab, the system was moving 0 to this field. When I made this field visiable (still no input allowed), it started getting the corect valuse. I still feel it's a bug. Even if the field is not visible, it should contain coect value.
    Regads...

  • Problem with Advanced queueing

    Hi,
    I'm having the folowing problem:
    I'm trying to implement the Monitor feature from within VB. I used the sample code posted in: re:Rollback segments and odbc and VC++
    I created the class with the method NotifyMe, just as described.
    When I try to start the monitor, I get the following VB-error:
    Runtime error: -2147213295 (80042011)
    Method 'MonitorStart' of object '_IOraAQ' failed.
    I can't seem to find the problem, am I doing something wrong?
    B.t.w., normal sending and receiving works fine.
    We are using oracle database 8.1.7.0.0
    CLient: 9.0.1.0.1
    OO4O: 9.0.1.4.3
    Thanks in advance for your help!
    Kind regards,
    Leon

    Did you grant execute on DBMS_AQJMS and DBMS_AQIN?

  • Problem with advanced action and a counter.

    Hi!
    I got a problem on a project with a counter and advanced action.
    I got 7 words (3 wrongs and 4 rights), each associate with captions that shows on click
    When the students had clicked on the 4 rights (and their captions are shown), the 3 wrongs captions are shown.
    variable:
    v_count
    on wrong words:
    simple action: on click, show captions
    on good ones:
    advanced conditional actions:
    1) IF 1=1, THEN show > caption and v_count = v_count + 1
    2) IF v_count=4, THEN show> all captions of the wrongs
    The problem is: (Only when seen in browser) when I click on 3 rights (and not 4), all captions are shown! I have tried to put v_count=5, but then nothing happens.
    Really, I'm lost! Have an idea of what could cause that problem?
    Thanks
    Laurie-Anne

    You already posted this question, thought I asked you if I could have access to your file, because with this explanation only it is a bit difficult to answer. But I cannot find the thread anymore...
    Maybe I'm wrong, or you did not see this answer?
    Lilybiri

  • Problem with selectedItem (DataGrid) when dataProvider is XML

    I have a problem.
    I want to load my DataGrid with data from XML returned via
    Struts. I have set up a test environment for the time being and I
    can LOAD the data into the grid just fine, but when I want to refer
    to it after it is loaded (with selectedItem) I am having all sorts
    of problems. Namely, I can't access any of the data in
    selectedItem. I can't even seem to make it show up in a string...
    the only way I can access values is individually using :
    selectedItem["@attribute"] which is NOT what I want to do...
    can anyone tell me what I am doing wrong? Is there no way I
    can convert the xml to an object (or is that even the problem)?
    Here is code to show exactly what I mean:
    <?xml version="1.0"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="vertical" creationComplete="doDummySearch()">
    <mx:Script>
    <![CDATA[
    import mx.utils.ArrayUtil;
    import mx.controls.Alert;
    //this dummyXML is in place of the response from the server
    for now...
    private var dummyXML:XML =
    <root>
    <dummyData priority='0' dealerCode='A00-1023'
    phoneNo='0343442323' />
    <dummyData priority='1' dealerCode='B00-1033'
    phoneNo='0343442323' />
    <dummyData priority='0' dealerCode='DER-0666'
    phoneNo='0343442323' />
    </root>
    private function doDummySearch():void {
    search_dg.dataProvider = dummyXML.children();
    private function select():void {
    var s:String = "";
    s+=search_dg.selectedItem["@dealerCode"]+"\n";
    s+="all data: \n";
    for each (var entry:* in search_dg.selectedItem) {
    s+=entry+"\n";
    s+="^-why is this blank?\n";
    s+="selectedItem.toString():
    "+search_dg.selectedItem.toString()+" <-why is this blank?";
    mx.controls.Alert.show(s, "selected data:");
    ]]>
    </mx:Script>
    <mx:DataGrid id="search_dg" />
    <mx:Button label="select item" click="select()" />
    </mx:Application>

    Or even better, you can use the new E4X support in Flex, to
    directly read from the XML
    See this example
    main.xml
    <?xml version="1.0"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    xmlns="*" layout="vertical" >
    <mx:Script>
    <![CDATA[
    private function select():void {
    var s:String = "";
    s+="Symbol = "+search_dg.selectedItem.Symbol+"\n";
    s+="Quantity = "+search_dg.selectedItem.Quantity+"\n";
    s+="Price = "+search_dg.selectedItem.Price+"\n";
    s+="Value = "+search_dg.selectedItem.Value+"\n";
    mx.controls.Alert.show(s, "selected data:");
    ]]>
    </mx:Script>
    <mx:XML format="e4x" id="portfolioModel"
    source="portfolio.xml" />
    <mx:DataGrid id="search_dg"
    dataProvider="{portfolioModel.security}">
    <mx:columns>
    <mx:DataGridColumn dataField="Symbol"
    headerText="Symbol"/>
    <mx:DataGridColumn dataField="Quantity"
    headerText="Quantity"/>
    <mx:DataGridColumn dataField="Price"
    headerText="Price"/>
    <mx:DataGridColumn dataField="Value"
    headerText="Value"/>
    </mx:columns>
    </mx:DataGrid>
    <mx:Button label="select item" click="select()" />
    </mx:Application>
    portfolio.xml
    <portfolio>
    <security>
    <Symbol>MSFT</Symbol>
    <Quantity>10000</Quantity>
    <Price>20.56</Price>
    <Value>1</Value>
    </security>
    <security>
    <Symbol>IBM</Symbol>
    <Quantity>3000</Quantity>
    <Price>80.21</Price>
    <Value>1</Value>
    </security>
    <security>
    <Symbol>ADBE</Symbol>
    <Quantity>10000</Quantity>
    <Price>32.56</Price>
    <Value>1</Value>
    </security>
    <security>
    <Symbol>GOOG</Symbol>
    <Quantity>3000</Quantity>
    <Price>380.21</Price>
    <Value>1</Value>
    </security>
    </portfolio>

  • Problems with Advanced Address Book Search

    Recently was running TB 24.2 under Ubuntu 12.4. All ran great, except could not search the Notes field in my address book. Got help from this forum and installed MoreFunctionsForAddressBook. This made the Notes field available for searching in the Quick Search window and in the Advanced Address Book Search dialog box (Edit > Search Addresses). Problem solved!
    Now have upgraded to TB 31.2.0. Quick Search window still works fine, including searching the Notes field. However, the Notes field is no longer listed in the Advanced Address Book Search, AND the Advanced Address Book Search does not work at all. I get zero results for any search on any field.
    Is the Advanced Address Book Search broken in TB 31.2.0? If not, any ideas on what I might have set up wrong to keep it from functioning? Any diagnostic I could run?
    Also, does MoreFunctionsForAddressBook no longer add fields to the Advanced search?
    I have worked on this for hours, with no luck. Suggestions are welcomed.

    Toad-Hall ---- Thanks very much!!! I completely missed the new version of the plug-in. I upgraded TB to v 31 and wasn't bright enough to think about the add-on compatibility.
    With MoreFunctions 0.7.1, my Advanced Search (Edit > Search Addresses) now has a lengthy list of search-field choices, including the Notes field. This is a life saver for me, since that's where all my keywords are.
    You really bailed me out on this one! Many thanks.

  • Problem with Advanced Video FX

    Yeah.. I bought a new webcam today seems to be Creative Live!..
    and I installed everything and registered my webcam on the online thing,
    but still when I try to run the advanced video fx, it says no supported devices connected..
    any idea whats wrong?
    Nico

    I'm seeing the same problem. Bought a Creative Webcam Live! camera yesterday. Tried it on two separate machines and got the exact same error. "No Supported Devices Connected".
    Is there any way around this?
    Thanks in advance,
    Tony

  • Problem with Advanced reporting

    Ok, so there is an inherent flaw in the way grouping is done in Advanced Reporting - it should not be automatic
    Say for example, I have three reports A, B, and C, and what I want is the report generated by (A U B) - C.
    Now, when I select minus, it autogroups to A U (B - C). Sure, you can ungroup, but you can't group as above(unless I'm missing something).
    Now, say for example you have a record x which is in report A, B and C.
    because x is in A, it will be in the second report(the autogrouping one). But it will not be in the first report, which is what I want. These two reports then, are NOT equivalent.

    Thomas,
    The grouping is not flawed, just particular about the order of clicks.
    With your three reports all ungrouped A u B u C click the first set operator. This gives you a grouping between A and B. (A u B) u C
    Now you can change the second set operator to minus and the first one back to union if you changed it to something else. The result is (A u B) - C
    Mike L

Maybe you are looking for

  • How to setup a second router?

    Does anyone know if there are instructtions somewhere that will tell me how to setup a second router in front of my Actiontec MI424? I am trying to use a Sonos music system through my computer and it has been recommended to me that I try to use a dif

  • How to make table tobe full screen

    Hi, all my pages have the same html structure, exception the content is different. some the pages with a lot contents, the page display nicely. but for page has only couple lines, the table is displayed on very top of the page with the copyright stuf

  • Looooooooong delay in generating output

    I am trying to generate primary output (flash), and it seems like it just isnt doing anything at all. The message window in the bottom has said "Finished compiling FlashHelp in 2 sec(s)" for about half an hour now. It was generating very quickly yest

  • How to find a control with code

    I could find the control with the Test Builder, but now, what I want is achieve that by code. How could I define what the property to search? Any help would be appreciated.

  • Fan going crazy every time we run anything  - system very slow. Connected?

    System has slowed down dramatically of late. Now fan is going crazy. Are they connected? Any way to speed things up ?