<?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: How to Manually Trigger "Changed_event" in Behind Form code</title><link>https://www.infopathdev.com:443/forums/thread/22898.aspx</link><pubDate>Thu, 06 Sep 2007 10:50:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22898</guid><dc:creator>spudy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22898.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=22898</wfw:commentRss><description>&lt;p&gt;I am presuming your dropdown list is bound to a webservice and&amp;nbsp;there is a field(textbox?) where a user types a new value to be added to the dropdownlist. An event then occurs that updates the datasource (webservice). At this point then you wish to have the dropdown list updated?&lt;/p&gt;
&lt;p&gt;I would manage this using a rule on the field(textbox?) where the value of the field changes(and is not blank) uses&amp;nbsp;an action to&amp;nbsp;submit&amp;nbsp;to the webservice is made. Immediately after this action use another action to query the webservice afresh using the same dataconnection that is used to populate&amp;nbsp;the dropdown.&lt;/p&gt;
&lt;p&gt;Hope I haven&amp;#39;t missed&amp;nbsp;the point completely.....&amp;nbsp;&lt;/p&gt;</description></item><item><title>How to Manually Trigger "Changed_event" in Behind Form code</title><link>https://www.infopathdev.com:443/forums/thread/22895.aspx</link><pubDate>Thu, 06 Sep 2007 06:07:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22895</guid><dc:creator>cocodog123</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22895.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=22895</wfw:commentRss><description>&lt;p&gt;Hi guys,&lt;/p&gt;
&lt;p&gt;&lt;u&gt;Situation&lt;/u&gt;:&amp;nbsp; I&amp;#39;m building a drop down list using &amp;quot;&lt;strong&gt;changed_event&lt;/strong&gt;&amp;quot; in behind form code (which uses a data connection via Web Service).&amp;nbsp; However, the user can upate or add new values to the drop down and for that I&amp;#39;ve a &lt;strong&gt;refresh button&lt;/strong&gt; which updates the data connection with these recent updates.&lt;/p&gt;
&lt;p&gt;&lt;u&gt;Problem&lt;/u&gt;:&amp;nbsp; Since the drop down list is builded on &amp;quot;&lt;strong&gt;Changed_Event&lt;/strong&gt;&amp;quot; then how can I trigger it from let&amp;#39;s say &amp;quot;rfresh&amp;quot; &lt;strong&gt;button_clicked&lt;/strong&gt; event in behind the form code.&lt;/p&gt;
&lt;p&gt;Possible Solution:&amp;nbsp; Let&amp;#39;s say if I&amp;#39;ve two methods in behind form code&lt;/p&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;public&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;void&lt;/font&gt;&lt;font size="2"&gt; List_Changed(&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;object&lt;/font&gt;&lt;font size="2"&gt; sender, XmlEventArgs e)&lt;/font&gt;&lt;/p&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#000000" size="2"&gt;public void Refresh_Clicked(object sender, ClickedEventArgs e)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; List_Changed(sender, e)&amp;nbsp;&amp;nbsp; &amp;lt;---------- how can I convert these parameters to the ones that List_Changed requires????&lt;br /&gt;}&lt;/font&gt;&lt;font color="#000000" size="2"&gt;&lt;br /&gt;&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;
&lt;p&gt;Any ideas or other ways around is greatly appreciated. &lt;/p&gt;</description></item></channel></rss>