<?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: Getting value from ComboBox Secondary Data into a Text Field</title><link>https://www.infopathdev.com:443/forums/thread/71880.aspx</link><pubDate>Wed, 09 Nov 2011 01:44:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71880</guid><dc:creator>JAWSURGEON</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71880.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=71880</wfw:commentRss><description>&lt;p&gt;So now that you asked.....I have developed a very robust Database surgical practice management system that is client/server based and has been running for about 10 years.&lt;/p&gt;&lt;p&gt;This (nfopath form ) is the &amp;#39;medical record &amp;#39; part of that app. It will be pullling most of the information in from the db; but if it submits any information back I plan on implementing that task in code.&lt;/p&gt;&lt;p&gt;The forms will be stored with an index pointer in the db (the index will be created in the db and pulled into the form using a parameter when the form starts..then saved using the unique record pointer....and signed to lock either all or part of the record.&lt;/p&gt;&lt;p&gt;You are correct that I am unfamiliar with infopath...but I appreciate the suggestions...&lt;/p&gt;&lt;p&gt;I will be beta testing this for a while until we smooth out the kinks ( I actually have to build a custom ActiveX control for this form ..ugh...if you do any work with custom ActiveX controls let me know !!...that is really something I don&amp;#39;t want to do) &lt;br /&gt;&lt;/p&gt;&lt;p&gt;adam&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Getting value from ComboBox Secondary Data into a Text Field</title><link>https://www.infopathdev.com:443/forums/thread/71879.aspx</link><pubDate>Wed, 09 Nov 2011 00:46:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71879</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71879.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=71879</wfw:commentRss><description>&lt;p&gt;So, ummmm.... I know you haven&amp;#39;t asked for advice, here, but just in case you need some...&lt;/p&gt;&lt;p&gt;When you say:&lt;/p&gt;&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;JAWSURGEON:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;this form will be linking to an existing AccessDB and later to SQL DB&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;&lt;p&gt;What do you mean, exactly? Are you intending to write code in the form to submit it to your DB? Or use a web service, or some other approach? I ask in case you are unfamiliar with InfoPath and submitting to databases - with InfoPath, if you want to take advantage of the native capabilities for submitting to databases, you actually have to build your database first, then base the form off it. And I don&amp;#39;t believe it is possible to switch from Access to SQL at a later point (without rebuilding the form) - I may be wrong about that piece, but I was concerned you may be under the misapprehension that you can build your form and just add a submit button and have it submit to a DB. If you intend to build a DB bound form, I&amp;#39;d recommend you start with SQL to begin with (and, in general, I&amp;#39;m not a fan of DB bound forms as I find the tight coupling to be frustrating at the very least and often infuriating) - SQL has a free &amp;quot;Express&amp;quot; SKU that would be enough to get you started...&lt;/p&gt;</description></item><item><title>Re: Getting value from ComboBox Secondary Data into a Text Field</title><link>https://www.infopathdev.com:443/forums/thread/71872.aspx</link><pubDate>Tue, 08 Nov 2011 20:26:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71872</guid><dc:creator>JAWSURGEON</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71872.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=71872</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I agree totally.....I have learned over many years that nomenclature and naming conventions are really important !!&lt;/p&gt;&lt;p&gt;I am only 2 weeks into this project in between 10 gazilliion other things !! But this form will be linking to an existing AccessDB and later to SQL DB...so things need to be tidy. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Getting value from ComboBox Secondary Data into a Text Field</title><link>https://www.infopathdev.com:443/forums/thread/71871.aspx</link><pubDate>Tue, 08 Nov 2011 19:39:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71871</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71871.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=71871</wfw:commentRss><description>Oh, great, glad that worked for you. As an aside - if this form is not in production yet, you&amp;#39;ll want to be sure to tidy up your main data source before it is (I can tell by the way you are naming things that this is most likely your intent, but I since I noticed it, I thought I&amp;#39;d remind you). It is always hard to figure out what field123 is after a few months in production when you go to make a change to the template. :)</description></item><item><title>Re: Getting value from ComboBox Secondary Data into a Text Field</title><link>https://www.infopathdev.com:443/forums/thread/71869.aspx</link><pubDate>Tue, 08 Nov 2011 19:04:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71869</guid><dc:creator>JAWSURGEON</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71869.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=71869</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Great thanks so much for the tip.&lt;/p&gt;&lt;p&gt;Works just fine !! &lt;br /&gt;&lt;/p&gt;&lt;p&gt;...This project is just beginning and I am sure to have more questions.&lt;/p&gt;&lt;p&gt;All the Best.&lt;/p&gt;&lt;p&gt;Adam &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Getting value from ComboBox Secondary Data into a Text Field</title><link>https://www.infopathdev.com:443/forums/thread/71864.aspx</link><pubDate>Tue, 08 Nov 2011 15:44:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71864</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71864.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=71864</wfw:commentRss><description>&lt;p&gt;So, I&amp;#39;ve added a rule to the&amp;nbsp;cboICDMCode field. It sets the value of the my:fldICDM_Text field. It uses the current() function in the filter for the formula for the value.&lt;/p&gt;&lt;p&gt;Give this a try - you&amp;#39;ll need to disable your current code on the field to verify the rule is working (if there is code on the field in this copy). Right click the link in the message header, save the file locally, right click the saved file and select design to open in design mode.&lt;/p&gt;</description></item><item><title>Re: Getting value from ComboBox Secondary Data into a Text Field</title><link>https://www.infopathdev.com:443/forums/thread/71857.aspx</link><pubDate>Tue, 08 Nov 2011 03:17:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71857</guid><dc:creator>JAWSURGEON</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71857.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=71857</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Ok...uploaded.&lt;/p&gt;</description></item><item><title>Re: Getting value from ComboBox Secondary Data into a Text Field</title><link>https://www.infopathdev.com:443/forums/thread/71854.aspx</link><pubDate>Tue, 08 Nov 2011 01:43:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71854</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71854.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=71854</wfw:commentRss><description>Can you attach your form to a reply? Under the Options tab...</description></item><item><title>Re: Getting value from ComboBox Secondary Data into a Text Field</title><link>https://www.infopathdev.com:443/forums/thread/71853.aspx</link><pubDate>Tue, 08 Nov 2011 01:37:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71853</guid><dc:creator>JAWSURGEON</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71853.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=71853</wfw:commentRss><description>&lt;p&gt;Hillary:&lt;/p&gt;&lt;p&gt;I have spent some time trying to get the &amp;#39;rules&amp;quot; based approach to accomplish what we just did in code..because it seems like it would be faster to implement..but I can&amp;#39;t get it to work. I tried editing the xpath in the rule ..but that did not work.&lt;/p&gt;&lt;p&gt;So what I want to accomplish is ;&lt;/p&gt;&lt;p&gt;ComboBox1 : strIProcCode&amp;gt;&amp;gt;use makes choice &amp;gt;&amp;gt;&amp;gt;rule fires &amp;gt;&amp;gt;&amp;gt;&amp;gt;populate TextBox with strProcCodeDesc&lt;/p&gt;&lt;p&gt;I set up&amp;nbsp; a 2 column repeating table with : comboBox1 and txtDescription&lt;/p&gt;&lt;p&gt;Also setup a repeating section with the same fields: combobox1 and txtDesription&lt;/p&gt;&lt;p&gt;I can get the comboboxes to select unique values; but the value in txtDescription remains the same thing...always; &lt;/p&gt;&lt;p&gt;The Field I want to set is: /my:myFields/my:Exam/my:group106/my:group107/my:fldProcText; however I cannot enter or change the value in the Rules editor.&lt;/p&gt;&lt;p&gt;The Value I want in the text box is:&amp;nbsp; xdXDocument:GetDOM(&amp;quot;tblProcCodes&amp;quot;)/dfs:myFields/dfs:dataFields/d:tblProcCodes[@strProcCode = &amp;#39;&amp;quot;&amp;nbsp; &amp;amp; e.newvalue * &amp;quot;&amp;#39;]/@strProcCodeDesc&lt;/p&gt;&lt;p&gt;There must be something easy that I am missing !!!&lt;/p&gt;&lt;p&gt;thanks&lt;/p&gt;&lt;p&gt;Adam&lt;/p&gt;</description></item><item><title>Re: Getting value from ComboBox Secondary Data into a Text Field</title><link>https://www.infopathdev.com:443/forums/thread/71852.aspx</link><pubDate>Tue, 08 Nov 2011 01:37:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71852</guid><dc:creator>JAWSURGEON</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71852.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=71852</wfw:commentRss><description>&lt;p&gt;Hillary:&lt;/p&gt;&lt;p&gt;I have spent some time trying to get the &amp;#39;rules&amp;quot; based approach to accomplish what we just did in code..because it seems like it would be faster to implement..but I can&amp;#39;t get it to work. I tried editing the xpath in the rule ..but that did not work.&lt;/p&gt;&lt;p&gt;So what I want to accomplish is ;&lt;/p&gt;&lt;p&gt;ComboBox1 : strIProcCode&amp;gt;&amp;gt;use makes choice &amp;gt;&amp;gt;&amp;gt;rule fires &amp;gt;&amp;gt;&amp;gt;&amp;gt;populate TextBox with strProcCodeDesc&lt;/p&gt;&lt;p&gt;I set up&amp;nbsp; a 2 column repeating table with : comboBox1 and txtDescription&lt;/p&gt;&lt;p&gt;Also setup a repeating section with the same fields: combobox1 and txtDesription&lt;/p&gt;&lt;p&gt;I can get the comboboxes to select unique values; but the value in txtDescription remains the same thing...always; &lt;/p&gt;&lt;p&gt;The Field I want to set is: /my:myFields/my:Exam/my:group106/my:group107/my:fldProcText; however I cannot enter or change the value in the Rules editor.&lt;/p&gt;&lt;p&gt;The Value I want in the text box is:&amp;nbsp; xdXDocument:GetDOM(&amp;quot;tblProcCodes&amp;quot;)/dfs:myFields/dfs:dataFields/d:tblProcCodes[@strProcCode = &amp;#39;&amp;quot;&amp;nbsp; &amp;amp; e.newvalue * &amp;quot;&amp;#39;]/@strProcCodeDesc&lt;/p&gt;&lt;p&gt;There must be something easy that I am missing !!!&lt;/p&gt;&lt;p&gt;thanks&lt;/p&gt;&lt;p&gt;Adam&lt;/p&gt;</description></item><item><title>Re: Getting value from ComboBox Secondary Data into a Text Field</title><link>https://www.infopathdev.com:443/forums/thread/71845.aspx</link><pubDate>Mon, 07 Nov 2011 21:07:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71845</guid><dc:creator>JAWSURGEON</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71845.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=71845</wfw:commentRss><description>&lt;p&gt;This fixed it...now it works. I had to use the&amp;nbsp; &amp;quot;../&amp;quot;&lt;/p&gt;&lt;font size="2"&gt;&lt;p&gt;ICDMcode.SelectSingleNode(&lt;/p&gt;&lt;/font&gt;&lt;p&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;../my:fldICDM_Text&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Me&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.NamespaceManager).SetValue(ICDMdescr)&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;I am still going to try to figure how to do the non-programmatic method since its a heck of a lot easier.&lt;/p&gt;&lt;p&gt;Regards,&lt;/p&gt;&lt;p&gt;Adam&lt;/p&gt;&lt;font size="2"&gt;&lt;/font&gt;</description></item><item><title>Re: Getting value from ComboBox Secondary Data into a Text Field</title><link>https://www.infopathdev.com:443/forums/thread/71844.aspx</link><pubDate>Mon, 07 Nov 2011 20:50:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71844</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71844.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=71844</wfw:commentRss><description>&lt;p&gt;You don&amp;#39;t want to confuse controls on the form with the actual schema structure of the form. Repeating groups can bound to a number of controls - repeating tables, repeating sections, sections that don&amp;#39;t repeat, etc.&lt;/p&gt;&lt;p&gt;As long as the field bound to the combo box is in the same repeating group as the field bound to the text box, you should be able to use a relative XPath.&lt;/p&gt;</description></item><item><title>Re: Getting value from ComboBox Secondary Data into a Text Field</title><link>https://www.infopathdev.com:443/forums/thread/71843.aspx</link><pubDate>Mon, 07 Nov 2011 20:46:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71843</guid><dc:creator>JAWSURGEON</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71843.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=71843</wfw:commentRss><description>&lt;p&gt;Well its not actually in a repeating group; its in the first column of a repeating table (not sure if that distinction is important here).&lt;/p&gt;&lt;p&gt;I am going to return to this later this evening...and work on it.&lt;/p&gt;&lt;p&gt;Thanks for now. I will touch base tomorrow if needed.&lt;/p&gt;&lt;p&gt;Thanks again for all your input.&lt;/p&gt;&lt;p&gt;Adam&lt;/p&gt;</description></item><item><title>Re: Getting value from ComboBox Secondary Data into a Text Field</title><link>https://www.infopathdev.com:443/forums/thread/71842.aspx</link><pubDate>Mon, 07 Nov 2011 20:41:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71842</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71842.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=71842</wfw:commentRss><description>&lt;p&gt;If the field the combo box is bound to is in the repeating group, then it should be able to set the value of a field within the repeating group when it changes - and only the field in that instance. Attach your template under the Options tab of a reply if you&amp;#39;d like me to set up a rule so you can see that.&lt;/p&gt;&lt;p&gt;ICDMcode is the current repeating node, right? I see you are using e.Site. The problem again, then, is your XPath - it needs to be relative. I&amp;#39;ll guess that ICDMcode is actually at the current instance of my:grpICDMCodes...&lt;font size="2"&gt;&lt;/font&gt;&lt;/p&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;p&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#000000"&gt;ICDMcode.SelectSingleNode(&lt;/font&gt;&amp;quot;my:fldICDM_Text&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Me&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.NamespaceManager).SetValue(ICDMdescr)&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;/p&gt;</description></item><item><title>Re: Getting value from ComboBox Secondary Data into a Text Field</title><link>https://www.infopathdev.com:443/forums/thread/71840.aspx</link><pubDate>Mon, 07 Nov 2011 20:31:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71840</guid><dc:creator>JAWSURGEON</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71840.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=71840</wfw:commentRss><description>&lt;p&gt;1. The Dim ICDMdescr as string...indeed retrieves the appropirate value !! thanks&lt;/p&gt;&lt;p&gt;2. Since this is a repeating table; the combo box on EACH line needs to insert the right text into that text box on it&amp;#39;s own line.&lt;/p&gt;&lt;p&gt;the following code only inserts it on FIRST line of the table and no others....&lt;/p&gt;&lt;font size="2"&gt;&lt;p&gt;ICDMcode.SelectSingleNode(&lt;/p&gt;&lt;/font&gt;&lt;p&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;/my:myFields/my:Exam/my:grpICDM/my:grpICDMCodes/my:fldICDM_Text&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Me&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.NamespaceManager).SetValue(ICDMdescr)&lt;/font&gt;&lt;font size="2"&gt;&amp;nbsp;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;I am guess I need to select the parent node or some other device to select the proper correspongind test box&lt;/p&gt;&lt;p&gt;Code 1............................................Code1 description&lt;/p&gt;&lt;p&gt;Code 2...........................................Code 2 description &lt;/p&gt;&lt;p&gt;and so forth...&lt;/p&gt;&lt;p&gt;BTW...I tried creating a &amp;#39;rule&amp;#39; that looks up the data value after the user selects the combobox item... once again this has the disadvantage that it puts the same descripton in very line item.&lt;/p&gt;&lt;p&gt;&amp;nbsp;Thanks for all you help in advance.&lt;/p&gt;&lt;p&gt;ADam&lt;/p&gt;</description></item></channel></rss>