<?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: InfopPath bug - Substring(,,) in a GetDOM method has its last coma automatically converted in a point (,,) &gt; (,.) = error</title><link>https://www.infopathdev.com:443/forums/thread/116507.aspx</link><pubDate>Fri, 16 Jun 2017 16:14:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:116507</guid><dc:creator>JcDenaes</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/116507.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=116507</wfw:commentRss><description>I totally agree!
^_^/~</description></item><item><title>Re: InfopPath bug - Substring(,,) in a GetDOM method has its last coma automatically converted in a point (,,) &gt; (,.) = error</title><link>https://www.infopathdev.com:443/forums/thread/116506.aspx</link><pubDate>Fri, 16 Jun 2017 16:06:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:116506</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/116506.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=116506</wfw:commentRss><description>Thank you for the follow up - interesting work around for the issue, but glad that quotes around the 2nd param of the substring function make it behave. :)</description></item><item><title>Re: InfopPath bug - Substring(,,) in a GetDOM method has its last coma automatically converted in a point (,,) &gt; (,.) = error</title><link>https://www.infopathdev.com:443/forums/thread/116505.aspx</link><pubDate>Fri, 16 Jun 2017 15:59:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:116505</guid><dc:creator>JcDenaes</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/116505.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=116505</wfw:commentRss><description>Thanks for the precision, I take good note.&lt;br /&gt;
&lt;br /&gt;
I tested again with my first variation, replacing the relative &amp;quot;.&amp;quot; by &amp;quot;current()&amp;quot; as you have suggested and it is working&lt;br /&gt;
&lt;br /&gt;
# number(substring(local-name(current()), &amp;quot;2&amp;quot;, 2))&lt;br /&gt;
gives&lt;br /&gt;
# xdXDocument:GetDOM(&amp;quot;sp-list-connection&amp;quot;)/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:list-column-requested[starts-with(../d:1st-column, &amp;quot;data-as-filter&amp;quot;) and ../d:2d-column = number(substring(local-name(current()), &amp;quot;2&amp;quot;, 2))]&lt;br /&gt;
and is a working formula&lt;br /&gt;
&lt;br /&gt;
Note that I have to put the first parameter of the substring function between quotes and infopath stops changing the following coma into a point.&lt;br /&gt;
&lt;br /&gt;
So There is a bug and there is a way around.&lt;br /&gt;
&lt;br /&gt;
Thanks again Hilary for the hint, I did not saw that one. Much appreciated.&lt;br /&gt;
&lt;br /&gt;
(was writing while you were testing ;) just seen your last post, double checking is always good - thanks a lot)&lt;br /&gt;
&lt;br /&gt;
I have InfoPath in Both languages and it did occur in each (but I realized that the manifest maintain the language whith which the form is created - did change it for you yesterday)&lt;br /&gt;
Clearly a bug in the parser and related to language management.&lt;br /&gt;
&lt;br /&gt;
In conclusion:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;For those whom are using a non-english infopath software use my variation&lt;br /&gt;
# number(substring(local-name(current()), &amp;quot;2&amp;quot;, 2))&lt;br /&gt;
&lt;br /&gt;
else use Hilary&amp;#39;s solution&lt;br /&gt;
# number(substring(local-name(current()), 2, 2))&lt;br /&gt;
&lt;br /&gt;
Thanks again!&lt;br /&gt;</description></item><item><title>Re: InfopPath bug - Substring(,,) in a GetDOM method has its last coma automatically converted in a point (,,) &gt; (,.) = error</title><link>https://www.infopathdev.com:443/forums/thread/116504.aspx</link><pubDate>Fri, 16 Jun 2017 15:50:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:116504</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/116504.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=116504</wfw:commentRss><description>Here&amp;#39;s the template with my formula in place. I wonder if the issue you are experiencing is perhaps a difference due to the language on your OS?</description></item><item><title>Re: InfopPath bug - Substring(,,) in a GetDOM method has its last coma automatically converted in a point (,,) &gt; (,.) = error</title><link>https://www.infopathdev.com:443/forums/thread/116503.aspx</link><pubDate>Fri, 16 Jun 2017 15:48:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:116503</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/116503.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=116503</wfw:commentRss><description>My column names were changed when I created a list from your template - so the formula looks a bit like gibberish, but here is a screenshot of this formula working without an issue for me. I&amp;#39;ll attach my copy of the template in another reply.</description></item><item><title>Re: InfopPath bug - Substring(,,) in a GetDOM method has its last coma automatically converted in a point (,,) &gt; (,.) = error</title><link>https://www.infopathdev.com:443/forums/thread/116502.aspx</link><pubDate>Fri, 16 Jun 2017 15:38:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:116502</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/116502.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=116502</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;To be clear - once your formula is referencing a secondary data source, the relative path of &amp;quot;.&amp;quot; is now relative to the secondary data source. I&amp;#39;ve not seen InfoPath change punctuation in a formula before. I&amp;#39;ll take a look at your files.&lt;/p&gt;</description></item><item><title>Re: InfopPath bug - Substring(,,) in a GetDOM method has its last coma automatically converted in a point (,,) &gt; (,.) = error</title><link>https://www.infopathdev.com:443/forums/thread/116501.aspx</link><pubDate>Fri, 16 Jun 2017 01:37:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:116501</guid><dc:creator>JcDenaes</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/116501.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=116501</wfw:commentRss><description>Hi Hilary,&lt;br /&gt;
&lt;br /&gt;
Thank you for the prompt reply.&lt;br /&gt;
&lt;br /&gt;
I did the test and it goes from&lt;br /&gt;
# local-name(current()), 2, 2))&lt;br /&gt;
to&lt;br /&gt;
# local-name(current()), 2. 2)) &lt;br /&gt;
&lt;br /&gt;
Please, be aware that the &amp;quot;.&amp;quot; as a relative path is not the issue, it is the coma as a parameter separator in the function substring(,,) which change in a point to become the erroneous function substring(,.)&lt;br /&gt;
&lt;br /&gt;
The second coma (,,) of the substring function is changing into a point (,.) when inserted in a request.&lt;br /&gt;
&lt;br /&gt;
Really odd.&lt;br /&gt;
&lt;br /&gt;
If someone can reproduce the behavior, it would be nice.&lt;br /&gt;
&lt;br /&gt;
Files in the zip attached&lt;br /&gt;
- List template for SP&lt;br /&gt;see PNG picture or you can use the manifest.xml and change &amp;quot;http://sp-dev/site_dev&amp;quot; by your SP site and convert the xml file in a .cab then a .stp (*)&lt;br /&gt;
- xsn w/o connection (one has to add it once the local SP list is created)&lt;br /&gt;
(*) https://chayadigital.wordpress.com/2011/08/05/manually-edit-a-stp-manifest-template-file-for-sharepoint/&lt;br /&gt;</description></item><item><title>Re: InfopPath bug - Substring(,,) in a GetDOM method has its last coma automatically converted in a point (,,) &gt; (,.) = error</title><link>https://www.infopathdev.com:443/forums/thread/116500.aspx</link><pubDate>Thu, 15 Jun 2017 22:56:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:116500</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/116500.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=116500</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I think you just need to use current instead of &amp;quot;.&amp;quot;? Did you try that?&lt;/p&gt;&lt;p&gt;&amp;nbsp;xdXDocument:GetDOM(&amp;quot;sp-list-connection&amp;quot;)/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:list-column-requested[starts-with(../d:1st-column, &amp;quot;data-as-filter&amp;quot;) and ../d:2d-column = number(substring(local-name(current()), 2. 2))]&amp;nbsp;&lt;/p&gt;</description></item><item><title>InfopPath bug - Substring(,,) in a GetDOM method has its last coma automatically converted in a point (,,) &gt; (,.) = error</title><link>https://www.infopathdev.com:443/forums/thread/116495.aspx</link><pubDate>Thu, 15 Jun 2017 18:14:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:116495</guid><dc:creator>JcDenaes</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/116495.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=116495</wfw:commentRss><description>Hello,&lt;br /&gt;
&lt;br /&gt;
I am hitting an awkward bug. As anyone ever seen it and is there a way to get around it ?&lt;br /&gt;
&lt;br /&gt;
Thank you in advance!&lt;br /&gt;
&lt;br /&gt;
I have a field named&lt;br /&gt;
# a01bc&lt;br /&gt;
&lt;br /&gt;
I have a working formula for the default value of this field&lt;br /&gt;
# xdXDocument:GetDOM(&amp;quot;sp-list-connection&amp;quot;)/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:list-column-requested[starts-with(../d:cycle, &amp;quot;1st-filter&amp;quot;) and ../d:q3j5 = 1]&lt;br /&gt;
 &lt;br /&gt;
