<?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: Parent node Changed Event..</title><link>https://www.infopathdev.com:443/forums/thread/86619.aspx</link><pubDate>Thu, 31 Jan 2013 08:16:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:86619</guid><dc:creator>Ravik</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/86619.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=86619</wfw:commentRss><description>Hi Hillary!

Yes. I am using IP 2010, our coding is done in Visual studio 2008. Thanks</description></item><item><title>Re: Parent node Changed Event..</title><link>https://www.infopathdev.com:443/forums/thread/86602.aspx</link><pubDate>Wed, 30 Jan 2013 17:34:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:86602</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/86602.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=86602</wfw:commentRss><description>Are you using IP 2010? If so, I&amp;#39;d expect the code to open in VSTA. What version of IP are you using? What is the development environment you used to write the code originally?</description></item><item><title>Re: Parent node Changed Event..</title><link>https://www.infopathdev.com:443/forums/thread/86592.aspx</link><pubDate>Wed, 30 Jan 2013 08:48:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:86592</guid><dc:creator>Ravik</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/86592.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=86592</wfw:commentRss><description>Hi Hilary! followed your advice, but when i opened the code with the VSTA and set breakpoints. The debug option is inactive. Please see the attachment. Thanks</description></item><item><title>Re: Parent node Changed Event..</title><link>https://www.infopathdev.com:443/forums/thread/86576.aspx</link><pubDate>Tue, 29 Jan 2013 19:31:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:86576</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/86576.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=86576</wfw:commentRss><description>Yes, but I mean run the form in preview on your machine and debug the code from Visual Studio. &lt;a href="http://msdn.microsoft.com/en-us/library/aa947485(v=office.11).aspx"&gt;http://msdn.microsoft.com/en-us/library/aa947485(v=office.11).aspx&lt;/a&gt;</description></item><item><title>Re: Parent node Changed Event..</title><link>https://www.infopathdev.com:443/forums/thread/86575.aspx</link><pubDate>Tue, 29 Jan 2013 17:50:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:86575</guid><dc:creator>Ravik</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/86575.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=86575</wfw:commentRss><description>Debug is something that i created within the form to capture the process. So i can see how the system is running.</description></item><item><title>Re: Parent node Changed Event..</title><link>https://www.infopathdev.com:443/forums/thread/86570.aspx</link><pubDate>Tue, 29 Jan 2013 17:24:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:86570</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/86570.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=86570</wfw:commentRss><description>Have you actually run the code in debug? With a break point on the first line (the if statement)?</description></item><item><title>Re: Parent node Changed Event..</title><link>https://www.infopathdev.com:443/forums/thread/86568.aspx</link><pubDate>Tue, 29 Jan 2013 17:14:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:86568</guid><dc:creator>Ravik</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/86568.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=86568</wfw:commentRss><description>Hi Hilary! Hope this is around its much more clearer. I have taken a screenshot which i have uploaded. As you can see from the picture that the Initial assignee was Ravikumar but it was changed to the administrator but the debug is showing &amp;#39;&amp;#39; to &amp;#39;administrator&amp;#39;. Is this make any sense to you???. Thanks again</description></item><item><title>Re: Parent node Changed Event..</title><link>https://www.infopathdev.com:443/forums/thread/86558.aspx</link><pubDate>Tue, 29 Jan 2013 15:28:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:86558</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/86558.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=86558</wfw:commentRss><description>It may be your browser or it may just be the pasting from Word - who knows. Can you just attach a screenshot under the Options tab, like I did?</description></item><item><title>Re: Parent node Changed Event..</title><link>https://www.infopathdev.com:443/forums/thread/86537.aspx</link><pubDate>Tue, 29 Jan 2013 08:52:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:86537</guid><dc:creator>Ravik</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/86537.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=86537</wfw:commentRss><description>I still dont know why my text looks untidy, i edited in word document to make it clearer. But as soon as i post it, it seems to look all messy. Im terribly sorry Hilary. Thanks</description></item><item><title>Re: Parent node Changed Event..</title><link>https://www.infopathdev.com:443/forums/thread/86536.aspx</link><pubDate>Tue, 29 Jan 2013 08:49:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:86536</guid><dc:creator>Ravik</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/86536.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=86536</wfw:commentRss><description>Hi Hilary, apologise for my previous post. I dint realise the text were all wrapped up. I was trying to show my debug log, well I have cut short my debug log and this is how it looks like. You can clearly see that changing assignee from &amp;#39;&amp;#39; to 

