Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8794687
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T23:17:08+00:00 2026-06-13T23:17:08+00:00

As the question says, I have an InfoPath form running on SP2010 using a

  • 0

As the question says, I have an InfoPath form running on SP2010 using a c# workflow upon submission. If the form is rejected during workflow, then I need to reset it. I have everything under control, EXCEPT how to reset digital signatures to null, nill, nada, nothing, non-extant! Any ideas? I’m looking at Google now, but at current, I’m not even sure of an om for digital signatures?

Wow, i notice this question suddenly gaining alot of pop with bounty almost gone. Just putting it out there, I did not intend to not bounty someone, but i needed the answer earlier this week (2nd week Nov 2012) and thus i searched and played and teetered with code as much as possible till i ended up finding my own answer before anyone else answered me. However, for future reference, if someone gives a better answer, i’ll gladly come back and rep them. Thank you all for the support and I really hope my answer is as useful to another as it was to me.

NOW Bloggered && Gisted May no one ever again have to search as hard as I did for this answer, 😛

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T23:17:09+00:00Added an answer on June 13, 2026 at 11:17 pm

    ¡¡¡   I   F O U N D   M Y F R I G G I N ‘   A N S W E R   ! ! !

    ¡¡¡ And it works from the workflow !!!

    Through much trial and tribulation I was finally able to come up with a solution. It involves a few steps. One, elevate security! Otherwise, non-admin users will cause the workflow to error. Seems like it should work this way, but … Secondly, get the right schema! It took me a while to find mine, i forgot the exact steps, but, it’s not hard to find. UPDATED: Can be found as an attribute of xmlDoc.Document, see updated code Step through (debug) your workflow, without the namespace/schema and highlight your document when it gets to it. One of the properties is an url that is the schema link. Anyway, you wanna see the solution!? Do ya? Look down!

    SPSecurity.RunWithElevatedPrivileges(delegate()
    {
        SPFile formFile = workflowProperties.Item.File;
        MemoryStream ms = new MemoryStream(formFile.OpenBinary());
        XmlTextReader rdr = new XmlTextReader(ms);
        XmlDocument xmlDoc = new XmlDocument();
        xmlDoc.Load(rdr);
        rdr.Close();
        ms.Close();
        XmlNamespaceManager nsm = new XmlNamespaceManager(xmlDoc.NameTable);
        String schemaUri = xmlDoc.DocumentElement.GetAttributeNode("xmlns:my") != null ? xmlDoc.DocumentElement.GetAttributeNode("xmlns:my").Value : "http://schemas.microsoft.com/office/infopath/2003/myXSD/2012-09-04T20:19:31";
        nsm.AddNamespace("my", schemaUri);
        XmlNode nodeSignatureCollection = xmlDoc.DocumentElement.SelectSingleNode("my:signatures1", nsm);
        if (nodeSignatureCollection != null)
        {
            if (nodeSignatureCollection.HasChildNodes)
            {
                foreach (XmlNode nodeSignature in nodeSignatureCollection.ChildNodes)
                {
                    //  HERE IT IS!!!
                    if (nodeSignature.HasChildNodes && !nodeSignature.IsReadOnly) nodeSignature.RemoveAll();
                }
            }
        }
        byte[] xmlData = System.Text.Encoding.UTF8.GetBytes(xmlDoc.OuterXml);
        formFile.SaveBinary(xmlData);
        formFile.Update();
    });
    

    Keep in mind, this setup is for going through multiple signatures. Although I doubt anything would change if there was only one signature.

    Any suggestions on making this sweeter and smaller are accepted, however, I must request an explanation. Honestly, I barely understand what is going on here!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Image Dummy = Image.FromFile(image.png); Dummy.Save(image.bmp, ImageFormat.Bmp); what the question says i have these using
Pretty much as the question says, I have some code running on an interval:
As the question says, I have a problem running the web app on local
As per question says. Specifically i want the html.beginform() to have the runat=server attribute.
I have a homework question that says: Problem 1: Given the array [ 22
The question pretty much says it all. I have a joomla website and I
i have a simple question in the objectify documentation it says that Only get(),
Question says it all. I have two accounts on two separate hosted fogbugz-on-demand. One
The question says it all really. I'm hoping that I don't have to write
What the question says... Does jQuery have any methods that will allow you to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.