<?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: Is it possible to substring the whole word instead of characters in InfoPath</title><link>https://www.infopathdev.com:443/forums/thread/74644.aspx</link><pubDate>Fri, 27 Jan 2012 01:17:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:74644</guid><dc:creator>yyc2001</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/74644.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=74644</wfw:commentRss><description>&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;Skarn:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;p&gt;&amp;nbsp;hi yyc, my reverse text doesn&amp;#39;t work as well as I thought - it suffers from an issue (which isn&amp;#39;t really a bad thing) where Infopath won&amp;#39;t let rules change a field continuously in case it gets stuck in a loop. I hadn&amp;#39;t tested my reverse method with enough characters *blush*. So at this stage I suggest you decide on a number of characters instead and use substring. &lt;/p&gt;&lt;p&gt;I could adjust it to do a split based on &amp;#39;sentences&amp;#39; (ie. look for fullstops, but even that may not be sufficient. Sorry for getting your hopes up, I&amp;#39;m disappointed too, thought I was on to a good solution.&lt;br /&gt;&lt;/p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;

&lt;p&gt;
Hi Skarn, Thank you for the reply. It&amp;#39;s okay. I will definitely think about using the character instead of substring. Thank you again for your help. :)
&lt;/p&gt;</description></item><item><title>Re: Is it possible to substring the whole word instead of characters in InfoPath</title><link>https://www.infopathdev.com:443/forums/thread/74643.aspx</link><pubDate>Fri, 27 Jan 2012 00:59:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:74643</guid><dc:creator>Skarn</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/74643.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=74643</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;hi yyc, my reverse text doesn&amp;#39;t work as well as I thought - it suffers from an issue (which isn&amp;#39;t really a bad thing) where Infopath won&amp;#39;t let rules change a field continuously in case it gets stuck in a loop. I hadn&amp;#39;t tested my reverse method with enough characters *blush*. So at this stage I suggest you decide on a number of characters instead and use substring. &lt;/p&gt;&lt;p&gt;I could adjust it to do a split based on &amp;#39;sentences&amp;#39; (ie. look for fullstops, but even that may not be sufficient. Sorry for getting your hopes up, I&amp;#39;m disappointed too, thought I was on to a good solution.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Is it possible to substring the whole word instead of characters in InfoPath</title><link>https://www.infopathdev.com:443/forums/thread/74488.aspx</link><pubDate>Tue, 24 Jan 2012 17:30:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:74488</guid><dc:creator>yyc2001</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/74488.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=74488</wfw:commentRss><description>&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;Skarn:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;p&gt;I can do this, using rules and no code. &lt;/p&gt;&lt;p&gt;Can you please confirm for me if the following is correct.&lt;br /&gt;&amp;quot;User types in words, when they move to next field, any words past the #th word are deleted.&amp;quot; where # is a number decided by you.&lt;/p&gt;&lt;p&gt;Then, if you cross my palm with gol...hehe kidding. Then I&amp;#39;ll post an example template.&lt;/p&gt;&lt;p&gt;Part of the solution involves reversing the characters in a field, which I&amp;#39;ve done, but never had a use for until now. :-P &lt;br /&gt;&lt;/p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;

&lt;br /&gt;
&lt;br /&gt;
Skarn, Yes it is correct. But I do not delete those words I just read it. 
&lt;br /&gt;
&lt;br /&gt;
What I&amp;#39;m trying to do is to read from one of the field say &amp;quot;Description&amp;quot; that contains any # of words. The rule should take the first 200 words from &amp;quot;Description&amp;quot; and put it into another field &amp;quot;summary&amp;quot;. 
&lt;br /&gt;
&lt;br /&gt; 
I would appreciate it very much if you could post an example on how you approach this problem. Thank you again for your help!!!</description></item><item><title>Re: Is it possible to substring the whole word instead of characters in InfoPath</title><link>https://www.infopathdev.com:443/forums/thread/74467.aspx</link><pubDate>Tue, 24 Jan 2012 13:08:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:74467</guid><dc:creator>Skarn</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/74467.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=74467</wfw:commentRss><description>&lt;p&gt;I can do this, using rules and no code. &lt;/p&gt;&lt;p&gt;Can you please confirm for me if the following is correct.&lt;br /&gt;&amp;quot;User types in words, when they move to next field, any words past the #th word are deleted.&amp;quot; where # is a number decided by you.&lt;/p&gt;&lt;p&gt;Then, if you cross my palm with gol...hehe kidding. Then I&amp;#39;ll post an example template.&lt;/p&gt;&lt;p&gt;Part of the solution involves reversing the characters in a field, which I&amp;#39;ve done, but never had a use for until now. :-P &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Is it possible to substring the whole word instead of characters in InfoPath</title><link>https://www.infopathdev.com:443/forums/thread/74361.aspx</link><pubDate>Sat, 21 Jan 2012 19:56:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:74361</guid><dc:creator>yyc2001</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/74361.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=74361</wfw:commentRss><description>&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;Jimmy:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;p&gt;I don&amp;#39;t think there is a simple way to make it dynamic.&amp;nbsp; You could modify it to nest more &lt;strong&gt;substring-after(..., &amp;quot; &amp;quot;)&lt;/strong&gt;s in there until you have 200.&amp;nbsp; Why do you want to to get the first 200 words of a string anyway?&amp;nbsp; Wouldn&amp;#39;t the number of characters be a more valid measurement in most cases?&lt;/p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;

&lt;br /&gt;
&lt;br /&gt;

Yes I agree with you. I still need to double check it whether I need to get the first 200 words or just first 200 characters. 

