SaveToSharePoint - Update filename or set filename prior to saving to SharePoint - InfoPath Dev
in

InfoPath Dev

SaveToSharePoint - Update filename or set filename prior to saving to SharePoint

Last post 09-29-2011 11:48 AM by ErnestoM. 5 replies.
Page 1 of 1 (6 items)
Sort Posts: Previous Next
  • 09-28-2011 08:26 AM

    SaveToSharePoint - Update filename or set filename prior to saving to SharePoint

    The qRule SaveToSharePoint command creates it's own filename when saving to SharePoint. Is it posible to provide the filename prior to calling this command? Also, what happens if the file already exists on the site? Can I use the same logic of providing the filename to the attribute of the attachment field?

    Thank you!

    Scott
  • 09-29-2011 03:07 AM In reply to

    Re: SaveToSharePoint - Update filename or set filename prior to saving to SharePoint

     Hi Scott,

    Starting with qRules v3.3, the command has the ability to specify a filename via the /name parameter. There is also an /overwrite parameter to allow you to control overwrites. Can you try out these parameters and let us know if they work for your scenario? Thanks!

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


  • 09-29-2011 09:08 AM In reply to

    Re: SaveToSharePoint - Update filename or set filename prior to saving to SharePoint

    Thanks Ernesto. I'm actually not able to get that far just yet. I was able to get this to work on a blank form in to test out qRules. This morning I injected qRules into my production form and performed the same steps with no success. I follow the instructions step by step. I added Result, Success, and Error to my form to see what's going on. Nothing happens when I click the button which has an Action to set a fields value set to the Command node :

    SaveToSharePoint /url=http://sp2010srv/sites/pps/WZDocLib /xpath=/my:PPS_Fields/my:grpMain/my:grpProcedureDocumentWorking/my:b64ProcedureDocumentWorking

    Any thoughts to start troubleshooting? It seems like the it is not even getting executed.

    Thank you in advance!

    Scott
  • 09-29-2011 09:16 AM In reply to

    Re: SaveToSharePoint - Update filename or set filename prior to saving to SharePoint

     If the Result, Error and Success fields are showing nothing, then the command is not executing. Is this happening in the client or the browser? If in the browser, make sure to change the PostBack settings of the control to Always.

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


  • 09-29-2011 09:26 AM In reply to

    Re: SaveToSharePoint - Update filename or set filename prior to saving to SharePoint

    Ernesto -

    The form is browser enabled. I guess when I tested it yesterday it was in "Preview" mode. Doh. I'm not sure which control you are referring to make the post-back set to "Always", the Button where the Action is set?

    Thanks!

    Scott
  • 09-29-2011 11:48 AM In reply to

    Re: SaveToSharePoint - Update filename or set filename prior to saving to SharePoint

    In your case, it sounds like the button is calling the qRules command. In general, you want to set Properties > Postback to Always for any control that has a rule that calls a qRules command.

    Hope that solves it. Let us know. Thanks!

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


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