&amp;#39;administrator&amp;#39;, where My Old Value is meant to be Ravikumar, but unfortunately i don’t see that for some reason. Is this make any sense to you???

KCAD Case and Action Tracking Systemhttp://kcad.myplanb.it/cats28/01/2013 09:56:53 (ravi.kumar): Changing assignee from &amp;#39;&amp;#39; to &amp;#39;administrator&amp;#39;28/01/2013 09:56:53 (ravi.kumar): Assignee Changed28/01/2013 09:57:10 (ravi.kumar) 

Changing assignee from &amp;#39;&amp;#39; to &amp;#39;ravi.kumar&amp;#39;28/01/2013 09:57:50 (ravi.kumar): Assignee Changed28/01/2013 09:57:54 (ravi.kumar).</description></item><item><title>Re: Parent node Changed Event..</title><link>https://www.infopathdev.com:443/forums/thread/86534.aspx</link><pubDate>Tue, 29 Jan 2013 00:39:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:86534</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/86534.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=86534</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m sorry - I&amp;#39;m having a terrible time trying to read your post!&lt;/p&gt;&lt;p&gt;What are you trying to show?&lt;/p&gt;</description></item><item><title>Re: Parent node Changed Event..</title><link>https://www.infopathdev.com:443/forums/thread/86491.aspx</link><pubDate>Mon, 28 Jan 2013 10:19:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:86491</guid><dc:creator>Ravik</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/86491.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=86491</wfw:commentRss><description>Good Morning Hilary!

Thanks for your reply.i just want to say that  i am honoured to get a reply from an Infopath Genius. Since i started working with infopath, which is only month. i have taken few of your examples and implemented on my project. Well back to my question. If you can see the below Debug which i created to shows me that Changin assignee from &amp;quot; to &amp;#39;administrator&amp;#39;, which is meant to be &amp;#39;ravikumar&amp;#39; to &amp;#39;administrator&amp;#39; not sure why this happening. The system is meant to check the oldvalue and repalce it with a new value. Even though the system lets me assign to a new assignee but also it lets me reassign to the same assignee,which it shouldnt. Not sure if this all make any sense to you.

Thanks for your time.


KCAD Case and Action Tracking System

