Use Save button for submit for content type - InfoPath Dev
in

InfoPath Dev

Use Save button for submit for content type

Last post 04-22-2010 11:13 PM by Qazi Anis. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 04-22-2010 03:28 AM

    Use Save button for submit for content type

    Hello,

    I'm new to InfoPath, but i'm not sure whether this is a newbie question or a SharePoint question.

    I'll explain the situation:
    I have a browser-enabled InfoPath form, just plain and simple.
    This form needs to be published as a content type on a specific site collection, we'll name it FormSiteCollection.

    There is another site collection that has subsites that need to use this content type, we'll name this ProjectSiteCollection.
    These subsites are based on a site definition and are created for each project, pretty normal situation.

    To use the content type in the ProjectSiteCollection, I need to re-create this content type and point to the XSN on the FormSiteCollection.
    Still nothing special.

    But I have a button in my Form with the name "Save".
    When this button is pressed, there are 2 rules fired. One to submit the data using a data connection, the other is a standard one to close the form.

    The data connection I created using "Tools" -> Data Connections.
    Settings:
    Document Library: http://testURL/FormLib
    Filename: concat("Project"; Projectcode, ID)

    Still nothing special I guess.

    Now my question: When I use this content type on my project sites... I want to create a new form, fill it... and then save it in the specific document library of that projectsite with the filename I created for the data connection. But my guess would be that this Save action will save the document in the Document Library I have set in the data connection.... not in the Document Library i'm currently in...

    Is this true? Or will it save in the Document Library I'm currently in?
    If it saves to one specific document library..... Is there a possibility to make this Document Library dynamic, or retrieve the one o'm currently in, without using code for my form?
    The option "without code" is so I won't need administrator approval for this form. Since there is no code based on this form. Just workflows based on SharePoint Designer, Visual Studio 2008 and SharePoint 2007 itself.

     I'm sure more people have come to this problem so I hope you can help.

    Thanks!

    Jeroen.

  • 04-22-2010 06:43 AM In reply to

    Re: Use Save button for submit for content type

    why dont you just use the save functionality that is provided by infopath. that will just save the form in the same document library that the form was opened from.

    Qazi Anis
    Technical Architect
    Bitwise Inc
  • 04-22-2010 08:53 AM In reply to

    Re: Use Save button for submit for content type

    If you're using Submit (and not Save), then qRules might help you to dynamically change the library. One command is documented here, but we'll have another doc up later today with further details on the scenario.

    Of course, the other option is to write some code. Lots can be done with custom code. :)

    The problem with both qRules and code is that you'll need to admin deploy, and you cannot do that. I'm sorry; not sure what else to recommend.

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


  • 04-22-2010 12:29 PM In reply to

    Re: Use Save button for submit for content type

    Thanks for the answer, but the reason we don't use the standard save button is because I want to generate  the filename... and this cannot be done using the default save button.

    The reason this filename needs to be generated is because when the form hits a specific status, the form will be moved to another sharepoint library that stores all these InfoPath forms (I'm more familiar with SharePoint then with InfoPath forms). So as long as it doesn't have this status yet it should remain in the Project site library ofcourse.

    And with the default Save option the user can choose his own file name. And when this filename already exists, the file will be overwritten...

    Or when I move it and the filename already exists in the storage library, that file will be overwritten... 

    And that's not what I want of course.

    But I'm afraid I have to create custom code for this solution and that it can't be done using the default InfoPath options...

  • 04-22-2010 11:13 PM In reply to

    Re: Use Save button for submit for content type

    well you will have to write some custom code for this

    Qazi Anis
    Technical Architect
    Bitwise Inc
Page 1 of 1 (5 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.