<?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: Problem retrieving data</title><link>https://www.infopathdev.com:443/forums/thread/24597.aspx</link><pubDate>Wed, 21 Nov 2007 11:13:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24597</guid><dc:creator>GLazkano</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24597.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=24597</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi,&lt;/p&gt;&lt;p&gt;I think it will be easier if I explain it with images, so let&amp;#39;s go:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;img src="http://img339.imageshack.us/img339/6396/titomattyv2.jpg" title="Data source" alt="Data source" height="833" width="954" /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;The red box is the field with the OnAfterChange event (Matt, is the same that the product problem, but is another requirement of our client). The blue box is the field I want to retrieve and modify. The datasources are coloured as the fields.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Is this enough to understand the problem?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks.&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;PS: If I change the eventObj.Source for eventObj.Site, it doesn&amp;#39;t fail in the retrieving, but it does when I try to modify the retrieved field.&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Problem retrieving data</title><link>https://www.infopathdev.com:443/forums/thread/24573.aspx</link><pubDate>Tue, 20 Nov 2007 16:45:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24573</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24573.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=24573</wfw:commentRss><description>&lt;p&gt;I&amp;#39;d have to see the schema to be sure, but from the error message it seems like the problem is that &amp;quot;&lt;strong&gt;eventObj.Source&lt;/strong&gt;&amp;quot; resolves to an attribute node, and you cannot call selectSingleNode() from these objects.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;What node is your OnAfterChange event firing for?&amp;nbsp; If it is the attribute node, you should change it to fire on the parent node.&amp;nbsp; If it is the parent node, then you should use eventObj.Site, which will always resolve to the node that is stated in the name of the method.&amp;nbsp; Then, you can reliably surf to different nodes from that.&amp;nbsp; If your OnAfterChange event is firing on a node that has children, then eventObj.Source will change with each firing, depending on where the change was detected, while eventObj.Site will always stay the same.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Hope this helps!&amp;nbsp; Please reply with more context if you need more help.&lt;/p&gt;</description></item><item><title>Re: Problem retrieving data</title><link>https://www.infopathdev.com:443/forums/thread/24549.aspx</link><pubDate>Mon, 19 Nov 2007 15:48:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24549</guid><dc:creator>GLazkano</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24549.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=24549</wfw:commentRss><description>Hi,&lt;p&gt;I think I don&amp;#39;t understand what you&amp;#39;ve said. Did you mean I should try to retrieve an empty string field?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I&amp;#39;ve tried it with an empty string field and it neither works: the same error. But the most strange is that if I copy another field retrieving that works in other function, it neither works. I can&amp;#39;t understand it...&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks.&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Problem retrieving data</title><link>https://www.infopathdev.com:443/forums/thread/24548.aspx</link><pubDate>Mon, 19 Nov 2007 15:38:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24548</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24548.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=24548</wfw:commentRss><description>&lt;p&gt;Have you tried explicitly setting your cantidadmaxima field?&lt;/p&gt;
&lt;p&gt;You may look at&amp;nbsp;using a string field that is empty. The trick is figuring out which side of the equation is causing the problem.&lt;/p&gt;</description></item><item><title>Re: Problem retrieving data</title><link>https://www.infopathdev.com:443/forums/thread/24547.aspx</link><pubDate>Mon, 19 Nov 2007 15:30:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24547</guid><dc:creator>GLazkano</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24547.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=24547</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi,&lt;/p&gt;&lt;p&gt;my:cantidadmaxima is a double field. Should I change it to another type?&lt;/p&gt;&lt;p&gt;I tried changing it to string, but nothing changes&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks.&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Problem retrieving data</title><link>https://www.infopathdev.com:443/forums/thread/24546.aspx</link><pubDate>Mon, 19 Nov 2007 15:19:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24546</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24546.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=24546</wfw:commentRss><description>&lt;p&gt;What is the field type for my:cantidadmaxima? Decimal?&lt;/p&gt;
&lt;p&gt;I would look at changing this or having another string value field which is used to pass the number in and out of code.&lt;/p&gt;</description></item><item><title>Problem retrieving data</title><link>https://www.infopathdev.com:443/forums/thread/24537.aspx</link><pubDate>Mon, 19 Nov 2007 08:47:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24537</guid><dc:creator>GLazkano</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24537.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=24537</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;in an Infopath 2007 form, I have the following error:&lt;/p&gt;&lt;h4 style="margin-bottom:0px;" class="TextColor1" id="subjcns!237C3DEA7120098B!604"&gt;&lt;a href="http://sheetal-d.spaces.live.com/blog/cns%21237C3DEA7120098B%21604.entry"&gt;&lt;span id="ctl00_MainContentPlaceholder_ctl01_ctl00_lblEntry"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h4&gt;&lt;h4 style="margin-bottom:0px;" class="TextColor1" id="subjcns!237C3DEA7120098B!604"&gt;Error
- A floating attribute may not be passed as the context node
for an XSLT transform or an XPath query. &lt;/h4&gt;&lt;p&gt;That&amp;#39;s on the 1273 row, and in that row the code is:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;br /&gt;&lt;b&gt;var cantidadmaxima = eventObj.Source.selectSingleNode(&amp;quot;my:cantidadmaxima&amp;quot;); &lt;/b&gt;&lt;/p&gt;&lt;p&gt;It&amp;#39;s the first line in a OnAfterChange function, and it fails if I try to retrieve any field. I also tried with another fields and with fields retrieved in another function, and it neither worked.&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;So the question is... WTF? Why isn&amp;#39;t it working?&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks&amp;nbsp;&lt;/p&gt;&lt;h4 style="margin-bottom:0px;" class="TextColor1" id="subjcns!237C3DEA7120098B!604"&gt;&lt;a href="http://sheetal-d.spaces.live.com/blog/cns%21237C3DEA7120098B%21604.entry"&gt;&lt;/a&gt;&lt;/h4&gt;&lt;p&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>