<?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>Qdabra qRules</title><link>https://www.infopathdev.com:443/forums/131.aspx</link><description>qRules adds support to your InfoPath  forms. With qRules, you can add features to your form that require code, but without having to write it. </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: qRules FilterOwssvr to filter a semi-colon delimited field in a list for use in populating a drop-down?</title><link>https://www.infopathdev.com:443/forums/thread/64190.aspx</link><pubDate>Mon, 14 Feb 2011 19:00:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:64190</guid><dc:creator>kbailey</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/64190.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=64190</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Thanks, Jimmy. I fixed that and I modified the second rule that checks to see if the NameList is missing the delimiter to add a condition to check to see if the Name field is empty. Without that the second rule was populating the last two rows instead of only the last row.&lt;/p&gt;&lt;p&gt;Thanks again - I think my form is now ready to be published!&lt;/p&gt;&lt;p&gt;Kevin &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: qRules FilterOwssvr to filter a semi-colon delimited field in a list for use in populating a drop-down?</title><link>https://www.infopathdev.com:443/forums/thread/64188.aspx</link><pubDate>Mon, 14 Feb 2011 18:28:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:64188</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/64188.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=64188</wfw:commentRss><description>&lt;p&gt;You have a comma between the last pair of quotes, but there shouldn&amp;#39;t be anything between them.&lt;/p&gt;</description></item><item><title>Re: qRules FilterOwssvr to filter a semi-colon delimited field in a list for use in populating a drop-down?</title><link>https://www.infopathdev.com:443/forums/thread/64187.aspx</link><pubDate>Mon, 14 Feb 2011 18:16:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:64187</guid><dc:creator>kbailey</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/64187.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=64187</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi, Jimmy. I tried this and here is what I got:&lt;/p&gt;&lt;p&gt;&amp;nbsp;The insert command results in 1 row being added regardless of the length of the namesList string and regardless of the number of semicolons present.&amp;nbsp; This leads me to think that the count provided by&amp;nbsp; string-length(translate(@Invitees, &amp;quot;;&amp;quot;, &amp;quot;,&amp;quot;)) is the length of the entire string, not the count of number of occurrences of the delimiter. So the&amp;nbsp; string-length(@Invitees) - string-length(translate(@Invitees, &amp;quot;;&amp;quot;, &amp;quot;,&amp;quot;)) + 1) section results in a value of 1, regardless of input.&lt;/p&gt;&lt;p&gt;The rules on the attendee node work well - if I change &amp;#39;1&amp;#39; in the function above to &amp;#39;6&amp;#39; i get six distinct names.&lt;/p&gt;&lt;p&gt;Any other ideas how I might accomplish this?&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;Kevin &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: qRules FilterOwssvr to filter a semi-colon delimited field in a list for use in populating a drop-down?</title><link>https://www.infopathdev.com:443/forums/thread/64184.aspx</link><pubDate>Mon, 14 Feb 2011 17:00:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:64184</guid><dc:creator>kbailey</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/64184.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=64184</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Thanks for this Jimmy. I got the insert command to work but have to run to a few meetings -&amp;nbsp; when I get back I will try the rest. I really appreciate the help!&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: qRules FilterOwssvr to filter a semi-colon delimited field in a list for use in populating a drop-down?</title><link>https://www.infopathdev.com:443/forums/thread/64176.aspx</link><pubDate>Mon, 14 Feb 2011 15:44:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:64176</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/64176.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=64176</wfw:commentRss><description>&lt;p&gt;Ok, suppose your main data source was structured like this:&lt;/p&gt;
&lt;p&gt;myFields&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;L&amp;nbsp;&amp;nbsp;attendees&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; L&amp;nbsp; attendee (repeating)&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; L name (string)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; L attended (boolean)&lt;/p&gt;
&lt;p&gt;And let&amp;#39;s call the field where the semicolon delimited names are &amp;quot;&lt;strong&gt;&lt;u&gt;nameList&lt;/u&gt;&lt;/strong&gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;When you want to populate the list, you send this command to qRules:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;concat(&amp;quot;Insert /parent=/my:myFields/my:attendees /child=my:attendee /count=&amp;#39;, string-length(&lt;strong&gt;&lt;u&gt;nameList&lt;/u&gt;&lt;/strong&gt;) - string-length(translate(&lt;strong&gt;&lt;u&gt;nameList&lt;/u&gt;&lt;/strong&gt;, &amp;#39;;&amp;#39;, &amp;#39;&amp;#39;)) + 1)&lt;/p&gt;
&lt;p&gt;This &lt;em&gt;string-length(&lt;strong&gt;&lt;u&gt;nameList&lt;/u&gt;&lt;/strong&gt;) - string-length(translate(&lt;strong&gt;&lt;u&gt;nameList&lt;/u&gt;&lt;/strong&gt;, &amp;#39;;&amp;#39;, &amp;#39;&amp;#39;)) + 1&lt;/em&gt; part here is a trick to count the number of semicolon-separated segments in the field value.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Then on the &lt;strong&gt;attendee&lt;/strong&gt; field, you add the following rules:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Rule1 - condition: &lt;strong&gt;&lt;u&gt;nameList&lt;/u&gt;&lt;/strong&gt; contains ;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Set &lt;strong&gt;name&lt;/strong&gt; to &lt;em&gt;substring-before(&lt;strong&gt;&lt;u&gt;nameList&lt;/u&gt;&lt;/strong&gt;, &amp;#39;;&amp;#39;)&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Set &lt;strong&gt;&lt;u&gt;nameList&lt;/u&gt;&lt;/strong&gt; to &lt;em&gt;substring-after(&lt;strong&gt;&lt;u&gt;nameList&lt;/u&gt;&lt;/strong&gt;, &amp;#39;;&amp;#39;)&lt;/em&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Rule 2 - condition: &lt;strong&gt;&lt;u&gt;nameList&lt;/u&gt;&lt;/strong&gt; does not contain ;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Set &lt;strong&gt;name&lt;/strong&gt; to &lt;strong&gt;&lt;u&gt;nameList&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;
&lt;p&gt;As rows are added to the table, rule 1 will slowly chip away at &lt;strong&gt;nameList&lt;/strong&gt;, removing the first part, and leaving the remaining part.&amp;nbsp; Then when there is only one remaining part and the final row is added, rule 2 kicks in to assign the remainder to the &lt;strong&gt;name&lt;/strong&gt; field.&lt;/p&gt;
&lt;p&gt;Could you give that a try?&lt;/p&gt;</description></item><item><title>qRules FilterOwssvr to filter a semi-colon delimited field in a list for use in populating a drop-down?</title><link>https://www.infopathdev.com:443/forums/thread/64174.aspx</link><pubDate>Mon, 14 Feb 2011 14:15:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:64174</guid><dc:creator>kbailey</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/64174.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=64174</wfw:commentRss><description>&lt;p&gt;Dear InfoPath Dev gurus,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I am modifying the meeting notes InfoPath template to make it more interactive and to pull pre-populated information in to hopefully make it faster to fill out. For taking attendance, I want to create a custom sharepoint list with meeting names and semi-colon delimited lists of invitees, then have my form query that list, parse the list of invitees and use that list to populate&amp;nbsp;a repeating table where my meeting organizers can then record attendance.I found the delimited rule in qRules but that seems to do the opposite of what I&amp;#39;m trying to achieve - take rows of data and create a delimited list. I want to take a delimited list and populate rows of data. I saw that FilterOwssvr has a delimited switch, but I&amp;#39;m not sure whether it can be used to accomplish what I need. I consulted the PDF documentation but didn&amp;#39;t find any detail on using the delimited switch. Any help you can give would be terrific. Thanks!&lt;br /&gt;&lt;br /&gt;Kevin&lt;/p&gt;</description></item></channel></rss>