<?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: NaN value on either a default value or through rule</title><link>https://www.infopathdev.com:443/forums/thread/99029.aspx</link><pubDate>Tue, 09 Sep 2014 19:09:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:99029</guid><dc:creator>JeffVojtko</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/99029.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=99029</wfw:commentRss><description>Got the code fixed. See Below:

concat(substring(&amp;quot;&amp;quot;, 1, (not(starts-with(ReportTitle, &amp;quot;BRKR&amp;quot;) and ReportTitle != &amp;quot;&amp;quot; and contains(Media, &amp;quot;View&amp;quot;)) or not(starts-with(ReportTitle, &amp;quot;CAPSJ243&amp;quot;) and ReportTitle != &amp;quot;&amp;quot; and contains(Media, &amp;quot;View&amp;quot;)) or not(starts-with(ReportTitle, &amp;quot;CLNKJ020&amp;quot;) and ReportTitle != &amp;quot;&amp;quot; and contains(Media, &amp;quot;View&amp;quot;)) or not(starts-with(ReportTitle, &amp;quot;DISAXTOP&amp;quot;) and ReportTitle != &amp;quot;&amp;quot; and contains(Media, &amp;quot;View&amp;quot;)) or not(starts-with(ReportTitle, &amp;quot;FLXPJ&amp;quot;) and ReportTitle != &amp;quot;&amp;quot; and contains(Media, &amp;quot;View&amp;quot;)) or not(starts-with(ReportTitle, &amp;quot;IAARJ&amp;quot;) and ReportTitle != &amp;quot;&amp;quot; and contains(Media, &amp;quot;View&amp;quot;)) or not(starts-with(ReportTitle, &amp;quot;IALDJ&amp;quot;) and ReportTitle != &amp;quot;&amp;quot; and contains(Media, &amp;quot;View&amp;quot;)) or not(starts-with(ReportTitle, &amp;quot;IAPSJ&amp;quot;) and ReportTitle != &amp;quot;&amp;quot; and contains(Media, &amp;quot;View&amp;quot;)) or not(starts-with(ReportTitle, &amp;quot;IADSJ&amp;quot;) and ReportTitle != &amp;quot;&amp;quot; and contains(Media, &amp;quot;View&amp;quot;)) or not(starts-with(ReportTitle, &amp;quot;IACO&amp;quot;) and ReportTitle != &amp;quot;&amp;quot; and contains(Media, &amp;quot;View&amp;quot;)) or not(starts-with(ReportTitle, &amp;quot;IACPJ&amp;quot;) and ReportTitle != &amp;quot;&amp;quot; and contains(Media, &amp;quot;View&amp;quot;)) or not(starts-with(ReportTitle, &amp;quot;IAPVJ&amp;quot;) and ReportTitle != &amp;quot;&amp;quot; and contains(Media, &amp;quot;View&amp;quot;)) or not(starts-with(ReportTitle, &amp;quot;IATXJ&amp;quot;) and ReportTitle != &amp;quot;&amp;quot; and contains(Media, &amp;quot;View&amp;quot;)) or not(starts-with(ReportTitle, &amp;quot;MKURJ522&amp;quot;) and ReportTitle != &amp;quot;&amp;quot; and contains(Media, &amp;quot;View&amp;quot;)) or not(starts-with(ReportTitle, &amp;quot;PRPAJ&amp;quot;) and ReportTitle != &amp;quot;&amp;quot; and contains(Media, &amp;quot;View&amp;quot;)) or not(starts-with(ReportTitle, &amp;quot;RXSCJ&amp;quot;) and ReportTitle != &amp;quot;&amp;quot; and contains(Media, &amp;quot;View&amp;quot;)) or not(starts-with(ReportTitle, &amp;quot;RXSMJ&amp;quot;) and ReportTitle != &amp;quot;&amp;quot; and contains(Media, &amp;quot;View&amp;quot;)) or not(starts-with(ReportTitle, &amp;quot;REVAJ&amp;quot;) and ReportTitle != &amp;quot;&amp;quot; and contains(Media, &amp;quot;View&amp;quot;)) or not(starts-with(ReportTitle, &amp;quot;PRPEJ&amp;quot;) and ReportTitle != &amp;quot;&amp;quot; and contains(Media, &amp;quot;View&amp;quot;)) or not(contains(Media, &amp;quot;View&amp;quot;))) * string-length(&amp;quot;&amp;quot;)), substring(concat(substring-before(UserIDNew, &amp;quot;;&amp;quot;), &amp;quot;,&amp;quot;, substring(Action, 1, 1), &amp;quot;,&amp;quot;, ReportTitle), 1, ((starts-with(ReportTitle, &amp;quot;BRKR&amp;quot;) and ReportTitle != &amp;quot;&amp;quot; and contains(Media, &amp;quot;View&amp;quot;)) or (starts-with(ReportTitle, &amp;quot;CAPSJ243&amp;quot;) and ReportTitle != &amp;quot;&amp;quot; and contains(Media, &amp;quot;View&amp;quot;)) or (starts-with(ReportTitle, &amp;quot;CLNKJ020&amp;quot;) and ReportTitle != &amp;quot;&amp;quot; and contains(Media, &amp;quot;View&amp;quot;)) or (starts-with(ReportTitle, &amp;quot;DISAXTOP&amp;quot;) and ReportTitle != &amp;quot;&amp;quot; and contains(Media, &amp;quot;View&amp;quot;)) or (starts-with(ReportTitle, &amp;quot;FLXPJ&amp;quot;) and ReportTitle != &amp;quot;&amp;quot; and contains(Media, &amp;quot;View&amp;quot;)) or (starts-with(ReportTitle, &amp;quot;IAARJ&amp;quot;) and ReportTitle != &amp;quot;&amp;quot; and contains(Media, &amp;quot;View&amp;quot;)) or (starts-with(ReportTitle, &amp;quot;IALDJ&amp;quot;) and ReportTitle != &amp;quot;&amp;quot; and contains(Media, &amp;quot;View&amp;quot;)) or (starts-with(ReportTitle, &amp;quot;IAPSJ&amp;quot;) and ReportTitle != &amp;quot;&amp;quot; and contains(Media, &amp;quot;View&amp;quot;)) or (starts-with(ReportTitle, &amp;quot;IADSJ&amp;quot;) and ReportTitle != &amp;quot;&amp;quot; and contains(Media, &amp;quot;View&amp;quot;)) or (starts-with(ReportTitle, &amp;quot;IACO&amp;quot;) and ReportTitle != &amp;quot;&amp;quot; and contains(Media, &amp;quot;View&amp;quot;)) or (starts-with(ReportTitle, &amp;quot;IACPJ&amp;quot;) and ReportTitle != &amp;quot;&amp;quot; and contains(Media, &amp;quot;View&amp;quot;)) or (starts-with(ReportTitle, &amp;quot;IAPVJ&amp;quot;) and ReportTitle != &amp;quot;&amp;quot; and contains(Media, &amp;quot;View&amp;quot;)) or (starts-with(ReportTitle, &amp;quot;IATXJ&amp;quot;) and ReportTitle != &amp;quot;&amp;quot; and contains(Media, &amp;quot;View&amp;quot;)) or (starts-with(ReportTitle, &amp;quot;MKURJ522&amp;quot;) and ReportTitle != &amp;quot;&amp;quot; and contains(Media, &amp;quot;View&amp;quot;)) or (starts-with(ReportTitle, &amp;quot;PRPAJ&amp;quot;) and ReportTitle != &amp;quot;&amp;quot; and contains(Media, &amp;quot;View&amp;quot;)) or (starts-with(ReportTitle, &amp;quot;RXSCJ&amp;quot;) and ReportTitle != &amp;quot;&amp;quot; and contains(Media, &amp;quot;View&amp;quot;)) or (starts-with(ReportTitle, &amp;quot;RXSMJ&amp;quot;) and ReportTitle != &amp;quot;&amp;quot; and contains(Media, &amp;quot;View&amp;quot;)) or (starts-with(ReportTitle, &amp;quot;REVAJ&amp;quot;) and ReportTitle != &amp;quot;&amp;quot; and contains(Media, &amp;quot;View&amp;quot;)) or (starts-with(ReportTitle, &amp;quot;PRPEJ&amp;quot;) and ReportTitle != &amp;quot;&amp;quot; and contains(Media, &amp;quot;View&amp;quot;))) * string-length(concat(substring-before(UserIDNew, &amp;quot;;&amp;quot;), &amp;quot;,&amp;quot;, substring(Action, 1, 1), &amp;quot;,&amp;quot;, ReportTitle))))</description></item><item><title>Re: NaN value on either a default value or through rule</title><link>https://www.infopathdev.com:443/forums/thread/98927.aspx</link><pubDate>Wed, 03 Sep 2014 18:47:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:98927</guid><dc:creator>JeffVojtko</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/98927.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=98927</wfw:commentRss><description>Figured it out&lt;br /&gt;&lt;br /&gt;
Had a misplaced parenthesis&lt;br /&gt;&lt;br /&gt;
concat(substring(&amp;quot;Bad&amp;quot;, 1, (ReportTitle != &amp;quot;BRKR&amp;quot; and ReportTitle != &amp;quot;&amp;quot;) * string-length(&amp;quot;Bad&amp;quot;)), substring(concat(substring-before(UserIDNew, &amp;quot;;&amp;quot;), &amp;quot;,&amp;quot;, substring(Action, 1, 1), &amp;quot;,&amp;quot;, ReportTitle), 1, (ReportTitle = &amp;quot;BRKR&amp;quot; and ReportTitle != &amp;quot;&amp;quot;) * string-length(concat(substring-before(UserIDNew, &amp;quot;;&amp;quot;), &amp;quot;,&amp;quot;, substring(Action, 1, 1), &amp;quot;,&amp;quot;, ReportTitle))))</description></item><item><title>NaN value on either a default value or through rule</title><link>https://www.infopathdev.com:443/forums/thread/98919.aspx</link><pubDate>Wed, 03 Sep 2014 14:09:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:98919</guid><dc:creator>JeffVojtko</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/98919.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=98919</wfw:commentRss><description>I am getting a NaN value in front of my desired test string. And, I can&amp;#39;t seem to figure this one out.&lt;br /&gt;
Here is my formula:&lt;br /&gt;
concat(substring(&amp;quot;Bad&amp;quot;, 1, (ReportTitle != &amp;quot;BRKR&amp;quot; and ReportTitle != &amp;quot;&amp;quot;)) * string-length(&amp;quot;Bad&amp;quot;), substring(concat(substring-before(UserIDNew, &amp;quot;;&amp;quot;), &amp;quot;,&amp;quot;, substring(Action, 1, 1), &amp;quot;,&amp;quot;, ReportTitle), 1, (ReportTitle = &amp;quot;BRKR&amp;quot; and ReportTitle != &amp;quot;&amp;quot;) * string-length(concat(substring-before(UserIDNew, &amp;quot;;&amp;quot;), &amp;quot;,&amp;quot;, substring(Action, 1, 1), &amp;quot;,&amp;quot;, ReportTitle))))&lt;br /&gt;&lt;br /&gt;

What I would like is to get a string like this:&lt;br /&gt;
BBC,A,BRKR&lt;br /&gt;&lt;br /&gt;
But, what I am getting is&lt;br /&gt;
NaNBBC,A,BRKR&lt;br /&gt;&lt;br /&gt;
The field types are:&lt;br /&gt;
ReportTitle - String&lt;br /&gt;
UserIDNew - String&lt;br /&gt;
Action - string&lt;br /&gt;</description></item></channel></rss>