different if event type: property # children nodes == 1

Can anyone help with this? We call to a XML file using HTTPService returning an ArrayCollection collection by the default setting, which is incidentally the ResultEvent to a function;

< mx:HTTPService
ID = "someId".
' URL =' http://www.somedomain.com/someXML.xml '
useProxy = "false".
result = "someFunction (Event)" "
/ >

Let's say the XML code is;

< root >
Text < somenode > < / somenode >
Text < somenode > < / somenode >
Text < somenode > < / somenode >
< / root >

I would get the following tracks;

trace (Event.Result.root.SomeNode) / / [object Object], [object Object], [object Object]
trace (typeof (Event.Result.root.SomeNode)) / / object
trace (Event.Result.root.SomeNode.Length) / / 3

But if XML has been at some point;

< root >
Text < somenode > < / somenode >
< / root >

I would get the following tracks;

trace (Event.Result.root.SomeNode) / / [object Object]
trace (typeof (Event.Result.root.SomeNode)) / / object
trace (Event.Result.root.SomeNode.Length) / / null

Does anyone know why this is? Is Flex returns an array if > 1 and an object if == 1?

Thank you very much


Jamie

If you have only 1 object you WON'T get a table. If you still want a table use mx.utils.ArrayUtil.toArray)

Tags: Flex

