A
Archer
Hello,
I am attempting to create an Infopath form that is able to export data to
another infopath form. I used advice posted on Philo's WebLog at
http://blogs.msdn.com/philoj/archive/2005/04/25/411972.aspx to create the
form templates.
Basically it involves creating an xslt to map between the data sources and
adding it as a resource file. You can then create a Data source that
references this xslt and use a bit of JScript to submit the converted data to
a different Infopath form.
This works really well, except that if there are any rules specified in
Tools->Form Options->"Open and Save", I get an error "Some rules were not
applied. Unspecified Error"
To Reproduce...
Create a new blank form
Add 1 field
Add an extra view
Select Tools->"Form Options"
Select the "Open and Save" tab
Select rules
Create a new rule to change views if field1 is blank.
Preview form and note that rule works correctly.
Add an xsl file as a resource file.
Add a data connection to retrieve data from an xml file, then select the xsl
resource.
Preview form and note that "Some rules were not applied" "Unspecified Error"
I am attempting to create an Infopath form that is able to export data to
another infopath form. I used advice posted on Philo's WebLog at
http://blogs.msdn.com/philoj/archive/2005/04/25/411972.aspx to create the
form templates.
Basically it involves creating an xslt to map between the data sources and
adding it as a resource file. You can then create a Data source that
references this xslt and use a bit of JScript to submit the converted data to
a different Infopath form.
This works really well, except that if there are any rules specified in
Tools->Form Options->"Open and Save", I get an error "Some rules were not
applied. Unspecified Error"
To Reproduce...
Create a new blank form
Add 1 field
Add an extra view
Select Tools->"Form Options"
Select the "Open and Save" tab
Select rules
Create a new rule to change views if field1 is blank.
Preview form and note that rule works correctly.
Add an xsl file as a resource file.
Add a data connection to retrieve data from an xml file, then select the xsl
resource.
Preview form and note that "Some rules were not applied" "Unspecified Error"