Add Signature link disappeared after removed signature programmatically - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Add Signature link disappeared after removed signature programmatically

Last post 04-10-2012 02:10 AM by Willy Loman. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 04-04-2012 09:32 AM

    Add Signature link disappeared after removed signature programmatically

    Using the following code I can remove a signature. 

    Dim
    xnDoc As XPathNavigator = MainDataSource.CreateNavigator()

    If (Me.Signed) Then 'unsign it

            Dim xSignedSection As XPathNavigator = xnDoc.SelectSingleNode("my:meineFelder/my:signaturen1/my:signaturen2", Me.NamespaceManager)

            If (xSignedSection.HasChildren) Then

                    xSignedSection.MoveToChild(XPathNodeType.Element)

                    xSignedSection.DeleteSelf()

                    Me.CurrentView.ForceUpdate()

            End If

    End If

     

    But after this procedure the link "click here to...." under the regarding group disappears.

    ForceUpdate() shows no effect. 

    If open the menu 'Tools / Digital Signatures'  or 'File / Save' the link appears in the form again.

     

    Does anybody has a clue?

  • 04-09-2012 06:20 AM In reply to

    Re: Add Signature link disappeared after removed signature programmatically

    Hi Willy Loman,

    I don't think the signatures were meant to be removed in that way. You will invalidate the form and that may be the reason why it's broken.

    Patrick Halstead
    Project Manager at Qdabra
  • 04-10-2012 02:10 AM In reply to

    Re: Add Signature link disappeared after removed signature programmatically

    Any idea what is the appropriate way to remove a signature programatically?

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