Similar Questions

  • Shared the event Types Bundle + repository local event = error in the source table

    Hello

    I use a CEP beam for deployment of more types of events common to other Applications. In one application, I declare a type of event locally in the EPN

    i.e.
    <wlevs:event-type-repository>
              <wlevs:event-type type-name="someLocalEvent">
                   <wlevs:properties>
                        <wlevs:property name="someProp1" type="char" length="256" />
                        <wlevs:property name="someProp2" type="char" length="256" />
                   </wlevs:properties>
              </wlevs:event-type>
    <wlevs:event-type-repository>
    And declare it as type of event for the table:
    <wlevs:table id="table1" table-name="TABLE1" event-type="someLocalEvent" data-source="xeDs" />
    Now, I get this error:
    <Unknown event type [someLocalEvent] associated to external data source [table1]> 
    But if I put it in the shared repository event, it works as expected. What happens if the event type is not intended to share? Is it possible to add new types of events locally and he aggregate with shared events?

    Hello

    Can you confirm the "someLocalEvent" and "table1" are defined in the same application?
    It may be wise to ensure that the event type is defined before the table.

    Best regards

  • Is it allowed to use property value nodes?

    To remove the problems of spaghetti, I need to delete rows.

    Previously, I used local variables, but the values written to local variables could not be found in time.

    So I started using nodes of property value instead.

    Are safe as substitutes to the lines?

    CITA wrote:

    To remove the problems of spaghetti, I need to delete rows.

    LabVIEW includes wires, no lines. What do you mean by "need". WO is you force?

    The program work correctly?

    So you have beautiful, clean and narrow (son) 1 d elements and that you want to replace by larger elements 2D (local variables, the property value nodes) across face significantly more chart area?

    Because you now also remove the dependencies of hard data, you probably need to add sequence structures, to keep racing in failure conditions. This will clutter the diagram even more! Why do you think that is the solution to your problems?

    Basically, you replace spaghetti with something worse still, for example, the content of the dumpsters behind an Italian restaurant after a night occupied.

    CITA wrote:

    Previously, I used local variables, but the values written to local variables could not be found in time.

    What is your definition of "appropriate"? The use of knots of property and local variables does NOT accelerate your code. In fact it will make it slower. As mentioned, race conditions can indeed retrieve outdated values before they have been updated to the current values elsewhere, so "timely" could easily turn into "too early."

    If you have performance problems, you don't want to chop the code and become even more fragmented.

    CITA wrote:

    So I started using nodes of property value instead.

    They have exactly the same problem as local variable, but are more demanding on resources. What was your thought process, perhaps?

    CITA wrote:

    Are safe as substitutes to the lines?

    Yet once, LabVIEW didn't 'lines', except in the range of decoration. Local variables and property nodes make code significantly less safe, because they make them much more difficult to find and avoid race conditions. They also make debugging almost impossible.

    You can start from scratch with a design template set and a code well structured and hierarchical.

    If you still think there are too many wires, consider using clusters and berries. Dozens of scalar son can replace a single cluster thread. A multidimensional array can carry millions of data points in a single thread. You get the point!

    It is difficult to give advice more targeted without actually seeing some of your code. Feel free to join so we can give more specific comments. There are many examples here in the forum where we were able to copy the HTML code to 10% of the original size while making it faster and cleaner at the same time still to add additional features. All this without the need for local variables and property nodes.

  • Possible problem with the help of "property disable node.

    Hi, in Labview version 9.0 (32-bit), there seems to be a conflict between the info on the help of the Enum constant as applied to the property disable node. If I right-click on a control variable and select Create-> property-> disable node. If I then click on disable-> Help for disable, the aid lists allow the following allocation of the integer 0 - disable, 1 - disable and Greyed, 2. However, if I right-click on the generated Enum constant and select properties-> change the items, the order of citation is as follows; 0-enable, Disable-1, 2 - disable and Greyed. The assignment of the latter, it's how the Enum constant actually works. It seems that help information may be incorrect.

    Kind regards

    Pat

    I think that it is a good fishing.

    Can you post a snapshot of this bug?

  • Event type: Failure Audit

    I have a security failure Audit, what can be done?

    Event type: Failure Audit
    Event source: security
    Event category: monitoring detailed
    Event ID: 861
    Date: 11/05/2013
    Duration: 02:16:51
    User: Authority NT\SERVICE network
    Computer: RICHARD-33JHYZY
    Description:
    The Windows Firewall has detected an application to listen for incoming traffic.
     
    Name: -.
    Path: C:\WINDOWS\system32\svchost.exe
    Process ID: 1236
    User account: NETWORK SERVICE
    The user's domain: NT AUTHORITY
    Service: Yes
    RPC server: No.
    IP version: IPv4
    IP Protocol: UDP
    Port number: 49400
    License: no
    Informed user: No.

    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

    Hello

    Windows Firewall writes entries in the security log when a computer is started and when a program or system service attempts to listen for unsolicited incoming traffic but is blocked. These topics provide information about the State and the configuration of the Windows Firewall, including information about applications and ports that allow traffic through Windows Firewall. These entries also has information on ports and protocols a program or system service attempts to use for you can configure required exceptions in Windows Firewall. These security log entries are viewed with Event Viewer, which can filter event ID entries. Associated with the firewall event ID Windows are of the order of 848 through 861.

    Here is some information of the Windows Firewall to let us know that there are listening applications on the machine. We can view the logs and determine if it's something that we want to listen for incoming traffic on the machine or not.

    Here is some information of the Windows Firewall to let us know that there are listening applications on the machine. We can view the logs and determine if it's something that we want to listen for incoming traffic on the machine or not.

    For more information, please see the link.
    http://TechNet.Microsoft.com/en-us/library/cc737845.aspx#BKMK_858

    You can run an online scan to ensure that your computer is free of viruses and spyware.

    A quick way to search for viruses is to use an online, such as the Microsoft Safety Scanner scanner. The scanner is a free online service that helps you identify and remove viruses, clean your hard drive and generally to improve the performance of your computer.

    To run the Microsoft Safety Scanner:

    a. go to the page Web of the Microsoft Safety Scanner Download scan.

    http://www.Microsoft.com/security/scanner/en-us/default.aspx

    b. click on Download nowand then follow the instructions on the screen.

    Note: The data files that are infected must be cleaned only by removing the file completely, which means that there is a risk of data loss.

    It will be useful.

  • How to delete children nodes in Xml?

    Hello

    Say there is a set of xml nodes, and each node has a large number of child nodes. How eliminate us all the child nodes of a sudden... Y there, as in any method preset that is defined to do this... As far as I searched there was no method as node.clear () or node.removeall () as in .net!       I have seen node.removechild () but it asks for the name of the node that must be removed...

    Well, I have this requirement where I need to create an xml document. This happens by looping through a set of nodes in the 'for' loops and I needed to clear the children nodes present in each of them after the end of a particular inner loop. in any case I found a solution... I ve changed the way in which the nodes are created. So now I have not wory to this topic... But a clear() method would have been nice. This applies to all objects...

  • Different results of the property 'configManager.snmpSystem' of HostSystem executing vCenter and when run directly from host

    We are seeing different results for the property of the HostSystem 'configManager. snmpSystem' from vCenter and when you access from host.

    I think that the result should be no different. Is this another known issue or am I missing something here?

    To confirm this behavior, we tried to show the property to the host through the Explorer managed objects (MOB) and also by the VMware Remote CLI scripts. Join the results of the CLI script that was running on our test systems.

    Best regards

    Damodar

    Greetings, I just wanted you guys to know this problem that you are experiencing is a known problem with VMware and our engineers groups are working on it.    Sorry for the inconvenience to you.

  • Structures of the event, radio buttons and the property disable node

    Hello

    I have a very simple VI intended to simulate what I'm trying to accomplish in my program... in fact, when the 3rd option button is selected, I want the text box is disabled and grayed out.  Instead, the case of the event seems to perform the action on the * next * the iteration of the loop.  Can someone tell what I am doing wrong?

    Thank you!

    The terminal of the radio control is inside the case of the discipline concerned.

    (.. .or you can read the new value from the data event [NewVal] node instead if you need the Terminal also).

    Currently, it is read immediately and the value placed in the tunnel. When the event is triggered, the expired value is read from the tunnel.

    Once you pass the terminal in case of the event, it reads only after that the value has changed, and you get the current value.

    Also:

    • You also need an event for the button stop, otherwise the VI cannot be stopped easily.

    • You have the same property node in any of the structure of the case. Put it down after the structure of the case and one is enough.

    • Things that are different are inside the structure of the case.

    • You can combine the cases that are the same (not the default)

    • You can remove the case of timeout.

  • DRM validation to check the existence of nodes in a different hierarchy as a property value

    Hello gurus,

    I have two hierarchies, named A and B respectively. I need to create a validation for nodes in A hierarchy that checks the value of a property such that the node must have the property value equal to any node name in the hierarchy B.

    Means that the values for this particular property for the nodes in A hierarchy must exist as a node in the hierarchy B.

    It would be very grateful if someone can give an idea to achieve this.

    Hello

    Try this in a type formula validation-

    NodeInHier (PropValue (Custom.PropName), B)

    This returns false if the value of the property is not a node in the hierarchy B and True if it's.

    So, you will get a validation message whenever the property is loaded with a value that is not a node in the hierarchy of B.

    Thanks, let me know

    Denzz

  • Property DAQmx node do not return error whereas it should

    Overview:

    I do a configuration dialog box where the user can select which tasks available (from MAX) and the channels that it wants to use for the configuration. I have display them in a tree control with a background of different color for elements line depending on if they are used, not used, or the device is not connected.

    Question:

    In the attached extract you can see that I get all the tasks available and channels. If my device that is linked, the task is not connected to my PC at the start of the program and I press refresh I get an error. Well, this is what I want. However, if my device is not connected at the start of the program, and then I connect and press refresh, it rest-error. Same goes for the opposite--if I have the device connected at startup then unplug and press refresh, there is no error. It is a pain because I would be as the user should be able to connect if they forgot their device, then press r and have everything be updated accordingly. However, it seems that this is not possible, unless they stop and restart the program.

    These property nodes DAQmx search only a specific device and channels at startup, rather than at run time? Can anyone think of a work around? Also, can someone reproduce it so I can check that is not just "error of the programmer".

    I use a USB-6009 box to test.

    Hi Greg,.

    DAQmx control i/o tasks can be one of three things:

    1. A task object DAQmx. It is a collection of data structures representing the task, channels and task status. He lives in the process of LabVIEW (or whatever method is calling in the DAQmx API).
    2. The name of a task DAQmx persistent stored in MAX. It is just a string, but it corresponds to the settings stored in the database of the MAX.
    3. A string that does not match the #1 or #2.

    The DAQmx system > Tasks property returns the names of persistent stains from DAQmx (#2). When you one of these names of transfer to another node VI DAQmx or property, LabVIEW automatically creates a task of DAQmx (#1) with the same name and parameters object. Nothing more than a simple VI 'control IO' wired to DAQmx Read, this is an important and subtle distinction.

    Look at the auto-creation task is using NI Spy:

    The line that says DAQAutoCreateSessionWithLVContext("My6009Task",...) is when 'My6009Task' gets converted to the name of a task of DAQmx persistent (#2) to a real DAQmx task object (#1). If you click Refresh, you won't see LabVIEW Auto-creer 'My6009Task' again, because the task has already been created automatically. On the contrary, LabVIEW continues to directly use the 'My6009Task ':

    Therefore, your program only creates tasks at startup, then it reuses the same tasks for later updates.

    My suggestion was explicitly create and destroy jobs, so that operational life is under your control, not of LabVIEW. Here's how to do this using DAQmx create a task and DAQmx task clear:

    (I also replaced the structure of the event because he did not work inside an excerpt of VI, but make an extract added in any case broken wires. Simply remove control 'Panel' and broken wires, or copy the corresponding code in your original VI.)

    Creating the task checks if the device is present, but if you want to go further and check if the device is usable, you can temporarily reserve:

    This fails if another program or VI has the resources for the device HAVE reserved. Call DAQmx Start reserved implicitly HAVE the resources for the device, but it would also begin to acquire data, which are not necessary here.

    Brad

  • Record event blocks LabVIEW if the event Type is not selected.

    Hi I think that found a possible bug in LV2011 SP1.

    -Thread a property node of event Reg on the dynamic event record Terminal of a structure of event

    -Add a case to the event

    -Click on the dynamic event

    -LV accidents

    The source code included, try adding the unspecified event and look like LV breaks down.

    BR,

    / Roger

    Hi Roger,

    I doubt it. If you first select the event in the node property and then add the event to the event, you do not get an accident (I don't have at least let me know if you do). However, if boring and annoying is when it happens, there is a simple solution to the problem, which probably means that it will not be fixed on the previous version.

    Johan BR

  • Bucket of Fault ID 1001 95192508 event type = 5 Eventname = cancel shellbrowsercancel of the process of the guillotine

    It is clear to me, what is the source of the problem. At this point, I must determine if it is a problem of Windows, a laptop problem, a network problem or a problem of network storage.

    I have two laptops, one running Windows 7 32 bit and the other running Windows 7 64 bit.  I have a Cisco WRT160N V2's wireless/wired network device and a WD Mybook, peripheral of storage network model WD20000H2NC.  The storage is hard wired to the network device and laptops work wireless.

    When I try to backup or portable on my book I get errors at irregular intervals.  The same thing happens if I try to copy the files to your laptop to and from the storage device.  This is a timeout error and the only option I have given is to cancel the operation.  Here are the error messages.  There is also a file with more information if necessary.

    Computers laptops report following error messages:

    01/03/2012 11:08:56 Log_Name = Application log Source = Windows Error Reporting Event ID = 1001 = information level

    Fault bucket 95192508, type 5

    Name of the event: ShellBrowserCancel

    Answer: No available

    Cabin ID: 0

    Signature of the problem:

    P1: {E88DCCE0-B7B3-11D1-A9F0-00AA0060FA31}

    P2: network

    P3:

    P4:

    P5:

    P6:

    P7:

    P8:

    P9:

    P10:

    Attached files:

    C:\Users\Keith\AppData\Local\Temp\WER38FC.tmp.WERInternalMetadata.XML

    These files are available here:

    C:\Users\Keith\AppData\Local\Microsoft\Windows\WER\ReportArchive\AppHang_{E88DCCE0-B7B3-1_49781b1ff6b2689fefc8b0d0c7c0cb1c3292dd93_1c414413

    Symbol of the analysis:

    Recheck for solution: 0

    Report ID: 2f53af6d-642e-11e1-ab70-002219ede86e

    State: 0

    WD Mybook reports the following error message:

    01/03/2012 23:06:03 read_data: read failure for 4 bytes to the client 192.168.0.100. Error = connection reset by peer.

    Thanks for the responses, but they do not help me.  My problem was a network problem.  It turned out that the driver for the CARD was causing delays.  The problem was Dell didn't deliver a pilot updated but I found the Microsoft Update driver, installed and solved my problem.

    The real issue here is that these error messages are not documented by Microsoft.  Unless you want to get your credit card out and hundreds of dollars to the fork, they won't hear from me (I don't think I'm different than someone else).  This problem could be my laptop hardware, my hardware router, my device of NAS storage or software in any associated device.  I had a feeling, it was a network problem and start the troubleshooting of this area.  I noticed errors and delays.  Then, it was a process of divide and conquer.

    So does anyone have any ideas where Microsoft stores all these secret error codes?  It would have saved me fervent hours troubleshooting a simple issue.

    Hello

    Your question of Windows 7 is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the IT Pro TechNet public. Please post your question in the TechNet Windows 7 networking forum.

  • Get-VIEvent - how to export the event type?  error, warning, or info

    Hello

    I know that the Get-VIEvent command allows you to specify the type of events to get back... that is to say [-Types < EventCategory [>]

    but, I want to extract all the events and export them to a CSV file. I want one of the columns to be "EventCategory", which will be ERROR, WARNING, or INFO, but I can't seem to find it.  $_. GetType(). Name gets me the type of event, but not the category.  I know that I can have my script executed 3 times (each time specifying the - parameter Types) but I want to run only once.  Any ideas?

    Thank you!

    Jeff

    Hello, horningj-

    I worked on a few elements that should attract the event category.  The first selects a few properties, including a calculated property that gets the event category:

    ## works well if no events of type 'EventEx'## get the .Net View object of the EventManager (used for getting the event Category) $viewEventMgr = Get-View EventManager ## get some VIEvents, select a few properties, including a calculated property for EventCategory Get-VIEvent | Select FullFormattedMessage, CreatedTime, @{n="EventCategory"; e={$strThisEventType = $_.GetType().Name; ($viewEventMgr.Description.EventInfo | ?{$_.Key -eq $strThisEventType}).Category}}
    

    It becomes VIEvents (the last 100, because I did not specify the parameter - MaxSamples) and returns the properties of data.  The calculated "EventCategory" property uses the type of the VIEvent object to search for in the collection of items EventDescriptionEventDetail in ownership eventInfo found in .net object View for the EventManager.  He then grabs the 'Category' of the corresponding element of EventDescriptionEventDetail property.

    Works fine unless you have any VIEvents type "EventEx" - then, this 'research' in EventDescriptionEventDetail collection method fails, because there is more than one element of this type (there are 91 of them at the moment).

    This led me to the next bit.  It is similar to the previous method, but it handles EventEx events too:

    ## get the .Net View object of the EventManager (used for getting the event Category)$viewEventMgr = Get-View EventManager
    
    ## get some VIEvents (the last 100, as "-MaxSamples" is not specified) Get-VIEvent | %{    ## put the pipeline varible into another variable; get its type    $oThisEvent = $_; $strThisEventType = $_.GetType().Name    ## if this event is of type "EventEx"    if ($strThisEventType -eq "EventEx") {        $strEventTypeId = $oThisEvent.EventTypeId;        ## get the EventInfo item (of type EventDescriptionEventDetail) whose "FullFormat" property begins with the EventTypeId of the VIEvent at hand, and get its "Category" property        $strCategory = ($viewEventMgr.Description.EventInfo | ?{$strRegexPattern = "^$strEventTypeId\|.*"; $_.FullFormat -match $strRegexPattern}).Category    } ## end if     ## else, can just grab the EventInfo item whose "Key" is the same as this event's type    else {$strCategory = ($viewEventMgr.Description.EventInfo | ?{$_.Key -eq $strThisEventType}).Category}    ## add a NoteProperty "EventCategory" to this event    $oThisEvent | Add-Member -MemberType NoteProperty -Name EventCategory -Value $strCategory -PassThru} | Select FullFormattedMessage, CreatedTime, EventCategory
    

    It seems that the EventTypeId of the event returned by Get-VIEvent is included in the first part of the property FullFormat of elements EventDescriptionEventDetail with EventEx key, separate from the rest of the value by a vertical pipe.  Thus, the EventTypeId of the VIEvents can be used to make a match on EventEx of events .net EventManager View object types to get the event 'category' (info, warning, error, user).

    You can, of course, change the Select statements to choice/choose the pieces of information you want to export and then export to a file of data as you please.

    How does do for you?

    * The message has been edited by mattboren on April 5, 2011 - added line at the beginning of the second piece of code '$viewEventMgr = Get-view event Manager.  It was already in the first room and assumes that the user has run the two parts in the same session, but added for completeness.

  • Show/hide the events filter within a node structure of the event

    Hi all

    I am trying to find out, as the title suggests, how tie events to filter within a structure of visible event because it seems that the default setting for the event structure is not not to show it.

    Thank you.

    To display the filter nodes, you must select a filtering event. These are the ones that end with an exclamation mark and have a red glyph.

    Compare 'Touch down' vs 'Touch down?' for example.

  • 200077 error has occurred to the property trigger Node DAQmx DAQmx Start Trigger (analog Edge.vi:1-&gt; CRT with trigger

    I created a program that reads analog data and draw a waveform, but I need to stop the program when the voltage drops to a certain tension. When I tried the analog edge trigger it showed the error in the subject:

    Reason: The requested value is not supported for this property value. The value of the property may be invalid because it is in conflict with another property.

    Property: Trig startup type

    Requested value: analog edge

    You can select: Digital Edge, no

    I understand what the analog trigger is not available for my DAQmx version, without again getting equiptment, can I use a trigger to stop reading data at a specific voltage?

    How to start and stop a similar read digital triggering?

    Thanks in advance!

    Ah! Well, then the Boolean value of status would be connected to the State of the thread of the unbundled error, Boolean stop to the stop button and the Boolean value to the right would be the stop for loop itself... so something like this (see image).  This is an excerpt from LabVIEW 2014, so it can not easily fall in your version, but I hope it's clear enough on how you can wire it to the top.

Maybe you are looking for