Getting Node vale - InfoPath Dev
in

InfoPath Dev

Getting Node vale

Last post 02-14-2006 11:11 PM by Agni Jonnalagadda. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 02-14-2006 09:52 AM

    Getting Node vale

    I have a Text Box in my form. In the code I have the function (Event handler) OnAfterChange (or OnBeforeChange).

    What is the different between
    e.Sourc.text
    and
    e.NewValue
    If there is any difference When to use each case?
  • 02-14-2006 11:22 AM In reply to

    Hi,
    e.Newvalue is a read-only property that returns a string value indicating the value of an XML Document Object Model (DOM) node that is being updated or inserted during a data validation event.

    e.source is a read-only property that returns a reference to the XML Document Object Model (DOM) where the data validation event is occurring.

    I think you can understand difference between e.source.text and e.NewValue seeing above ,

    Thanks.



    K.Ramana Reddy
    K.Ramana Reddy / http://www.ggktech.com
    India.
  • 02-14-2006 10:46 PM In reply to

    I stiil dont know when to use each of them, pleas tell me
    and what is the difference between e.Site.text????
  • 02-14-2006 11:11 PM In reply to

    OnAfterChange event is called when ever a nodes value or nodes attribute value changes.
    e.Site will always have a reference to the node, where as e.Source will have reference to the node or attribute whose value has changed.

    e.NewValue is one of the ways to get the new value.

    Agni
    INFOPATHdev India
Page 1 of 1 (4 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.