<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Programmatically Repeat a Section or Table Based on Number of Characters in a Text Field</title><link>https://www.infopathdev.com:443/forums/thread/34184.aspx</link><pubDate>Wed, 12 Nov 2008 15:17:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:34184</guid><dc:creator>jhvrealm</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/34184.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=34184</wfw:commentRss><description>&lt;p&gt;Hello InfoPathdev,&lt;/p&gt;
&lt;p&gt;This is a question I asked in the Newbie forum&amp;nbsp;and I thought this forum may be better suited.&lt;/p&gt;
&lt;p&gt;This is my first attempt at developing a form in InfoPath. Language is JS.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;My challenge:&lt;br /&gt;– Transfer text data entered by a user in the main view of an InfoPath form&amp;nbsp;to a second view (export view)&amp;nbsp;specifically configured for export purposes.&amp;nbsp;Data exported to Excel must be done in such a way that the Excel can essentially import directly into a database.&lt;/p&gt;
&lt;p&gt;Requirements:&lt;br /&gt;– User text field in main view must allow for 600 characters max.&lt;br /&gt;– Text data must be transferred to the export view into a repeating component (section or table) that separates the text to a limit of 65 characters per repeating component.&lt;br /&gt;&amp;nbsp;&amp;nbsp; – This repeating component itself lies within a repeating table.&lt;/p&gt;
&lt;p&gt;I had tried&amp;nbsp;to use the substring function to part out the total text entered into the user text field. The problem is the export into Excel requires manual manipulation in order to format in the proper structure allowing for import into our customer required MIL-STD-1388-2B database. I need to avoid any manual manipulation.&lt;/p&gt;
&lt;p&gt;What I am looking to accomplish is in conjunction with a text field being populated with 65 characters, a function would repeat the target table and continue populating in that manner until completed. If I had the code that calls that function when the user clicks the button to repeat a table or section, I could use that code to perform that function behind the scenes as the text is being interrogated for population into 65 character text fields in&amp;nbsp;the export view.&lt;/p&gt;
&lt;p&gt;Does anybody know what that code is? Again, I am new at this and inherited a partial form from another newbie who was not aware of being able to determine what language would be behind the form itself. So as it is, the form relies on JS.&lt;/p&gt;
&lt;p&gt;Thank you for any help. &lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;jhvrealm&lt;/p&gt;</description></item></channel></rss>