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

Tags: Flex

Similar Questions

  • How to access the parent mc data

    I load an xml file in the parent movieclip.

    How can I access this variable in its child movieclip?

    Is there a way to define a public property in flash as in flex?

    One way is to target the parent, with something to the effect of: MovieClip (parent) .that_variable

  • How to access the parent container?

    I have the following code

    newButton = new Button();
    newButton.label = 'Submit ';
    newButton.id = "btn_" + arrPerformance.getItemAt (x) .fld_question_number;
    newButton.addEventListener ("click", saveAnswer);

    newRichTextEditor = new RichTextEditor();
    newRichTextEditor.id = "answer_" + arrPerformance.getItemAt (x) .fld_question_number;
    newVBox.addChild (newRichTextEditor);
    newRichTextEditor.toolbar.addChild (newButton);

    As you can see, I added a button to the toolbar of the rich text box control.

    The "saveAnswer" event listener saves the content of the rich on the db text control.

    But I can't understand how to reference the container of rich text.
    If I use event.target.parent it gives me only the toolbar!

    Also note that the form has several of them, thats why he is in the action script.
    So I need to be able to access the rich text box 'textarea' and id, so I can go to the SWC.

    Ken

    Thank you for that.

    I missed the controlbar, so I was a 'parent' call for short.

    Ken

  • How to upgrade the parent table and child by updating the parent table

    I have a parent EMPLOYEE table that includes columns (sysid, serviceno, employeename...) sysid is the primary key, serviceno is the Unique key and I have DEPENDENT child table includes columns (sysid, employee_sysid, name, date of birth...) there still SYSID is a primary key for the table of dependants, employee_sysid is a foreign key in the EMPLOYEE table.

    Now I want to change SYSID (with the help of the sequence) in the EMPLOYEE table that they want an update in the table of people dependent

    Note: I have 10000 records in the EMPLOYEE table as I have 5 more children tables that need to update new SYSID.

    Please help me

    first disable FOREIGN KEY constraints.
    You can update Parent and child record with the help of the trigger.
    Here I give you an examlpe... It can help u.

    create a parent (id number primary key, name varchar2 (100)) table
    /
    create table child_1 (primary key id, p_id number number, date of birth, date)
    CONSTRAINT FK_id FOREIGN KEY (p_id) REFERENCES parent (ID))
    /
    create table child_2 (key primary id, p_id2, addr varchar2 number number (1000))
    CONSTRAINT FK_id2 FOREIGN KEY (p_id2) REFERENCES parent (ID))
    /

    Insert some test data for the parent tables and children.

    change the constraint to disable child_2 table FK_id2
    /
    change the constraint to disable child_1 table FK_id2
    /

    CREATE OR REPLACE TRIGGER delete_child
    BEFORE parent UPDATE ON
    FOR EACH LINE
    BEGIN
    UPDATE CHILD_1
    P_ID =:NEW.ID SET
    WHERE P_ID =:OLD.ID;
    UPDATE CHILD_2
    SET = P_ID2: NEW.ID
    WHERE P_ID2 =:OLD.ID;
    END;
    /

    then Upadte parent table primary key col and check the children tables.
    do enable constraints...

  • How to access the Parent control page

    I wanted to get rid of Match.com on POPs on my emails so he put a parent control, that I should not have done, whatever it is I do it pop up,.

    My age is 72 and buy without children, of course, I do not have it cannot find the page or program so I can access

    See if this helps:

    http://Windows.Microsoft.com/en-us/Windows-Vista/set-up-parental-controls

    Set up Parental controls

  • 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

  • How to rehabilitate the Parental control?

    During the installation process of Windows 7, I made a mistake: I chose the domain Mode (when should I choose the user Home Mode) there are three butterflies.

    When I try to run games with side as an adult, I have can´t access.  It appears messages like 'Parental controls blocked this game' or 'you don't have permission to run the game.  Check the Parental control in the game Explorer window.

    I have no Parental controls in Control Panel.  How to rehabilitate the Parental control?  or how to rehabilitate the Home user in Windows 7 with Parental Control Mode?

    Note: I am the rights owner and the administrator of my computer.

    TododeAzul,
    Click Start > computer (right click) > properties > change
    This will give you the ability to change from a domain to a workgroup.  After that, change is effective, it should open the Parental controls for you. Mike - Engineer Support Microsoft Answers
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Multiple column trees: how to access the data in columns? There is a bug?

    Hello

    I have a strange problem. I use tree column multi like this:

    In this case, I have the tree column and two other custom columns.

    Now, how to access the data in the SECOND column?

    We can write all the data in a row thanks the EditElementTree:AddElement:ChildText, because it is an array of strings.

    However, when I want to read the data, I use ActiveCelltring, meaning that a SINGLE string and not a string table oO (so I only have the value of the first column and never others.

    So, I can do what I want? Is this a bug?

    Thank you very much

    R0b1n

    OK, I have the solution.

    We play with the ActiveColumnNumber attribute, to read the values of different...

    I left the message, it may be useful for later someboby

    R0b1n

  • How to access the functions on my main SWF of my external SWF?

    Hello someone can help me how to access the functions on my main SWF file of a loaded SWF file?

    Forget using parent. Send an event to the place.

    btn3.addEventListener(MouseEvent.CLICK, btnClickHandler);
    function btnClickHandler(e:MouseEvent):void {
         dispatchEvent(new Event("categoryClick");
    }
    

    In your main swf file, listen for the complete event on the Loader.contentLoaderInfo.

    In the complete event handler, add an event listener for the categoryClick (or you have chosen to call it) on the loaded swf file.

    // event handler triggered when external swf is loaded
    function loaderCompleteHandler(event:Event) {
        (event.currentTarget.content as MovieClip).addEventListener("categoryClick", categoryClickHandler);
    }
    
    function categoryClickHandler(event:Event):void {
        trace("category button clicked in loaded swf");
    }
    

    And remember, whenever you use root or parent, God kills a kitten.

  • How to access the info in my iCloud account

    How to access the info in my iCloud account?

    You can access much of the iCloud.com on a computer or through specific applications on your mobile device such as contacts, calendars, iCloud Drive, Photos. What exactly you were looking for and what type of device.

  • How to access the bios?

    I am trying to install a new OS, how to access the bios on my HP Pavilian dv8?

    Hello:

    You should be able to access the BIOS by pressing the F10 key as soon as you see the HP welcome screen.

    Paul

  • How to access the BIOS on a Pavilion Elite e9237c with mouse and keyboard wireless?

    I have a desktop computer Pavilion Elite e9237 with a wireless keyboard and mouse. I tried to access the BIOS by pressing F10 at startup with no luck, and I can't access any of the other menus for the start-up eiither. I don't have a PS/2 port on my computer, so I can't get a wired keyboard and mouse. Does anyone know how to access the BIOS with this configuration?

    I bought a USB keyboard and he answered in the same way... No bios access. I then studied why it did not work and discovered that it was the way in which he has been connected to the computer. I had initially plugged into a USB hub when he was not working and I moved it directly into a USB port and it works! I plugged my keyboard wireless directly into the USB port and it works too! Thanks for your help... I wouldn't have thought of it if it wasn't for to recommend you the USB keyboard.

  • How to access the firefox on laptop Office keeping all the features?

    How to access the firefox on laptop Office keeping all tabs and bookmarks?

    Hello

    You may be able to do this in Firefox Sync configuration on both devices. Please see for detailed instructions.

  • Qosmio G30-126 - how to access the bios!

    I have a laptop Qosmio G30-126 and I don't know the key to enter the bios to change real estate for the HARD drive or something... then how to access the bios? What is the key for the bios?

    Hello

    Try pressing the F2 key by turning on the device.
    The Toshiba notebooks supported the ESC and then F1 button
    If these two options are possible

  • Re: How to access the BIOS on Satellite Pro A120

    Can someone tell me how to access the BIOS on my SAT Pro A120?

    Hello

    You must press ESC and then F1 key immediately after the laptop has been powered!

    The laptop seems to be to use the Toshiba BIOS and ESC key should be the right one!

    Good bye

Maybe you are looking for