Jian Zhang

I managed to enable the form service in MOSS and now I get stuck with the deployment of my form. When I did the prototype form template without any code in it, it published alright to the MOSS and user can open it up using web browser, now infopath told me I need to approve this form by administrator of the web farm. So I did publish that way and upload the form template to my MOSS site and also activate it. Now I can see the newly uploaded template in my site collection as a feature, I clicked activate this template. All went well but the question is how can I deploy it to a specific form library instead of the whole site collection In that way, I want the user to create/open up form using correct template. I use differerent infopath template for different form library which all contains c# code. Please help, thanks.


Re: SharePoint - InfoPath Forms Services publish a infopath 2007 form contains code

_Andreas_

You have to create a Form Library with Management of Content Type allowed (see Advanced options). After that, when publishing, you simply select your host (Form Server), choose whether you want to create a new content type or update existing one and publish your form.

This states for an assumption that I guess I did understand your problem, cause according to to your message :

..."Now I can see the newly uploaded template in my site collection as a feature"...

I don't really understand the problem ^ do you want to publish form template or deploy a newly uploaded feature. These are completely different things!!!!!






Re: SharePoint - InfoPath Forms Services publish a infopath 2007 form contains code

Alexei Levenkov [MSFT]

After activation new contetnt type is created. You can add this content type to any document library/form library.

Forms with code are avaialble to whole site (through content type) and there is no way to limit it to single document library.





Re: SharePoint - InfoPath Forms Services publish a infopath 2007 form contains code

Jian Zhang

Sorry if I didn't make myself clear in the first thread. The problem is:

I want to deploy infopath form template. which has been done in InfoPath 2007 which contains c# code inside. This kind of form which contains code will not be able to deploy as normal publishing method. Because of the business logic is contained in the form, administrator approval is required to publish this form template. You will not be able to select which form library to publish to if you simply go publish wizard in the infopath 2007. That's why I chose to upload the template and activate it in the first place... So if you think this is incorrect, please tell me how to publish infopath form template with code to a form library. That's all I need to know. Thanks






Re: SharePoint - InfoPath Forms Services publish a infopath 2007 form contains code

Jian Zhang

So you are saying that if I have form contains code, I can only use this one form across the whole site What if I have 5 forms with different layout and UI and of course, business logic for different form libararies It can't be done




Re: SharePoint - InfoPath Forms Services publish a infopath 2007 form contains code

Alexei Levenkov [MSFT]

You can have as many form templates as you need. For each form activated on site collection one content type will be created.

So if you have uploaded 1233 form templates and activated all of them on you root site collection there will be 1233 new content types available on this site collection. You can start using this content types in any document or forms library on your site.





Re: SharePoint - InfoPath Forms Services publish a infopath 2007 form contains code

Jian Zhang

Still I am confused about the answer to my question. in your reply you said

"Forms with code are avaialble to whole site (through content type) and there is no way to limit it to single document library"

But you also said that the form tempalte can be deployed as a content type to any form library. Does this include forms which contains code If so, how do I associate a form library to certain content type then Thanks!






Re: SharePoint - InfoPath Forms Services publish a infopath 2007 form contains code

Jian Zhang

btw, I can't deploy the form template as a content type because it's required that the form is presented in a web browser instead of an Infopath client. Does that mean it can't be done with code inside the form




Re: SharePoint - InfoPath Forms Services publish a infopath 2007 form contains code

Alexei Levenkov [MSFT]

We have several walkthrough on our sites, but I can't find them right now. This one seems to be ok:

http://geekswithblogs.net/jgmeyer/archive/2006/06/26/83087.aspx

Form template need to be "uploaded" first. It will appear in Central Admin site, but users can't access it yet.

Then form template need to be "activated" on site collection. Users can see it as an item in formsServerTemplates librrary in the root site.

Then content type that was created for the form need to be added to document library. At this point users can click New in the document library and fill out the form.





Re: SharePoint - InfoPath Forms Services publish a infopath 2007 form contains code

Jian Zhang

thank you very much indeed! The blog helps.