locked
create form library RRS feed

  • Question

  • In MOSS 2007, I want to create form library dynamically for each quarter on the basis of submission date.

    Is it possible to create library through Java script actually my requirement is do not use the Object model.

    OR is it possible to create dynamic folder in a form library without using Object model.

    Please give me any solution for it.

    Monday, May 16, 2011 10:22 AM

Answers

  • Since you only want to use javascript you will have to use a web service. Check our http://spservices.codeplex.com its a very useful jquery library that will help make the webservice calls much easier.

    Here is an example of calling the web services w/out the spervices. http://weblogs.asp.net/jan/archive/2009/04/09/calling-the-sharepoint-web-services-with-jquery.aspx

    Now you'll have to figure out how to get that to run each quarter to create the site. You could make some sort of timer / date checker type thing but you still have to hit a page in order for the javascript to execute.

    If you could use the object model you could make a timer job to run quarterly or create a power shell script and set that as a task to run quarterly.

    good luck


    -tom daly
    • Marked as answer by David HM Tuesday, May 24, 2011 1:29 AM
    Monday, May 16, 2011 1:52 PM

All replies

  • In MOSS 2007, On submitting infopath form on the basis of submit date , i want to create a new form library programatically for each Quater in a year.

    please give a solution.

    • Merged by Clayton Cobb Monday, May 16, 2011 9:47 PM Cross-posted the same thread 3 times and used the wrong forum twice
    Sunday, May 15, 2011 9:50 AM
  • You could save your form library as a template and use .NET code to provision a new library based on the template every quarter, but I question if this is really what you are looking for.  The form library contains more than just the submitted form data...they also contain the form templates. So nothing would prevent a user from going into a previous quarter's library and creating/saving a new form there.  Without knowing all of your business requirements, in my experience a lot of people choose to stick with a single form library but use Views based on quarter (or some other time period) to narrow the display of the results.


    Rob Wilson - MCT. MCTS, MCITP, MCPD SharePoint. http://sharepointblog.kellerschroeder.com http://www.therobman.com/blog
    Sunday, May 15, 2011 9:00 PM
  • This is the 2010 forum - are you asking a 2007 question?
    SharePoint Architect || Microsoft MVP || My Blog
    Planet Technologies || SharePoint Task Force
    Sunday, May 15, 2011 9:37 PM
  • In MOSS 2007, I want to create form library dynamically for each quarter on the basis of submission date.

    Is it possible to create library through Java script actually my requirement is do not use the Object model.

    OR is it possible to create dynamic folder in a form library without using Object model.

    Please give me any solution for it.

    • Merged by Clayton Cobb Monday, May 16, 2011 9:47 PM Cross-posted the same thread 3 times and used the wrong forum twice
    Monday, May 16, 2011 10:21 AM
  • You can try to use web services using Javascript, but that won't be dynamic, because the Javascript will only trigger after you visit the page where the script is hosted. Here's a list of web services for sharepoint:

    http://msdn.microsoft.com/en-us/library/bb862916%28v=office.12%29.aspx

    Can you explain why/what you're trying to do? May be there's an alternative option.

     


    Pman
    http://www.pmansLab.com/
    Monday, May 16, 2011 11:58 AM
  • Since you only want to use javascript you will have to use a web service. Check our http://spservices.codeplex.com its a very useful jquery library that will help make the webservice calls much easier.

    Here is an example of calling the web services w/out the spervices. http://weblogs.asp.net/jan/archive/2009/04/09/calling-the-sharepoint-web-services-with-jquery.aspx

    Now you'll have to figure out how to get that to run each quarter to create the site. You could make some sort of timer / date checker type thing but you still have to hit a page in order for the javascript to execute.

    If you could use the object model you could make a timer job to run quarterly or create a power shell script and set that as a task to run quarterly.

    good luck


    -tom daly
    • Marked as answer by David HM Tuesday, May 24, 2011 1:29 AM
    Monday, May 16, 2011 1:52 PM
  • You are in the wrong forum, You can ask 2007 questions about development here:

    http://social.technet.microsoft.com/Forums/en-US/sharepointcustomization/threads

     

     


    Mohamed Derhalli ||| SharePoint Specialist ||| http://Path2SharePoint.com
    Monday, May 16, 2011 7:54 PM
  • Bishnoi, why did you post this same thread 3 times and twice in the wrong forum?  Do not ever do that.  Post your thread once and post it in the right place.  I have now merged your 3 threads.
    SharePoint Architect || Microsoft MVP || My Blog
    Planet Technologies || SharePoint Task Force
    Monday, May 16, 2011 9:48 PM
  • hi rob, thanks for reply, actually my requirement is in my site we r getting requests in bulk in a quater i think there is a limit for a library OR we also creating reports on quaterlly basis.

    for that we had planed that  we will publish form in a library and on submittion of a request, on the basis of submit date we will create a dynamic library for that quater and submit that request to that perticullar library.,

    any solution for it please share me.

    Friday, May 20, 2011 3:02 AM
  • Not the direct option without using the object model or Powershell scripts, but you can create your own stsadm command by creating the custom system admin command you can create this form library and can execute this by peroudic as well by bat file or console application[moreever it is also one time activity]


    Krishana Kumar

     

    Moderator Note: NEVER propose your own posts as answers. The function is for proposing the good answers of other people.


    Also: The post was in any case closed in May.

    Later: You have continued doing this despite this warning. I will delete any posts from you where you propose your own post as an answer.

    • Proposed as answer by KRISHANA KUMAR Thursday, August 11, 2011 5:46 AM
    • Unproposed as answer by Mike Walsh FIN Thursday, August 11, 2011 6:50 AM
    • Edited by Mike Walsh FIN Thursday, August 11, 2011 10:35 AM Later added. Warning not to propose own posts ignored by this poster.
    Thursday, August 11, 2011 5:46 AM