We have the following setup in our SharePoint environment.
- A Form Template is published to a Form Library.
- Data collected through that Form Template is submitted back to the Form Library.
- Version history is enabled.
The issue that we seem to be having is about users unintentionally saving a copy of the form data locally to their desktop and submitting changes from there. It is ok as long as the saved local copy is the latest version. But, when changes are made to the local copy and the data gets submitted to the Form Library as per rules, the local copy remains untouched. When the local copy is opened, the changes aren't there. Ignorant about the process behind, the users get confused, redo the same changes and thereby messing up the workflow tied to the library.
It wouldn't be an issue, if the saving option can be disabled. Unfortunately, it seems to be not possible. Looking at the latest version of qRules, GetFormProperty looks like the lifesaver for this issue. The User Guide lists two options to get the URI.
- CurrentUri - The uri of the currently open XML document. This value can change if the form is saved to a new location while it is open.
- OpenedUri - Same as CurrentUri, except that it is fixed at the value it had when the document was opened.
I believe that GetFormProperty /key= CurrentUri will return the path of the currently opened form. For instance, http://sps/.../abc.xml if opened from the Form Library and C:\Users\...\abc.xml if opened locally. If that is the case, the above-said issue can be resolved easily by alerting users and closing the form automatically, if opened anywhere other than from the Form library.
Can someone from the qRules team confirm the usage of GetFormProperty, please?
Thanks!