D
David Fries
I saw that this has been answered before, but I am still a bit stuck.
It seems that there are three approaches to solving this problem, correct?
1) Submitting via a webservice
2) Having a Rich Text box in the form (which isn't one of the data fields),
which copies over its contents to a text box (which is part of the data
fields) prior to submitting.
3) Submit to SQL as an XML data-typed column
Here's what I've tried with the 3 different approaches:
1) For the web service approach, does this mean I should use DataSets to
keep track of the changes happening in the form? I shouldn't need any extra
fields in my form besides those which are part of the data fields, right?
What is the magic that the webservice has to do? Something along these lines?
http://msdn.microsoft.com/en-us/library/aa202748(office.11).aspx
2) I attempted to do this, using the guidance at this article:
http://msdn.microsoft.com/en-us/library/bb608324.aspx
However, I need repeating Rich Text boxes, I was unable to figure out how to
do the mapping between the non-data-field Rich Text box and the data-field
bound text boxes. The article describes keeping track of which Rich Text box
should be mapped to which text box using ID's, but I wasn't able to figure
out how to do this for new data, as there is no id generated until after
submission. I am also unclear on where the Rich Text field needs to be nested
on the form in order to work.
3) I also attempted this approach using the guidance at
http://aspalliance.com/1106_Saving_InfoPath_Forms_to_SQL_Server_2005_as_XML
However, while my schema for the XML column was the following:
<xsd:element name="RichTextBoxField">
<xsd:complexType mixed="true">
<xsd:sequence>
<xsd:any
minOccurs="0" maxOccurs="unbounded" namespace="http://www.w3.org/1999/xhtml"
processContents="lax"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
However, when I create a web service for InfoPath to connect to, and examine
the InfoPath generated schema for the same field, I get the following:
<xs:element name="RichTextBoxField" minOccurs="0" maxOccurs="unbounded">
which unfortunately doesn't allow Rich text.
Any help or suggestions would be appreciated.
It seems that there are three approaches to solving this problem, correct?
1) Submitting via a webservice
2) Having a Rich Text box in the form (which isn't one of the data fields),
which copies over its contents to a text box (which is part of the data
fields) prior to submitting.
3) Submit to SQL as an XML data-typed column
Here's what I've tried with the 3 different approaches:
1) For the web service approach, does this mean I should use DataSets to
keep track of the changes happening in the form? I shouldn't need any extra
fields in my form besides those which are part of the data fields, right?
What is the magic that the webservice has to do? Something along these lines?
http://msdn.microsoft.com/en-us/library/aa202748(office.11).aspx
2) I attempted to do this, using the guidance at this article:
http://msdn.microsoft.com/en-us/library/bb608324.aspx
However, I need repeating Rich Text boxes, I was unable to figure out how to
do the mapping between the non-data-field Rich Text box and the data-field
bound text boxes. The article describes keeping track of which Rich Text box
should be mapped to which text box using ID's, but I wasn't able to figure
out how to do this for new data, as there is no id generated until after
submission. I am also unclear on where the Rich Text field needs to be nested
on the form in order to work.
3) I also attempted this approach using the guidance at
http://aspalliance.com/1106_Saving_InfoPath_Forms_to_SQL_Server_2005_as_XML
However, while my schema for the XML column was the following:
<xsd:element name="RichTextBoxField">
<xsd:complexType mixed="true">
<xsd:sequence>
<xsd:any
minOccurs="0" maxOccurs="unbounded" namespace="http://www.w3.org/1999/xhtml"
processContents="lax"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
However, when I create a web service for InfoPath to connect to, and examine
the InfoPath generated schema for the same field, I get the following:
<xs:element name="RichTextBoxField" minOccurs="0" maxOccurs="unbounded">
which unfortunately doesn't allow Rich text.
Any help or suggestions would be appreciated.