Getting values from Repeated columns

S

Sreeni

Hi,

I have infopath form, with in that i have 72 repeating tables and this form
is attached with the WorkFlow. Whenever the form is approved by the manager,
i would like to grab these 72 repeated tables controls information, for that
i created a .cs file of the Infopath using XSD, and i have added that file to
my workflow. My question is how can i get the repeated tables information ?
using that class.. ?
 
D

David Dean

72 repeating tables?!? If all the tables have the same schema, maybe you
should consider embedding a single repeating table inside a repeating section
and use default values to populate the repeating section instances.

Regarding the class you created via XSD - InfoPath's main data source is an
XML document that conforms to the schema. You would need to use the
XmlSerializer class (System.Xml.Serialization.XmlSerializer) to deserialize
the XML into an instance of the class. Assuming you're using InfoPath 2007
managed code, you can get the XML using the expression
"this.MainDataSource.CreateNavigator().OuterXml" in the code-behind for the
form. The InfoPath 2003 managed code equivalent is "thisXDocument.DOM.xml".
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top