Question : Centrally managed data connection files

Hi,

I have some issues with centrally managed data connection files and InfoPath 2007.

Here's the situation (which work fine):

1. I have a web service method that returns a string
2. I have a data connection in a data connection library on my site that refers to that web service
3. my infopath form use that data connection to get the string from web service
4. My infopath is published as a  site content type and I saved it in my form library when I published it. So when a user open that form, it works fine.

Using this have some drawbacks. I must give read permission to the data connection library to the user because the form won't work if the user doesn't have access to the data connection library. I don't like this because I don't want the user to have access to that library.

To fix that, I was thinking about using a centrally managed data connection file. So I created one (using same udcx). Here's the issue (point #3):

1. The data connection file is in the central data connection
2. my infopath form does refer to that central data connection (and work fine)
3. I can't publish my infopath form as a site content type. Since I want my form to be browser-enabled, the only option i have is "administrator approved form template". The thing is I don't want my form to be a form template. With a form template, I have to add it to my form library and then click on NEW and then I would save it to my library but the thing is i want only one instance of my form and only this one will have functionnality (all my forms are not form template, they are only exisiting once and user clicks on button to submit information to a web service).

I need help regarding this. I really want to have a form that acts as a site content type which I can publish from infopath. And I want this form to use a central data connection file.

Thanks

Martin

Answer : Centrally managed data connection files

Yah that is one advantage of having it set to a Document Library is that it will return there upon close.

If you search, there are some code options for redirecting to another page on close in browser forms.

Javescript is not allowed in browser forms, you must use managed code from Visual Studio.

You should be able to use normal date pickers and there may be a non-code solution.
Random Solutions  
 
programming4us programming4us