<?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: Auto-Populate Rules vs Code</title><link>https://www.infopathdev.com:443/forums/thread/19639.aspx</link><pubDate>Mon, 07 May 2007 20:27:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:19639</guid><dc:creator>Tome</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/19639.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=19639</wfw:commentRss><description>&lt;p&gt;Done. I found a different post that helped me put the value into the correct row of the repeating table. I posted the completed code below for anyone else.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;function
msoxd__SR_Materials_cs2ID_attr::OnAfterChange(eventObj)&lt;/p&gt;

&lt;p&gt;{&lt;/p&gt;



&lt;p&gt;// Write code
here to restore the global state.&lt;br /&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (eventObj.IsUndoRedo)&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // An undo or redo
operation has occurred and the DOM is read-only.&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var objXMLNodes =
XDocument.View.GetSelectedNodes();&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var sID;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (objXMLNodes.Count &amp;gt; 0)&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sID = objXMLNodes(0).text;&amp;nbsp; //Grab the value of
the selected dropdown&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (sID == &amp;quot;&amp;quot;) //Check for actual value before querying&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/p&gt;

&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Get to the DOM&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var doc =
XDocument.DataObjects(&amp;quot;Contract_Sub_Categories2_DC&amp;quot;).DOM;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Add the namespaces for the
secondary data source&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; doc.setProperty(&amp;quot;SelectionNamespaces&amp;quot;, &amp;quot;xmlns:d=&amp;#39;http://schemas.microsoft.com/office/infopath/2003/ado/dataFields&amp;#39;
xmlns:dfs=&amp;#39;http://schemas.microsoft.com/office/infopath/2003/dataFormSolution&amp;#39;&amp;quot;);&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Find the node in the
secondary data source&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var selectedNode =
doc.selectSingleNode(&amp;quot;//dfs:myFields/dfs:dataFields/d:Contract_Sub_Categories2[@cs2ID=&amp;quot;
+ sID + &amp;quot;]&amp;quot;)&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Grab the value from the node&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var struom =
selectedNode.attributes.getNamedItem(&amp;quot;cs2UOM&amp;quot;).text;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/p&gt;

&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Put the value on the form&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; eventObj.Site.selectSingleNode(&amp;quot;../@uomCode&amp;quot;).text
= struom;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;



&lt;p&gt;}&lt;/p&gt;</description></item><item><title>Re: Auto-Populate Rules vs Code</title><link>https://www.infopathdev.com:443/forums/thread/19636.aspx</link><pubDate>Mon, 07 May 2007 17:17:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:19636</guid><dc:creator>Tome</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/19636.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=19636</wfw:commentRss><description>Ok, I&amp;#39;m now able to get the value from the secondary data source successfully and display it as an alert. Is there a way to get a reference to the current repeating row that fired the event so I can populate the correct field. I can only seem to populate the entry in the first row of the repeating table. This code is being run using an &amp;quot;OnAfterChange&amp;quot; event.

&lt;p class="MsoNormal"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="MsoNormal"&gt;var objXMLNodes = XDocument.View.GetSelectedNodes();&lt;/p&gt;

&lt;p class="MsoNormal"&gt;var sID;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;if (objXMLNodes.Count &amp;gt; 0)&lt;/p&gt;