http://kcad.myplanb.it/cats
28/01/2013 09:56:53 (ravi.kumar): Changing assignee from &amp;#39;&amp;#39; to &amp;#39;administrator&amp;#39;
28/01/2013 09:56:53 (ravi.kumar): Assignee Changed
28/01/2013 09:57:10 (ravi.kumar): Assign Action Button Clicked
28/01/2013 09:57:10 (ravi.kumar): Setting Current Action To: GEN-000485-01
28/01/2013 09:57:14 (ravi.kumar): Confirm Assign Action Button Clicked
28/01/2013 09:57:14 (ravi.kumar): Action list found
28/01/2013 09:57:14 (ravi.kumar): Looking for action: GEN-000485-01
28/01/2013 09:57:14 (ravi.kumar): Found action: GEN-000485-01
28/01/2013 09:57:14 (ravi.kumar): Assigning action...
28/01/2013 09:57:14 (ravi.kumar): Action ID: GEN-000485-01
28/01/2013 09:57:14 (ravi.kumar): Action Title: testing 
28/01/2013 09:57:14 (ravi.kumar): Action Priority: 2
28/01/2013 09:57:14 (ravi.kumar): Action Assignee: PLANB-02\administrator
28/01/2013 09:57:14 (ravi.kumar): Action Assignee Formatted: administrator
28/01/2013 09:57:14 (ravi.kumar): Action Deadline: 2013-01-28
28/01/2013 09:57:14 (ravi.kumar): Action Status: Open
28/01/2013 09:57:14 (ravi.kumar): Query: GEN-000485-01
28/01/2013 09:57:14 (ravi.kumar): Assignee Value: 1;#PLANB-02\administrator
28/01/2013 09:57:15 (ravi.kumar): Assignee Changed Reset
28/01/2013 09:57:15 (ravi.kumar): Mail From: kcad.cats.test@myplanb.it
28/01/2013 09:57:15 (ravi.kumar): Mail To: arrash.nekonam@insiso.co.uk
28/01/2013 09:57:15 (ravi.kumar): Subject: KCAD CATS - Case &amp;#39;GEN-000485&amp;#39; Action (GEN-000485-01) Assigned
28/01/2013 09:57:15 (ravi.kumar): Body: An action for Case &amp;#39;GEN-000485&amp;#39; has been assigned to you, this case is now open:

CASE DETAILS
------------------------------
Case ID: GEN-000485

Case Type: General (GEN)

Originator: ravi.kumar

Person In Charge: ravi.kumar

Title: Monday Morning Testing

Description: Testing

Date: 2013-01-28

Location: KCA Deutag, Poland

Status: Actions In Progress

Link: http://kcad.myplanb.it/CATS/_layouts/FormServer.aspx?XmlLocation=/CATS/General%20Cases/GEN-000485.xml&amp;amp;DefaultItemOpen=1&amp;amp;Source=/CATS



Regards,

KCAD Case and Action Tracking System