I want to replace (end of the previous formula)&lt;br /&gt;
# ../d:q3j5 = 1&lt;br /&gt;
with&lt;br /&gt;
# ../d:q3j5 = number(substring(local-name(.), 2, 2))&lt;br /&gt;
where local-name(.) gives the name of the field, i.e. &amp;quot;a01bc&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Per itself&lt;br /&gt;
# number(substring(local-name(.), 2, 2))&lt;br /&gt;
is a working formula and returns 1 as expected&lt;br /&gt;
&lt;br /&gt;
Now if I put it in the main formula, what happens is this&lt;br /&gt;
# xdXDocument:GetDOM(&amp;quot;sp-list-connection&amp;quot;)/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:list-column-requested[starts-with(../d:1st-column, &amp;quot;data-as-filter&amp;quot;) and ../d:2d-column = number(substring(local-name(.), 2, 2))]&lt;br /&gt;
&amp;gt;&amp;gt; Error, Value type expected - Real Value: Number  &amp;quot;[...] 2. --&amp;gt;2&lt;br /&gt;
&lt;br /&gt;
So I played with the Modify an Xpath Expression CheckBox to have a better understanding&lt;br /&gt;
(1) box checked, copy-paste&lt;br /&gt;
# xdXDocument:GetDOM(&amp;quot;sp-list-connection&amp;quot;)/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:list-column-requested[starts-with(../d:1st-column, &amp;quot;data-as-filter&amp;quot;) and ../d:2d-column = number(substring(local-name(.), 2, 2))]&lt;br /&gt;
&amp;gt;&amp;gt; 2, 2&lt;br /&gt;
(2) box unchecked&lt;br /&gt;
# list-column-requested[starts-with(1st-column; &amp;quot;data-as-filter&amp;quot;) and 2d-column = number(substring(local-name(.); 2; 2))]&lt;br /&gt;
&amp;gt;&amp;gt; 2; 2&lt;br /&gt;
(2) box checked again&lt;br /&gt;
# xdXDocument:GetDOM(&amp;quot;sp-list-connection&amp;quot;)/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:list-column-requested[starts-with(../d:1st-column, &amp;quot;data-as-filter&amp;quot;) and ../d:2d-column = number(substring(local-name(.), 2. 2))]&lt;br /&gt;
&amp;gt;&amp;gt; 2. 2&lt;br /&gt;
&lt;br /&gt;
Seeing this I tried different things, none are working&lt;br /&gt;
- I tried to do it manually through infopath modal windows, error persists&lt;br /&gt;
- I tried formula variations, all working in standalone but not int the main formula&lt;br /&gt;
-- number(substring(local-name(.), &amp;quot;2&amp;quot;, 2))&lt;br /&gt;
-- number(substring(local-name(.), number(&amp;quot;2&amp;quot;), 2))&lt;br /&gt;
Those two variations allow the coma to stay a coma ( , &amp;gt; ; &amp;gt; , isntead of , &amp;gt; ; &amp;gt; . ) but no result is displayed nonetheless (verifiying the formula says it is fine in both cases)&lt;br /&gt;
&lt;br /&gt;
Why no output ? Is there a way to go around it ?&lt;br /&gt;
&lt;br /&gt;
Restrictions: IP 2013 w/ SP 2016 - Web form - no code allowed&lt;br /&gt;
&lt;br /&gt;
Any idea or advice ?&lt;br /&gt;
&lt;br /&gt;
Thanks in advance,&lt;br /&gt;
&lt;br /&gt;
Jean-Christophe</description></item></channel></rss>