<?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>Views</title><link>https://www.infopathdev.com:443/forums/42.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Setting a field value on a Form to a field on another Form</title><link>https://www.infopathdev.com:443/forums/thread/22810.aspx</link><pubDate>Fri, 31 Aug 2007 09:39:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22810</guid><dc:creator>B.Shiva Prasad</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22810.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=42&amp;PostID=22810</wfw:commentRss><description>&lt;p&gt;Hi norale,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;To write code on javascript go to Tools --&amp;gt; Programming --&amp;gt; Microsoft script editor&amp;nbsp; or Alt + Shift + F11. If you want to change the script editor go to Tools --&amp;gt; Form Options --&amp;gt; Advanced tab. In the Advanced tab go to &amp;quot;Programming language&amp;quot; section and select the language from &amp;quot;form code language&amp;quot; drop down.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Setting a field value on a Form to a field on another Form</title><link>https://www.infopathdev.com:443/forums/thread/22677.aspx</link><pubDate>Tue, 28 Aug 2007 07:19:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22677</guid><dc:creator>norale</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22677.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=42&amp;PostID=22677</wfw:commentRss><description>&lt;p&gt;Hi, &lt;/p&gt;
&lt;p&gt;Sorry, i&amp;#39;m a beginner..where can i put the javascript code if i want to call it from form?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks.&lt;/p&gt;</description></item><item><title>Re: Setting a field value on a Form to a field on another Form</title><link>https://www.infopathdev.com:443/forums/thread/20978.aspx</link><pubDate>Wed, 20 Jun 2007 05:59:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:20978</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/20978.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=42&amp;PostID=20978</wfw:commentRss><description>&lt;p&gt;hey Rajeev.&lt;/p&gt;&lt;p&gt;If you are just passing user/login ID it would probably be easier justt to use a Active Directory web service like you can download off the site.&amp;nbsp; How I have done it in the past is using one form to launch the other form and passing the parameters between the forms.&amp;nbsp; Other methods would be to put the data into a table or xml file and then pull it for the next form.&lt;/p&gt;&lt;p&gt;Depends on what exactly you need.&lt;/p&gt;&lt;p&gt;Here is a sample Java Script that works from the command line or could be called from a form which passes 4 variables.&lt;/p&gt;&lt;p&gt;//myscript.js&lt;/p&gt;&lt;p&gt;//parse parameters&lt;/p&gt;&lt;p&gt;if(WScript.Arguments.count()==4)&lt;/p&gt;&lt;p&gt;{&lt;/p&gt;&lt;p&gt;var param1 = WScript.Arguments.Item(0);&lt;/p&gt;&lt;p&gt;var param2 = WScript.Arguments.Item(1);&lt;/p&gt;&lt;p&gt;var param3 = WScript.Arguments.Item(2);&lt;/p&gt;&lt;p&gt;var param4 = WScript.Arguments.Item(3);&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;p&gt;//Start the application&lt;/p&gt;&lt;p&gt;var oApp = new ActiveXObject(&amp;quot;InfoPath.Application&amp;quot;);&lt;/p&gt;&lt;p&gt;WScript.Echo(&amp;quot;InfoPath Version: &amp;quot; + oApp.Version);&lt;/p&gt;&lt;p&gt;//Open an InfoPath document from the published template&lt;/p&gt;&lt;p&gt;var oXDocumentCollection = oApp.XDocuments;&lt;/p&gt;&lt;p&gt;var oXDocument = oXDocumentCollection.NewFromSolution(&amp;quot;&lt;a href="http://insideen/sites/HR/HRIS/Shared%20Documents/Test.xsn"&gt;http://insideen/sites/HR/HRIS/Shared%20Documents/Test.xsn&lt;/a&gt;&amp;quot;);&lt;/p&gt;&lt;p&gt;// Get pointers to the target fields&lt;/p&gt;&lt;p&gt;var oDpt = oXDocument.DOM.selectSingleNode(&amp;quot;//my:Number&amp;quot;);&lt;/p&gt;&lt;p&gt;var oName = oXDocument.DOM.selectSingleNode(&amp;quot;//my:Name&amp;quot;);&lt;/p&gt;&lt;p&gt;var oFT = oXDocument.DOM.selectSingleNode(&amp;quot;//my:FormType&amp;quot;);&lt;/p&gt;&lt;p&gt;var oTst = oXDocument.DOM.selectSingleNode(&amp;quot;//my:Test&amp;quot;); &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;//Update the fields&lt;/p&gt;&lt;p&gt;oDpt.text = param1;&lt;/p&gt;&lt;p&gt;oName.text = param2;&lt;/p&gt;&lt;p&gt;oFT.text = param3;&lt;/p&gt;&lt;p&gt;oTst.text = param4;&lt;/p&gt;&lt;p&gt;//Submit the Form&lt;/p&gt;&lt;p&gt;//oXDocument.Submit();&lt;/p&gt;&lt;p&gt;//Close up shop&lt;/p&gt;&lt;p&gt;//oXDocumentCollection = null;&lt;/p&gt;&lt;p&gt;//oApp.Quit();&lt;/p&gt;&lt;p&gt;//oApp = null;&lt;/p&gt;</description></item><item><title>Setting a field value on a Form to a field on another Form</title><link>https://www.infopathdev.com:443/forums/thread/20966.aspx</link><pubDate>Tue, 19 Jun 2007 20:42:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:20966</guid><dc:creator>tcsqa_engineer</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/20966.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=42&amp;PostID=20966</wfw:commentRss><description>&lt;p&gt;Hi All, &lt;/p&gt;&lt;p&gt;Any tips as to how I can set a Field-a value on Form-A to a Field-b&amp;nbsp;on Form-B.&lt;/p&gt;&lt;p&gt;Eg Scenario - LoginID is Field-a&amp;nbsp;on Form-A&lt;/p&gt;&lt;p&gt;UserID is Field-b&amp;nbsp;on Form-B&lt;/p&gt;&lt;p&gt;&amp;nbsp;After logging in when user is shown Form-B, the &lt;strong&gt;UserID&lt;/strong&gt; readonly field should have the LoginID value.&lt;/p&gt;&lt;p&gt;Thanks, &lt;/p&gt;&lt;p&gt;Rajeev.&lt;/p&gt;</description></item></channel></rss>