Using OnAfterChange of a parent node - InfoPath Dev
in

InfoPath Dev

Using OnAfterChange of a parent node

Last post 05-08-2006 04:23 PM by Greg Collins. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 05-06-2006 02:46 AM

    • Sash
    • Not Ranked
    • Joined on 03-30-2006
    • Posts 15

    Using OnAfterChange of a parent node

    I have a parent node which has multiple child items. One of child items is used as "IsChanged" indicator. So, when any child is changed, "IsChanged" field would be changed to true. One can solve this task by specifying the same function in "OnAfterChange" handler of every child items besides "IsChanged" field.
    But I want to use "OnAfterChange" handler of the parent node. So I need to check child node's name to prevent loop handler call. I suppose it must be something like this:
    if (eventObj.Source.nodeName != "IsChanged")
    { // SetIsChange() }.
    But eventObj.Source.nodeName returns "#text" string and I can't use that.
    I think there is must be a simple way for such kind of task.
  • 05-08-2006 04:23 PM In reply to

    Re: Using OnAfterChange of a parent node

    You might need to be checking eventObj.Site instead of .Source.

    When you get the #text, you can do a selectSingleNode("..") to get to the actual node.
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.