&lt;p class="MsoNormal"&gt;{&lt;/p&gt;&lt;p class="MsoNormal" style="margin-left:0.5in;"&gt;sID = objXMLNodes(0).text;&lt;/p&gt;

&lt;p class="MsoNormal" style="margin-left:0.5in;"&gt;var doc =
XDocument.DataObjects(&amp;quot;Contract_Sub_Categories2_DC&amp;quot;).DOM;&lt;/p&gt;

&lt;p class="MsoNormal" style="margin-left:0.5in;"&gt;doc.setProperty(&amp;quot;SelectionNamespaces&amp;quot;,
&amp;quot;xmlns:d=&amp;#39;http://schemas.microsoft.com/office/infopath/2003/ado/dataFields&amp;#39;
xmlns:dfs=&amp;#39;http://schemas.microsoft.com/office/infopath/2003/dataFormSolution&amp;#39;&amp;quot;);&lt;/p&gt;&lt;p class="MsoNormal" style="margin-left:0.5in;"&gt;var selectedNode =
doc.selectSingleNode(&amp;quot;//dfs:myFields/dfs:dataFields/d:Contract_Sub_Categories2[@cs2ID=&amp;quot;
+ sID + &amp;quot;]&amp;quot;);&lt;/p&gt;&lt;p class="MsoNormal" style="margin-left:0.5in;"&gt;var struom = selectedNode.attributes.getNamedItem(&amp;quot;cs2UOM&amp;quot;).text;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-left:0.5in;"&gt;XDocument.UI.Alert(struom);&lt;/p&gt;

&lt;p class="MsoNormal"&gt;}&lt;/p&gt;</description></item><item><title>Re: Auto-Populate Rules vs Code</title><link>https://www.infopathdev.com:443/forums/thread/19592.aspx</link><pubDate>Fri, 04 May 2007 19:57:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:19592</guid><dc:creator>Tome</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/19592.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=19592</wfw:commentRss><description>What&amp;#39;s weird about this is that sometimes it puts a value in the field and its just not the right one. If I open the secondary data source in MS Access I can see the correct information. That&amp;#39;s why I&amp;#39;m trying to do it by code because I can&amp;#39;t make sense of what the rules based approach is doing.&lt;br /&gt;</description></item><item><title>Re: Auto-Populate Rules vs Code</title><link>https://www.infopathdev.com:443/forums/thread/19577.aspx</link><pubDate>Fri, 04 May 2007 04:54:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:19577</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/19577.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=19577</wfw:commentRss><description>&lt;p&gt;As far as the inconsistency, my guess would be it is not always finding the value, when this occurs there is no warning or error it just will not do anything and have a blank result.&amp;nbsp; Typically what&amp;nbsp;I found is that it is in the string matching, if there are any preceeding or trailing spaces or if one field is a var and the other not there can be space. I would look closely at a scenario where it is not working and check the strings being compared very closely.&amp;nbsp; The other issue sometimes could be duplicates and it returns the first which could maybe be incorrect.&amp;nbsp; This could work sometimes and not others depending on how the data source is being traversed.&lt;/p&gt;&lt;p&gt;I will leave the code audit up to other experts but it&amp;nbsp;could be&amp;nbsp;having the same issue.&lt;/p&gt;</description></item><item><title>Auto-Populate Rules vs Code</title><link>https://www.infopathdev.com:443/forums/thread/19575.aspx</link><pubDate>Thu, 03 May 2007 22:08:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:19575</guid><dc:creator>Tome</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/19575.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=19575</wfw:commentRss><description>&lt;p&gt;Hi all,&lt;/p&gt;&lt;p&gt;In a repeating section of&amp;nbsp;my form I&amp;nbsp;have a drop down box that lists materials.&amp;nbsp;I use a rule to&amp;nbsp;fill in the associated unit of measure based on the selected material. The rule uses the secondary data source I&amp;nbsp;defined through &amp;quot;data connections&amp;quot;. For some reason, the rule does not seem to consistantly fill in the correct value. I&amp;#39;m resorting to code based on the onAfterChange event of the materials dropdown.&lt;/p&gt;&lt;p&gt;First question: What would cause the inconsistant behavior using the rule?&lt;/p&gt;&lt;p&gt;Second question: I have code (below)&amp;nbsp;to try and handle this but I can&amp;#39;t seem to&amp;nbsp;get the value from the secondary data source. Anyone have any suggestions?&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0in 0in 0pt;"&gt;&lt;a name="OLE_LINK1"&gt;&lt;/a&gt;&lt;span style="font-size:8pt;"&gt;&lt;font face="Times New Roman"&gt;var objXMLNodes = XDocument.View.GetSelectedNodes();&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0in 0in 0pt;"&gt;&lt;span&gt;&lt;span style="font-size:8pt;"&gt;&lt;font face="Times New Roman"&gt;if (objXMLNodes.Count &amp;gt; 0)&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0in 0in 0pt;"&gt;&lt;span&gt;&lt;span style="font-size:8pt;"&gt;&lt;font face="Times New Roman"&gt;{&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0in 0in 0pt;"&gt;&lt;span&gt;&lt;span style="font-size:8pt;"&gt;&lt;font face="Times New Roman"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;var sID = objXMLNodes(0).text;&lt;span&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;//Grab the value of the selected dropdown&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0in 0in 0pt;"&gt;&lt;font face="Times New Roman"&gt;&lt;span&gt;&lt;span style="font-size:8pt;"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;//Get to the &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span style="font-size:8pt;"&gt;DOM&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span style="font-size:8pt;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0in 0in 0pt;"&gt;&lt;font face="Times New Roman"&gt;&lt;span&gt;&lt;span style="font-size:8pt;"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;var doc = XDocument.DataObjects(&amp;quot;Contract_Sub_Categories2_DC&amp;quot;).&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span style="font-size:8pt;"&gt;DOM&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span style="font-size:8pt;"&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0in 0in 0pt;"&gt;&lt;span&gt;&lt;span style="font-size:8pt;"&gt;&lt;font face="Times New Roman"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;//Add the namespaces for the SelectSingleNodes&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0in 0in 0pt;"&gt;&lt;span&gt;&lt;span style="font-size:8pt;"&gt;&lt;font face="Times New Roman"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;doc.setProperty(&amp;quot;SelectionNamespaces&amp;quot;, &amp;quot;xmlns:dfs=&amp;#39;http://schemas.microsoft.com/office/infopath/2003/dataFormSolution&amp;#39;&amp;quot;);&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0in 0in 0pt;"&gt;&lt;span&gt;&lt;span style="font-size:8pt;"&gt;&lt;font face="Times New Roman"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;//Get the selected node&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0in 0in 0pt;"&gt;&lt;span&gt;&lt;span style="font-size:8pt;"&gt;&lt;font face="Times New Roman"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;var selectedNode = doc.selectSingleNode(&amp;quot;/dfs:myFields/dfs:dataFields/dsf:Contract_Sub_Categories2[@cs2ID=&amp;#39;&amp;quot; + sID + &amp;quot;&amp;#39;]&amp;quot;)&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0in 0in 0pt;"&gt;&lt;span&gt;&lt;span style="font-size:8pt;"&gt;&lt;font face="Times New Roman"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;//Set the form value&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0in 0in 0pt;"&gt;&lt;span&gt;&lt;span style="font-size:8pt;"&gt;&lt;font face="Times New Roman"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;objXMLNodes(1).text = selectedNode.attributes.getNamedItem(&amp;quot;cs2UOM&amp;quot;).text&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0in 0in 0pt;"&gt;&lt;span&gt;&lt;span style="font-size:8pt;"&gt;&lt;font face="Times New Roman"&gt;}&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</description></item></channel></rss>