qRules GetFormProperty to get the path of the currently opened xml form data?! - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

qRules GetFormProperty to get the path of the currently opened xml form data?!

Last post 01-17-2013 08:48 AM by Hilary Stoupa. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 01-16-2013 02:36 PM

    • Pasu
    • Not Ranked
    • Joined on 12-13-2006
    • USA
    • Posts 24

    qRules GetFormProperty to get the path of the currently opened xml form data?!

    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!

  • 01-16-2013 11:27 PM In reply to

    Re: qRules GetFormProperty to get the path of the currently opened xml form data?!

    The QdabraRules secondary data source already has a uri attribute that you can use to determine the location of the currently opened XML. It's under QdabraRules > Form > @uri.

    Mel Clemente
    Qdabra® Software/ InfoPathDev.com
    The InfoPath Experts – Streamline data gathering to turn process into knowledge.™

  • 01-17-2013 05:50 AM In reply to

    • Pasu
    • Not Ranked
    • Joined on 12-13-2006
    • USA
    • Posts 24

    Re: qRules GetFormProperty to get the path of the currently opened xml form data?!

    Mel Balsamo:

    The QdabraRules secondary data source already has a uri attribute that you can use to determine the location of the currently opened XML. It's under QdabraRules > Form > @uri.

    I am able to get the location of the template file (template.xsn) using the @uri attribute, but not the location of the data file (abc.xml). I am looking for ways to allow opening of forms only from the original location it was submitted to. It seems achievable, if the location of the xml data file is known.

     

  • 01-17-2013 08:48 AM In reply to

    Re: qRules GetFormProperty to get the path of the currently opened xml form data?!

    Looks like the user guide has an extra space in the sample command - try:

    GetFormProperty /key=CurrentUri

    Hilary Stoupa

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