Goal : I want to deploy Infopath 2010 Browser enabled Library Form using Feature.
I have Converted data connections. I want to deploy Form as Content type.
Here is what i have done so far.
I have created a site collection level feature. My Feature deploys the following things,
1) Fields which are used for property promotion.
2) Content type with form location to Form Templates Library.
3) My Form gets dropped in Form Templates library.
4) Data connection library with neccesary data connection.
issue: when i converted my connections it made entry in .xsf file with site collection url where i stored it. now, when i open the form(on deployed site collection) it tries to load connection from the url storeed in .xsf file and not from the one where i deployed my form.
I found few soltions like we can extract .xsf file and change the site collection url for data connection programmatically.
but is there any way we can sat the url property so that it points to current site collection?
Or
is there any way which does not requires to modify .xsf file?