Event "OnAfterChange" with signatures - InfoPath Dev
in

InfoPath Dev

Event "OnAfterChange" with signatures

Last post 06-25-2008 07:12 AM by Shiva. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 06-13-2008 02:27 AM

    Event "OnAfterChange" with signatures

    Hello,

    i tried to change the content of a textbox if someone deletes the signature of the form. Therefore I wrote the following code in the "OnAfterChange" event of the signature.

    Public Sub signaturen2_OnAfterChange(ByVal e As DataDOMEvent)

    If (e.IsUndoRedo) Then
       Return
    End If

    ' Change status ----
    Dim navddlFormStatus As IXMLDOMNode = thisXDocument.DOM.selectSingleNode("/my:meineFelder/my:ddlFormStatus")
    navddlFormStatus.text = "Entwurf"

    End Sub

    Unfortunately the textbox content don´t change .... I can step through the code without any error but the textbox still has it´s "old" content...

    Does anyone know what I have to code to change the content of a textbox after I have deleted the signature of the form.

    Thank you very much for any help.

    Karsten

    Karsten
  • 06-25-2008 07:12 AM In reply to

    • Shiva
    • Top 25 Contributor
    • Joined on 04-15-2005
    • India
    • Posts 694

    Re: Event "OnAfterChange" with signatures

    Hello, Can you try once as below code, 

    'Declare global variable as

    Dim changedValue = false If (e.IsUndoRedo || changedValue) Then
       Return
    End If

    'Change status ----

    changedValue = true
    Dim navddlFormStatus As IXMLDOMNode = e.Source
    navddlFormStatus.text = "Entwurf"
    changedValue = false

    End Sub

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