Remove digital signatures programmatically - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Remove digital signatures programmatically

Last post 08-28-2015 10:44 AM by iAmMortos. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 01-08-2011 07:30 PM

    • josera
    • Not Ranked
      Male
    • Joined on 07-28-2010
    • Sacheon (South Korea)
    • Posts 9

    Remove digital signatures programmatically

    Hi, 

    According to the documentation, the way to remove the digital signatures is this (in VBScript):

    dim a

    set a = XDocument.SignedDataBlocks("BuyerSection").Signatures(0).SignatureBlockXmlNode

    a.parentNode.removeChild(a)

    set a = nothing

    It executes without any warning nor message, but on the screen the data is still locked. Then I select manually Tools/Digital signatures... from the menu and it does not show any digital signature so I close the Digital signatures window and then the data is unlocked on the screen. I don't know why this is so. Do I have to execute some kind of refresh command? I couldn't find anything else in the documentation and I tried all the commands that have anything to do with digital signatures but there is no way to complete the unlock on the screen automatically.

    Have any of you found how to complete the removal of the signatures automatically?

    Thanks.

    Josera

  • 01-17-2011 08:13 AM In reply to

    Re: Remove digital signatures programmatically

    Sounds like you need to force a view update:

    Me.CurrentView.ForceUpdate()

    See: http://msdn.microsoft.com/en-us/library/microsoft.office.infopath.view.forceupdate(office.11).aspx

  • 08-28-2015 10:44 AM In reply to

    Re: Remove digital signatures programmatically

    Does the ForceUpdate function also cause the validation and formatting rules in the InfoPath form to refresh as well? I'm trying to use it after deleting a signature in the code behind, and it doesn't actually update any of the rules.

    Then if I go into the Digital Signatures dialog box in InfoPath and immediately close it, everything updates as it should.

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