<?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: Stuck in recursive deadlock Situation</title><link>https://www.infopathdev.com:443/forums/thread/91429.aspx</link><pubDate>Tue, 16 Jul 2013 10:29:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:91429</guid><dc:creator>zeeshan</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/91429.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=91429</wfw:commentRss><description>Thank you very much Jimmy. Thanks for your time and reply. This really helps me to solve my problem.</description></item><item><title>Re: Stuck in recursive deadlock Situation</title><link>https://www.infopathdev.com:443/forums/thread/91339.aspx</link><pubDate>Fri, 12 Jul 2013 18:28:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:91339</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/91339.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=91339</wfw:commentRss><description>&lt;p&gt;You shouldn&amp;#39;t need code to do this.&amp;nbsp;The way you can do this is:&lt;/p&gt;&lt;ol&gt;&lt;li&gt;Create a field called Calculating with the default value &lt;strong&gt;false&lt;/strong&gt; (preferably this would be in a secondary data source, but you can put it in the main data source if you&amp;#39;re not sure how to do that&lt;/li&gt;&lt;li&gt;Put a rule on the&amp;nbsp;Percent field as follows:&lt;br /&gt;Condition: Calculating is not equal to true&lt;br /&gt;Actions:&lt;/li&gt;&lt;ol&gt;&lt;li&gt;Set Calculating = &amp;quot;true&amp;quot;&lt;/li&gt;&lt;li&gt;Set Otherfield = Value * Percent&lt;/li&gt;&lt;li&gt;Set Calculating = &amp;nbsp;&amp;quot;false&amp;quot;&lt;/li&gt;&lt;/ol&gt;&lt;li&gt;Put a rule on the Otherfield field as follows:&lt;br /&gt;Condition: Calculating is not equal to true&lt;/li&gt;&lt;ol&gt;&lt;li&gt;Set Calculating = &amp;quot;true&amp;quot;&lt;/li&gt;&lt;li&gt;Set Percent = Otherfield div Value&lt;/li&gt;&lt;li&gt;Set Calculating = &amp;quot;false&amp;quot;&lt;/li&gt;&lt;/ol&gt;&lt;/ol&gt;&lt;p&gt;And that should do it.&lt;/p&gt;</description></item><item><title>Stuck in recursive deadlock Situation</title><link>https://www.infopathdev.com:443/forums/thread/91330.aspx</link><pubDate>Fri, 12 Jul 2013 09:06:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:91330</guid><dc:creator>zeeshan</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/91330.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=91330</wfw:commentRss><description>Hi there,

I am a newbie in Infopath Custom code development. So unable to figure this one out by myself. Will you please provide suggestions?

Problem statement:

I have textbox which takes % value as an input. And I am calculating percentage and displaying it in another textbox. This part works fine.

But I want to do reverse of that as well. It&amp;#39;s like when I change textbox value then accordingly it should calculate and update % field as well.

I am writing conditions on Changed event of textbox. 

Can anybody help me with this?

Thanks in advance.</description></item></channel></rss>