<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Form and DataBase</title><link>https://www.infopathdev.com:443/forums/thread/9849.aspx</link><pubDate>Sun, 11 Jun 2006 07:47:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9849</guid><dc:creator>liorlankri</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9849.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9849</wfw:commentRss><description>It's work!!!!&lt;br /&gt;&lt;br /&gt;Thank you</description></item><item><title>Re: Form and DataBase</title><link>https://www.infopathdev.com:443/forums/thread/9848.aspx</link><pubDate>Thu, 08 Jun 2006 14:20:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9848</guid><dc:creator>Abhishek</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9848.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9848</wfw:commentRss><description>Hi,&lt;br /&gt;I have taken an example from the SDK.&lt;br /&gt;Just compare ur syntax with this one.May be u have gone wrong somewhere with the double quotes and single quotes.&lt;br /&gt;&lt;br /&gt;XDocument.GetDOM("Customers (USA)").setProperty("SelectionNamespaces",&lt;br /&gt;   'xmlns:q="http://schemas.microsoft.com/office/infopath/2003/ado/queryFields" ' +&lt;br /&gt;   'xmlns:d="http://schemas.microsoft.com/office/infopath/2003/ado/dataFields" ' +&lt;br /&gt;   'xmlns:dfs="http://schemas.microsoft.com/office/infopath/2003/dataFormSolution"');&lt;br /&gt;objCustomerLookupNode = XDocument.GetDOM("Customers(USA)")&lt;br /&gt;   .selectSingleNode( "//d:Customers[@CustomerID='" + strCustomerId + "']");&lt;br /&gt;&lt;br /&gt;Take a look at the single Quotes and double Quotes.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Take a look at the following link&lt;br /&lt;a target="_blank" href=http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ipsdk/html/ipsdkWorkingSecondaryInILForm_HV01074927.asp&gt;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ipsdk/html/ipsdkWorkingSecondaryInILForm_HV01074927.asp&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;regards,&lt;br /&gt;Abhishek.</description></item><item><title>Re: Form and DataBase</title><link>https://www.infopathdev.com:443/forums/thread/9847.aspx</link><pubDate>Thu, 08 Jun 2006 04:44:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9847</guid><dc:creator>liorlankri</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9847.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9847</wfw:commentRss><description>I still dont understand the correct syntax to this line&lt;br /&gt;&lt;br /&gt;dataDom.setProperty "SelectionNamespaces", "xmlns:dfs="http://schemas.microsoft.com/office/infopath/2003/dataFormSolution"" "xmlns:tns="http://tempuri.org/""&lt;br /&gt;&lt;br /&gt;I get error this&lt;br /&gt;"Expected end of statement"&lt;br /&gt;How to fix it? what's the syntax?</description></item><item><title>Re: Form and DataBase</title><link>https://www.infopathdev.com:443/forums/thread/9846.aspx</link><pubDate>Wed, 07 Jun 2006 13:40:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9846</guid><dc:creator>Abhishek</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9846.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9846</wfw:commentRss><description>hi,&lt;br /&gt;Open the Manifest.xsf in a text editor.&lt;br /&gt;U can find the "dfs" or "tns" defns there.&lt;br /&gt;Expected end of statement is becoz u have not given a semicolon at the end of that particular line.&lt;br /&gt;regards,&lt;br /&gt;Abhishek</description></item><item><title>Re: Form and DataBase</title><link>https://www.infopathdev.com:443/forums/thread/9845.aspx</link><pubDate>Wed, 07 Jun 2006 12:18:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9845</guid><dc:creator>liorlankri</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9845.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9845</wfw:commentRss><description>What should be the "dfs" defenition and the "tns" defenition??</description></item><item><title>Re: Form and DataBase</title><link>https://www.infopathdev.com:443/forums/thread/9844.aspx</link><pubDate>Wed, 07 Jun 2006 11:46:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9844</guid><dc:creator>liorlankri</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9844.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9844</wfw:commentRss><description>I have defenition problem&lt;br /&gt;dataDom.setProperty ("SelectionNamespaces","xmlns:dfs="http://schemas.microsoft.com/office/infopath/2003/dataFormSolution"" "xmlns:tns="http://tempuri.org/"")&lt;br /&gt;&lt;br /&gt;I get error this&lt;br /&gt;"Expected end of statement"&lt;br /&gt;What's not good?</description></item><item><title>Re: Form and DataBase</title><link>https://www.infopathdev.com:443/forums/thread/9843.aspx</link><pubDate>Wed, 07 Jun 2006 05:20:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9843</guid><dc:creator>Abhishek</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9843.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9843</wfw:commentRss><description>U dont have to do that.&lt;br /&gt;Just go to ur datasource task pane.Select ur secondary datasource in the dropdown.&lt;br /&gt;U can find all the datafields.U just need to drag that field to ur form.&lt;br /&gt;&lt;br /&gt;But data in the secondary data source is not saved when u save or submit the form.&lt;br /&gt;So u can transfer it to ur main data source if u need it to be saved in the form's xml when u save the form.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;abhishek&lt;br /&gt;</description></item><item><title>Re: Form and DataBase</title><link>https://www.infopathdev.com:443/forums/thread/9842.aspx</link><pubDate>Mon, 05 Jun 2006 10:34:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9842</guid><dc:creator>liorlankri</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9842.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9842</wfw:commentRss><description>O.K! Thank you.&lt;br /&gt;But I need to get a value back. How to cath it? can I do&lt;br /&gt;bool Val=XDocument.DataObjects("Name of your Data Connection").Query(); ?</description></item><item><title>Re: Form and DataBase</title><link>https://www.infopathdev.com:443/forums/thread/9841.aspx</link><pubDate>Mon, 05 Jun 2006 08:47:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9841</guid><dc:creator>Abhishek</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9841.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9841</wfw:commentRss><description>Hi Liorlankri,&lt;br /&gt;This is the code to query the receive data connection to a web service.It also shows u how to send a input parameter to the web service.&lt;br /&gt;&lt;br /&gt;It is in C# though.For JScript, it requires very minor modifications.&lt;br /&gt;&lt;br /&gt;IXMLDOMDocument3 wsDOM = IXMLDOMDocument3)thisXDocument.DataObjects["&amp;lt;DataConnection Name&amp;gt;"].DOM;&lt;br /&gt;&lt;br /&gt;//Set the SelectionNamespaces so that you can find the correct field&lt;br /&gt;wsDOM.setProperty("SelectionNamespaces","xmlns:dfs=\"http://schemas.microsoft.com/office/infopath/2003/dataFormSolution\"" &lt;br /&gt;					+ " xmlns:tns=\"http://tempuri.org/\"");&lt;br /&gt;&lt;br /&gt;//Set Web Service input parameters&lt;br /&gt;wsDOM.selectSingleNode					("/dfs:myFields/dfs:queryFields/tns:FindADSUsers1/tns:FirstOrLastName").text =e.Source.selectSingleNode("my:RoleApproverEditable").nodeTypedValue.ToString();&lt;br /&gt;&lt;br /&gt;//Requery the webservice datasource&lt;br /&gt;thisXDocument.DataObjects["&amp;lt;DataConnection Name&amp;gt;"].Query();&lt;br /&gt;&lt;br /&gt;Now in JScript, u need to do minor modifications like&lt;br /&gt;replace "thisXDocument" needs to be replaced by "XDocument".&lt;br /&gt;&lt;br /&gt;So the final requerying the webservice statement would be like...&lt;br /&gt;&lt;br /&gt;XDocument.DataObjects("Name of your Data Connection").Query();&lt;br /&gt;&lt;br /&gt;regards,&lt;br /&gt;Abhishek</description></item><item><title>Re: Form and DataBase</title><link>https://www.infopathdev.com:443/forums/thread/9840.aspx</link><pubDate>Sun, 04 Jun 2006 08:54:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9840</guid><dc:creator>liorlankri</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9840.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9840</wfw:commentRss><description>By the way!&lt;br /&gt;Can I do it by using ADOAdapter Object of InfoPath (without using web service)?</description></item><item><title>Re: Form and DataBase</title><link>https://www.infopathdev.com:443/forums/thread/9839.aspx</link><pubDate>Sun, 04 Jun 2006 05:14:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9839</guid><dc:creator>liorlankri</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9839.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9839</wfw:commentRss><description>Thank you Abhishek!&lt;br /&gt;You help me a lot&lt;br /&gt;Now I need code example (in JavaScropt or VBscript) to query the "Receive" dataconnection to my webservice.&lt;br /&gt;Can you help me with this??&lt;br /&gt;</description></item><item><title>Re: Form and DataBase</title><link>https://www.infopathdev.com:443/forums/thread/9838.aspx</link><pubDate>Wed, 31 May 2006 11:37:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9838</guid><dc:creator>Abhishek</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9838.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9838</wfw:commentRss><description>Hi Liorlankri,&lt;br /&gt;&lt;br /&gt;As specified in case2, u should create a Dataconnection to the web service.And u should create a "Receive" data connection to ur web service.&lt;br /&gt;&lt;br /&gt;By using "Receive" dataconnection,u will be able to send data from ur form to the webservice and also receive data from ur webservice.&lt;br /&gt;&lt;br /&gt;And regarding ur 3rd question, u cannot do it without using a webservice becoz u donot have an option to query the database when u establish a "Receive" data connection to it.&lt;br /&gt;&lt;br /&gt;Now to avoid installing .NET framework in users machine, write JScript code to query the "Receive" dataconnection to ur webservice.&lt;br /&gt;&lt;br /&gt;When querying, donot forget to pass the "IDNumber" to ur queryfield in ur secondary datasource.&lt;br /&gt;&lt;br /&gt;regards,&lt;br /&gt;Abhishek&lt;br /&gt;&lt;br /&gt;</description></item><item><title>Form and DataBase</title><link>https://www.infopathdev.com:443/forums/thread/5630.aspx</link><pubDate>Wed, 31 May 2006 10:12:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:5630</guid><dc:creator>liorlankri</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/5630.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=5630</wfw:commentRss><description>I have an InfoPath form. One of it's fill out fileds is: "IDnumber"&lt;br /&gt;I want that after the user enter the IDnumber, It will searching for this IDnumber in the SQL server DB and will return answer if it exist in the SQL DataBase (I know I need to operate OnAfterChange Event).&lt;br /&gt;&lt;br /&gt;I dont need the code for this I just want to know the best way to this:&lt;br /&gt;&lt;br /&gt;Must notice that:&lt;br /&gt;1) I desgined the form from a New Blank Form (not from data connection).&lt;br /&gt;2) My form can be .NET project (c#) or regular form designer (Code in script editor)&lt;br /&gt;&lt;br /&gt;I will give some leading question&lt;br /&gt;1) should I create (case of .NET code) a web referernce to a WEb Service that contain method that check it, and to operate the&lt;b&gt; WS &lt;/b&gt;from the form's code (by the Web Refernce object)?&lt;br /&gt;&lt;br /&gt;2) should I create &lt;b&gt;Data Connection &lt;/b&gt;to the specific method of the WS that check it (case of not .NET project or .NET project) and to operate this &lt;b&gt;Data Connection&lt;/b&gt; from the form's code (VBscript or Javascript or c#). If yes so I want to know which type should the Data Connection be (Submit or Recive)? How to operate this Data Connection from the code (need code Example)?&lt;br /&gt;&lt;br /&gt;3) Can I do it without WS? How?&lt;br /&gt;&lt;br /&gt;&lt;b&gt;I'm asking this because:&lt;/b&gt;&lt;br /&gt;1) I want to avoide built my project in .NET (I dont want the users to install .NET Framework on their machins).&lt;br /&gt;2) In order to do 1 I need to avoid adding Web Reference (to a WS) &lt;br /&gt;3) I want to avoid give my form a Full Trust Security (and if I use Web Refernce I will need to do this) since I dont want to install it on each machin or to sign it!&lt;br /&gt;&lt;br /&gt;Must Help and answers!!</description></item></channel></rss>