&lt;br /&gt;</description></item><item><title>Re: Is it possible to substring the whole word instead of characters in InfoPath</title><link>https://www.infopathdev.com:443/forums/thread/74360.aspx</link><pubDate>Sat, 21 Jan 2012 19:45:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:74360</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/74360.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=74360</wfw:commentRss><description>&lt;p&gt;I don&amp;#39;t think there is a simple way to make it dynamic.&amp;nbsp; You could modify it to nest more &lt;strong&gt;substring-after(..., &amp;quot; &amp;quot;)&lt;/strong&gt;s in there until you have 200.&amp;nbsp; Why do you want to to get the first 200 words of a string anyway?&amp;nbsp; Wouldn&amp;#39;t the number of characters be a more valid measurement in most cases?&lt;/p&gt;</description></item><item><title>Re: Is it possible to substring the whole word instead of characters in InfoPath</title><link>https://www.infopathdev.com:443/forums/thread/74338.aspx</link><pubDate>Fri, 20 Jan 2012 18:19:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:74338</guid><dc:creator>yyc2001</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/74338.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=74338</wfw:commentRss><description>&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;Jimmy:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;p&gt;No, I don&amp;#39;t think there&amp;#39;s anything as simple as what you&amp;#39;re asking about, but this should work for getting the first 6 words of a string:&lt;/p&gt;
&lt;p&gt;substring(&lt;strong&gt;&lt;u&gt;field&lt;/u&gt;&lt;/strong&gt;, 1, string-length(&lt;strong&gt;&lt;u&gt;field&lt;/u&gt;&lt;/strong&gt;) - string-length(substring-after(substring-after(substring-after(substring-after(substring-after(substring-after(&lt;strong&gt;&lt;u&gt;field&lt;/u&gt;&lt;/strong&gt;, &amp;quot; &amp;quot;), &amp;quot; &amp;quot;), &amp;quot; &amp;quot;), &amp;quot; &amp;quot;), &amp;quot; &amp;quot;), &amp;quot; &amp;quot;)))&lt;/p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;

&lt;br /&gt;
&lt;br /&gt;

Will this code work if I have for example more than 300 words and I just want to get the first 200?? 
&lt;br /&gt;
&lt;br /&gt;
I tried it but it only give me the first 6 words only. How do I code it so that it will be dynamic. 
&lt;br /&gt;
&lt;br /&gt;
What I mean is that if the length of the field is less than 200 I will get all the string in this field
If the length of the field is greater than 200 then I will just get the first 200.</description></item><item><title>Re: Is it possible to substring the whole word instead of characters in InfoPath</title><link>https://www.infopathdev.com:443/forums/thread/74331.aspx</link><pubDate>Fri, 20 Jan 2012 16:53:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:74331</guid><dc:creator>yyc2001</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/74331.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=74331</wfw:commentRss><description>The end result should be &amp;quot;Represents text that should be kept&amp;quot;. So it should print 6 words instead of 6 characters.</description></item><item><title>Re: Is it possible to substring the whole word instead of characters in InfoPath</title><link>https://www.infopathdev.com:443/forums/thread/74317.aspx</link><pubDate>Fri, 20 Jan 2012 13:49:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:74317</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/74317.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=74317</wfw:commentRss><description>&lt;p&gt;No, I don&amp;#39;t think there&amp;#39;s anything as simple as what you&amp;#39;re asking about, but this should work for getting the first 6 words of a string:&lt;/p&gt;
&lt;p&gt;substring(&lt;strong&gt;&lt;u&gt;field&lt;/u&gt;&lt;/strong&gt;, 1, string-length(&lt;strong&gt;&lt;u&gt;field&lt;/u&gt;&lt;/strong&gt;) - string-length(substring-after(substring-after(substring-after(substring-after(substring-after(substring-after(&lt;strong&gt;&lt;u&gt;field&lt;/u&gt;&lt;/strong&gt;, &amp;quot; &amp;quot;), &amp;quot; &amp;quot;), &amp;quot; &amp;quot;), &amp;quot; &amp;quot;), &amp;quot; &amp;quot;), &amp;quot; &amp;quot;)))&lt;/p&gt;</description></item><item><title>Re: Is it possible to substring the whole word instead of characters in InfoPath</title><link>https://www.infopathdev.com:443/forums/thread/74315.aspx</link><pubDate>Fri, 20 Jan 2012 12:34:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:74315</guid><dc:creator>ErnestoM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/74315.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=74315</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Sorry, I guess I&amp;#39;m not understanding. If your input phrase is &amp;quot;Represents text that should be kept confidential&amp;quot;, what should be the end result?&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Is it possible to substring the whole word instead of characters in InfoPath</title><link>https://www.infopathdev.com:443/forums/thread/74296.aspx</link><pubDate>Thu, 19 Jan 2012 23:15:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:74296</guid><dc:creator>yyc2001</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/74296.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=74296</wfw:commentRss><description>I know that I can set substring in the rule and apply the rule in the InfoPath. But substring can only get the character out and not the whole word. Is it possible to substring the whole word instead of getting characters. 
&lt;br /&gt;
&lt;br /&gt;
For example, I have this string name input: &amp;quot;Represents text that should be kept confidential.&amp;quot; If I use the substring(input, 0, 6) it will give me &amp;quot;Repres&amp;quot;. But I&amp;#39;m not too sure if I can get the first 6 word using the rule in InfoPath. 
&lt;br /&gt;
&lt;br /&gt;
Thank you very much.</description></item></channel></rss>