<?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: Infopath crashes when I do search</title><link>https://www.infopathdev.com:443/forums/thread/18106.aspx</link><pubDate>Mon, 07 Nov 2005 21:29:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:18106</guid><dc:creator>vankireddy99</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/18106.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=18106</wfw:commentRss><description>// The following function handler is created by Microsoft Office InfoPath. Do not&lt;br /&gt;		// modify the type or number of arguments.&lt;br /&gt;		[InfoPathEventHandler(MatchPath="ClientSearch", EventType=InfoPathEventType.OnClick)]&lt;br /&gt;		public void ClientSearch_OnClick(DocActionEvent e)&lt;br /&gt;		{&lt;br /&gt;			try&lt;br /&gt;			{				&lt;br /&gt;				string sClientNumber = getNodeValue(e.Source, "/my:myFields/my:SClientNumber");&lt;br /&gt;				string sClientName = getNodeValue(e.Source, "/my:myFields/my:SClientName");&lt;br /&gt;&lt;br /&gt;				thisXDocument.View.SwitchView(aViewName[2]);&lt;br /&gt;								&lt;br /&gt;				setNodeValue(domClientSearch, "//dfs:queryFields/tns:ClientList/tns:sClientNumber", sClientNumber);&lt;br /&gt;				setNodeValue(domClientSearch, "//dfs:queryFields/tns:ClientList/tns:sClientName", sClientName);&lt;br /&gt;				&lt;br /&gt;				WebServiceAdapter2 oClientListAdapter =(WebServiceAdapter2) thisXDocument.DataAdapters["ClientList"];&lt;br /&gt;				thisXDocument.Errors.DeleteAll();&lt;br /&gt;				oClientListAdapter.Query();&lt;br /&gt;			}&lt;br /&gt;			catch (Exception ex)&lt;br /&gt;			{&lt;br /&gt;				thisXDocument.UI.Alert(ex.Message);&lt;br /&gt;			}&lt;br /&gt;		}</description></item><item><title>Re: Infopath crashes when I do search</title><link>https://www.infopathdev.com:443/forums/thread/18105.aspx</link><pubDate>Mon, 07 Nov 2005 21:13:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:18105</guid><dc:creator>franck</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/18105.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=18105</wfw:commentRss><description>Hi,&lt;br /&gt;&lt;br /&gt;You may want to post code if you need help (under the search button for example).&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;&lt;br /&gt;Franck Dauché</description></item><item><title>Infopath crashes when I do search</title><link>https://www.infopathdev.com:443/forums/thread/17991.aspx</link><pubDate>Mon, 07 Nov 2005 20:42:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17991</guid><dc:creator>vankireddy99</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17991.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=17991</wfw:commentRss><description>HI,&lt;br /&gt;&lt;br /&gt;I am using secondary data source (web service) for connecting to database from InfoPath. By default with out using any search criteria, I am pulling all the data from database. I am giving provision to search. Here I am providing 2 text boxes with Search button. As soon we click the Search button, I am passing the search criteria values to web services using .NET code behind and i am restricting the data to search criteria. This worked fine in 2 days. After that we try to search , it is giving error saying that &lt;b&gt;"Microsoft InfoPath encountered a problem and needs to close.".&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;I am using .NET code behind for all button actions and written all business logic in .net.  I debugged the code and checked it, everything is fine in the code, but still giving this error. &lt;br /&gt;&lt;br /&gt;I need to fix this issue ASAP, client is asking me to fix this immediately.&lt;br /&gt;&lt;br /&gt;Please help me to fix this issue. Quick help is highly appreciated. &lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;Amar</description></item></channel></rss>