http://kcad.myplanb.it/cats
28/01/2013 09:57:15 (ravi.kumar): Case Saved: 28/01/2013 09:57:15
28/01/2013 09:57:50 (ravi.kumar): Changing assignee from &amp;#39;&amp;#39; to &amp;#39;ravi.kumar&amp;#39;
28/01/2013 09:57:50 (ravi.kumar): Assignee Changed
28/01/2013 09:57:54 (ravi.kumar): Assign Action Button Clicked
28/01/2013 09:57:54 (ravi.kumar): Setting Current Action To: GEN-000485-01
28/01/2013 09:57:58 (ravi.kumar): Confirm Assign Action Button Clicked
28/01/2013 09:57:58 (ravi.kumar): Action list found
28/01/2013 09:57:58 (ravi.kumar): Looking for action: GEN-000485-01
28/01/2013 09:57:58 (ravi.kumar): Found action: GEN-000485-01
28/01/2013 09:57:58 (ravi.kumar): Assigning action...
28/01/2013 09:57:58 (ravi.kumar): Action ID: GEN-000485-01
28/01/2013 09:57:58 (ravi.kumar): Action Title: testing 
28/01/2013 09:57:58 (ravi.kumar): Action Priority: 2
28/01/2013 09:57:58 (ravi.kumar): Action Assignee: PLANB-02\ravi.kumar
28/01/2013 09:57:58 (ravi.kumar): Action Assignee Formatted: ravi.kumar
28/01/2013 09:57:58 (ravi.kumar): Action Deadline: 2013-01-28
28/01/2013 09:57:58 (ravi.kumar): Action Status: Open
28/01/2013 09:57:58 (ravi.kumar): Query: GEN-000485-01
28/01/2013 09:57:58 (ravi.kumar): Assignee Value: 34;#PLANB-02\ravi.kumar
28/01/2013 09:57:58 (ravi.kumar): Assignee Changed Reset
28/01/2013 09:57:58 (ravi.kumar): Mail From: kcad.cats.test@myplanb.it
28/01/2013 09:57:58 (ravi.kumar): Mail To: ravi.kumar@insiso.co.uk
28/01/2013 09:57:58 (ravi.kumar): Subject: KCAD CATS - Case &amp;#39;GEN-000485&amp;#39; Action (GEN-000485-01) Assigned
28/01/2013 09:57:58 (ravi.kumar): Body: An action for Case &amp;#39;GEN-000485&amp;#39; has been assigned to you, this case is now open:</description></item><item><title>Re: Parent node Changed Event..</title><link>https://www.infopathdev.com:443/forums/thread/86474.aspx</link><pubDate>Sat, 26 Jan 2013 00:48:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:86474</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/86474.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=86474</wfw:commentRss><description>Your old value is not blank? That is, I&amp;#39;d expect to see it blank if the field was blank prior to the change - but here&amp;#39;s a screenshot of a watch on e in a little sample I put together to see if I could repro this, and I can&amp;#39;t - for me, e.OldValue is showing the correct value. I know back in the IP 2003 OM we had to check the operation, but that was improved in the 2007 OM.</description></item><item><title>Parent node Changed Event..</title><link>https://www.infopathdev.com:443/forums/thread/86394.aspx</link><pubDate>Fri, 25 Jan 2013 09:14:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:86394</guid><dc:creator>Ravik</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/86394.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=86394</wfw:commentRss><description>&lt;p&gt;This is my very first post,&amp;nbsp;so please excuse me if im not clear with my message.&lt;/p&gt;&lt;p&gt;Well here is my question. If you can see the code below, what im trying to do is change the oldvalue to newvalue. but when i check my debug all i can see is &amp;quot;&amp;quot; to &amp;quot;NewValue&amp;quot;. Not sure sure why system stores blank value instead of old value. Can someone guide me&amp;nbsp;in this process please. Im new to InfoPath and coding. Thanks&lt;/p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;p&gt;public&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;p&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;void&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; ActionAssigneeFormatted_Changed(&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;object&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; sender, &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;XmlEventArgs&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; e)&lt;/font&gt;&lt;/p&gt;&lt;font size="2"&gt;&lt;p&gt;        {&lt;/p&gt;&lt;/font&gt;&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;if&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; (e.OldValue != e.NewValue &amp;amp;&amp;amp; !&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;string&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.IsNullOrEmpty(e.NewValue))&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font size="2"&gt;
{&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font size="2"&gt;WriteToDebug(&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;string&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.Format(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;Changing assignee from &amp;#39;{0}&amp;#39; to &amp;#39;{1}&amp;#39;&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, e.OldValue, e.NewValue));&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;/p&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;p&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;XPathNavigator&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; action = e.Site.CreateNavigator();&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;/p&gt;&lt;font size="2"&gt;&lt;p&gt;                action.MoveToParent();&lt;/p&gt;&lt;/font&gt;&lt;p&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;XPathNavigator&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; actionAssigneeChanged = action.SelectSingleNode(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;my:ActionAssigneeChanged&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager);&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;/p&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;if&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; (actionAssigneeChanged != &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;null&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;)&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;/p&gt;&lt;font size="2"&gt;&lt;p&gt;                {&lt;/p&gt;&lt;p&gt;                    actionAssigneeChanged.SetValue(&lt;/p&gt;&lt;/font&gt;&lt;p&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;1&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;);&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;/p&gt;&lt;font size="2"&gt;&lt;p&gt;                    WriteToDebug(&lt;p&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;Assignee Changed&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;);&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;p&gt;&lt;font size="2"&gt;
&lt;/font&gt;&lt;/p&gt;&lt;font size="2"&gt;&lt;p&gt;                }&lt;/p&gt;&lt;p&gt;            }&lt;/p&gt;&lt;p&gt;        }&lt;/p&gt;&lt;/font&gt;</description></item></channel></rss>