<?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>Re: How to hardcode values in repeating table</title><link>https://www.infopathdev.com:443/forums/thread/33283.aspx</link><pubDate>Tue, 21 Oct 2008 05:07:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33283</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33283.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=33283</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Before inserting the new node you have to set your default value to that node. &lt;/p&gt;
&lt;p&gt;If you want by default four nodes with hardcode values then you have to add same node four times with different values in template.xml. &lt;/p&gt;</description></item><item><title>How to hardcode values in repeating table</title><link>https://www.infopathdev.com:443/forums/thread/33276.aspx</link><pubDate>Tue, 21 Oct 2008 02:22:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33276</guid><dc:creator>Harij</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33276.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=33276</wfw:commentRss><description>&lt;p&gt;Hi Guys, &lt;/p&gt;
&lt;p&gt;I need to hardcode values in repeating table. &lt;/p&gt;
&lt;p&gt;For example: I have 4 values namely - Category A, Category B, Category C and Category D. &lt;/p&gt;
&lt;p&gt;I need this to be hardcoded in Repeating table as dropdown menu. &lt;/p&gt;
&lt;p&gt;Can we achieve this using VB script. &lt;/p&gt;&amp;nbsp;Below is example using ARRAY but I want to use repeating table instead. &lt;font size="2"&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;For&lt;/font&gt;&lt;font size="2"&gt; index = 1 &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;to&lt;/font&gt;&lt;font size="2"&gt; 3&lt;/p&gt;XDocument.DOM.selectSingleNode(&amp;quot;/tns:EAIOutboundCorrespondence/tns:Context/tns:PassThroughData/tns:OPM/tns:gr_String&amp;quot;).insertBefore XDocument.DOM.selectSingleNode(&amp;quot;/tns:EAIOutboundCorrespondence/tns:Context/tns:PassThroughData/tns:OPM/tns:gr_String/tns:str_GenArray_01&amp;quot;).cloneNode(&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;true&lt;/font&gt;&lt;font size="2"&gt;), XDocument.DOM.selectSingleNode(&amp;quot;/tns:EAIOutboundCorrespondence/tns:Context/tns:PassThroughData/tns:OPM/tns:gr_String/tns:str_GenArray_01&amp;quot;)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;Next&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;XDocument.DOM.SelectNodes(&amp;quot;/tns:EAIOutboundCorrespondence/tns:Context/tns:PassThroughData/tns:OPM/tns:gr_String/tns:str_GenArray_01&amp;quot;)(0).text = &amp;quot;AMP Bank Limited&amp;quot;&lt;/p&gt;
&lt;p&gt;XDocument.DOM.SelectNodes(&amp;quot;/tns:EAIOutboundCorrespondence/tns:Context/tns:PassThroughData/tns:OPM/tns:gr_String/tns:str_GenArray_01&amp;quot;)(1).text = &amp;quot;Arab Bank Australia Limited&amp;quot;&lt;/p&gt;
&lt;p&gt;XDocument.DOM.SelectNodes(&amp;quot;/tns:EAIOutboundCorrespondence/tns:Context/tns:PassThroughData/tns:OPM/tns:gr_String/tns:str_GenArray_01&amp;quot;)(2).text = &amp;quot;Australia and New Zealand Banking Group Limited&amp;quot;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Hari&lt;/p&gt;&lt;/font&gt;</description></item></channel></rss>