Encrypt / Decrypt issue in repeating table - InfoPath Dev
in

InfoPath Dev

Encrypt / Decrypt issue in repeating table

Last post 11-18-2014 03:51 PM by Hilary Stoupa. 5 replies.
Page 1 of 1 (6 items)
Sort Posts: Previous Next
  • 11-18-2014 10:33 AM

    • Leinweber
    • Top 500 Contributor
    • Joined on 11-17-2011
    • Chicago, Illinois
    • Posts 26

    Encrypt / Decrypt issue in repeating table

    Hi. I am attempting to use the encrypt and decrypt functions in a form with a repeating table that saves data to a SharePoint list using QRules 6.1. The result is strange and I really need some help understanding what is going on. This form allows a user to enter data into the Sensitive Data column and upon clicking the Save button the data is encrypted using the encrypt function and the string is successfully saved in the SharePoint list in it's encrypted form. So, the encryption works well and as expected! :) The next step is where things get weird. I don't want the encrypted string to display in the repeating table, so I am attempting to use the decrypt function to decrypt the string in the repeating table. Instead, I get an error and the string remains encrypted in the Sensitive Data column of my repeating table. The error I am getting is: Not valid for qRules encryption. Ensure field is not blank, is not already encrypted and that you have entered a password. Please help... I want to use the functionality to allow users to enter sensitive data that will be stored in encrypted format in SharePoint and to not appear as encrypted data on the InfoPath form. How can I do this?
  • 11-18-2014 10:47 AM In reply to

    Re: Encrypt / Decrypt issue in repeating table

    Thanks for posting your template - I'll take a look later today and see what's up, okay?

    Hilary Stoupa

  • 11-18-2014 10:59 AM In reply to

    • Leinweber
    • Top 500 Contributor
    • Joined on 11-17-2011
    • Chicago, Illinois
    • Posts 26

    Re: Encrypt / Decrypt issue in repeating table

    Thanks! I appreciate it!
  • 11-18-2014 03:20 PM In reply to

    Okay - so the issue here is just that by default, the Encrypt and Decrypt commands clear the field with the password.

    You can include the /clear=no parameter to prevent this - of course, this means the password will be in the XML when it is saved (in your sample form) - so you may want to leave your Decrypt rule as is, or you may want to clear the password field with another rule. But if you just add /clear=no to your Encrypt command, you should see the results you wanted. Attaching your form with this change made.

    Hilary Stoupa

  • 11-18-2014 03:48 PM In reply to

    • Leinweber
    • Top 500 Contributor
    • Joined on 11-17-2011
    • Chicago, Illinois
    • Posts 26

    Re: Encrypt / Decrypt issue in repeating table

    Thanks! I am so happy right now! :)
  • 11-18-2014 03:51 PM In reply to

    Re: Encrypt / Decrypt issue in repeating table

    If you are happy, so am I! :) Glad that is going to work for you...

    Hilary Stoupa

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