<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Trying to write rules in InfoPath but get a error messages</title><link>https://www.infopathdev.com:443/forums/thread/73143.aspx</link><pubDate>Wed, 21 Dec 2011 04:56:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:73143</guid><dc:creator>yyc2001</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/73143.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=73143</wfw:commentRss><description>I kind of solve the problem.
&lt;br /&gt;&lt;br /&gt;
If I use this, I will get any errors.
&lt;br /&gt;&lt;br /&gt;
concat(
substring((string-length(Description)), 1, ((string-length(Description)) &lt;br /&gt;&lt;br /&gt;

But now the rules will not even trigger. I try plug in a simple &amp;quot;abcd&amp;quot; in the field. It will not even display those to me. 

&lt;br /&gt;&lt;br /&gt;

If SummaryDescription is blank
    Set field value . = &amp;quot;abcd&amp;quot;

&lt;br /&gt;&lt;br /&gt;
I tried to follow the solution posted in this forum. I&amp;#39;m still not able to display it. http://www.infopathdev.com/forums/p/11279/40078.aspx</description></item><item><title>Re: Trying to write rules in InfoPath but get a error messages</title><link>https://www.infopathdev.com:443/forums/thread/73142.aspx</link><pubDate>Wed, 21 Dec 2011 01:34:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:73142</guid><dc:creator>Anson Hidajat</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/73142.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=73142</wfw:commentRss><description>I&amp;#39;m not aware of an easy way of using rules to limit the number of words.&amp;nbsp; Have you considered using characters instead of word count?&amp;nbsp; The solution will look alot simplier.</description></item><item><title>Trying to write rules in InfoPath but get a error messages</title><link>https://www.infopathdev.com:443/forums/thread/73100.aspx</link><pubDate>Mon, 19 Dec 2011 22:13:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:73100</guid><dc:creator>yyc2001</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/73100.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=73100</wfw:commentRss><description>In my InfoPath form I have a field name called: &amp;quot;Description&amp;quot;. Now I added another field called: &amp;quot;SummaryDescription&amp;quot;. Which is suppose to take the first 200 words from the Description field. 
&lt;br /&gt;&lt;br /&gt;
The rules I wrote for &amp;quot;SummaryDescription&amp;quot; is (this rule will apply only if &amp;quot;SummaryDescription&amp;quot; is blank): 
&lt;br /&gt;&lt;br /&gt;


If the length of the &amp;quot;Description&amp;quot; is less than or equal to 200 then it will pull out all the content in &amp;quot;Description&amp;quot; to &amp;quot;SummaryDescription&amp;quot;
Else it will pull out only the first 201 words in &amp;quot;Description&amp;quot; to &amp;quot;SummaryDescription&amp;quot;. 

&lt;br /&gt;&lt;br /&gt;
This is my code for this: 
&lt;br /&gt;&lt;br /&gt;
&lt;font face="Lucida Console" size="2"&gt;
substring(../my:Description, 0, (((string-length(../my:Description)) | number(201))[(((string-length(../my:Description))) &amp;lt;= 200) + 1]    ))
&lt;/font&gt;
&lt;br /&gt;&lt;br /&gt;
But I keep getting this kind of error message: 

&lt;br /&gt;&lt;br /&gt;
Expression must evaluate to a node-set.
&lt;br /&gt;&lt;br /&gt;
substring(../my:Description, 0, ((--&amp;gt;(string-length(../my:Description)) &lt;br /&gt;&lt;br /&gt;

I&amp;#39;m not too sure how to solve it. I&amp;#39;m I missing something in my code or this is completely wrong. 
&lt;br /&gt;&lt;br /&gt;
I would appreciate if anyone can help me with this. 
&lt;br /&gt;&lt;br /&gt;
Thank you very much for your help....</description></item></channel></rss>