<?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: Manager Hierarchy</title><link>https://www.infopathdev.com:443/forums/thread/83216.aspx</link><pubDate>Thu, 04 Oct 2012 13:09:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:83216</guid><dc:creator>BejeweledOne</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/83216.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=83216</wfw:commentRss><description>&lt;p&gt;I can&amp;#39;t upload the form, it&amp;#39;s too large (286k), maybe I could email it? &amp;nbsp;I am including a put together picture as the form is too large to include a full screenshot.&amp;nbsp;&amp;nbsp; Here is some additonal information that hopefully helps&lt;/p&gt;
&lt;p&gt;This particular piece of the form is a cascading dropdown setup with the second dropdown being populated by a repeating table where the information in the&amp;nbsp;table&amp;nbsp;is added dynamically based on the selection in the first dropdown.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;The fields that you will be interested in are:&lt;/p&gt;
&lt;p&gt;myfields&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; grpNewDevice&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lstSupportedDevices&amp;nbsp; (The dropdown listing the Cell phone Models)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lstColor&amp;nbsp; (The dropdown showing the available colors for the selected phone)&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp; grpMainDebug&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; strColor1&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; strColor2&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; strColor3&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; strColor4&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp; grpColor (The repeating table group)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Color (The repeating group that gets dynamically populated by rules on the color fields)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; strColor&amp;nbsp; (The field in the repeating table)&lt;/p&gt;
&lt;p&gt;The basic scenario ~ Employee filling out the form selects a phone from the dropdown list.&amp;nbsp; The second dropdown is populated with the available colors for the phone selected.&lt;/p&gt;
&lt;p&gt;How it is supposed to work ~ The colors and number of colors change based on the item selected in the first list.&amp;nbsp; So the table that the dropdown list gets its value from is a repeating table that is&amp;nbsp; populated dynamically by rules on the 4 &amp;#39;color&amp;#39; fields.&amp;nbsp; There will always be a value in the first field.&amp;nbsp;&amp;nbsp; The first color field has a &amp;#39;set field&amp;#39; rule to populate the 2nd color field from the data in the SharePoint list.&amp;nbsp; This &amp;#39;strColor2&amp;#39; is where all the &amp;#39;magic&amp;#39; starts to happen.&amp;nbsp; If the condition &amp;#39;Not blank&amp;#39; is met, the rules insert and populate a row into the repeating table and then populate &amp;#39;strColor3&amp;#39; where this process is repeated and then on to &amp;#39;strColor4&amp;#39;.&lt;/p&gt;
&lt;p&gt;If the employee filling out the form mistakenly selects the wrong phone from the list and then changes his selection, the corresponding &amp;#39;lstColor&amp;#39; should only display the available colors for the phone selected.&amp;nbsp;&amp;nbsp; This means that somewhere a delete has to happen to clear the rows for the repeating table or it just keeps adding rows&amp;nbsp;and if the 2nd selection made has fewer colors associated with it then the first, there will be lingering items from the 1st selection.&lt;/p&gt;
&lt;p&gt;This image shows a selection in the list of phones and it&amp;#39;s corresponding list of colors.&amp;nbsp;&amp;nbsp; The second part of the image shows what happens if a different selection is made of a phone that has fewer colors than the first.&amp;nbsp;&amp;nbsp;&amp;nbsp; Each&amp;nbsp;part shows the repeating table and what is happening to it when the selection is made.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Manager Hierarchy</title><link>https://www.infopathdev.com:443/forums/thread/83210.aspx</link><pubDate>Wed, 03 Oct 2012 23:54:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:83210</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/83210.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=83210</wfw:commentRss><description>&lt;p&gt;Any chance at all I could get you to share your form? I&amp;#39;m having a really hard time understanding this without seeing the form.&lt;/p&gt;
&lt;p&gt;Or a screenshot of the controls? I just don&amp;#39;t get what you are doing at all. I&amp;#39;m sorry.&lt;/p&gt;</description></item><item><title>Re: Manager Hierarchy</title><link>https://www.infopathdev.com:443/forums/thread/83189.aspx</link><pubDate>Wed, 03 Oct 2012 15:51:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:83189</guid><dc:creator>BejeweledOne</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/83189.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=83189</wfw:commentRss><description>Unfortunately not.   So this might help.  Here are the 4 color fields and their rules.

&lt;p&gt;StrColor 1
   &lt;br /&gt;Disable Field
   &lt;br /&gt;Set Color Value - No Condition
          &lt;br /&gt;Set strColor = strColor 1
          &lt;br /&gt;Set Color 2 - StrColor1 is not blank
          &lt;br /&gt;Set strColor2 = @ows_Color_x0020_2[strSupportedDevices = @ows_LinkTitle]&lt;/p&gt;


&lt;p&gt;StrColor2
   &lt;br /&gt;Disable Field
   &lt;br /&gt;Insert Table Row - StrColor2 is not blank
          &lt;br /&gt;Set Command = Insert /parent=/my:myFields/my:grpColor /child=my:Color /posn=last /count=1
          &lt;br /&gt;Set Command = concat(&amp;quot;SetValue /xpath=/my:myFields/my:grpColor/my:Color[2]/my:strColor /value=&amp;quot;, .)
          &lt;br /&gt;Set Color 3 - StrColor2 is not blank
          &lt;br /&gt;Set strColor3 = @ows_Color_x0020_3[strSupportedDevices = @ows_LinkTitle]&lt;/p&gt;


&lt;p&gt;StrColor3
   &lt;br /&gt;Disable Field
   &lt;br /&gt;Insert Table Row - StrColor3 is not blank
          &lt;br /&gt;Set Command = Insert /parent=/my:myFields/my:grpColor /child=my:Color /posn=last /count=1
          &lt;br /&gt;Set Command = concat(&amp;quot;SetValue /xpath=/my:myFields/my:grpColor/my:Color[3]/my:strColor /value=&amp;quot;, .)
          &lt;br /&gt;Set Color 4 - strColor3 is not blank
          &lt;br /&gt;Set strColor4 = @ows_Color_x0020_4[strSupportedDevices = @ows_LinkTitle]&lt;/p&gt;

&lt;p&gt;StrColor4
   &lt;br /&gt;Disable Field
   &lt;br /&gt;Insert Table Row - StrColor 4 is not blank
          &lt;br /&gt;Set Command = Insert /parent=/my:myFields/my:grpColor /child=my:Color /posn=last /count=1
          &lt;br /&gt;Set Command = concat(&amp;quot;SetValue /xpath=/my:myFields/my:grpColor/my:Color[4]/my:strColor /value=&amp;quot;, .)&lt;/p&gt;

&lt;p&gt;Where would I put the &amp;#39;Delete&amp;#39; command?&lt;/p&gt;

&lt;p&gt;I did try the delete command.   I had it on the strcolor1 field immediately after the original set color value.      
           &lt;br /&gt;This is the command I used:  Command = Delete /xpath=/my:myfields/my:grpcolor/my:color  and below is my structure.

&lt;p&gt;</description></item><item><title>Re: Manager Hierarchy</title><link>https://www.infopathdev.com:443/forums/thread/83179.aspx</link><pubDate>Wed, 03 Oct 2012 14:07:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:83179</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/83179.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=83179</wfw:commentRss><description>&lt;p&gt;Will the &amp;quot;one color&amp;quot; always be the same color? If so, you could use an XPath like this (made up, since I have no idea of what your schema looks like):&lt;/p&gt;
&lt;p&gt;/xpath=Group/Rows/Row[Name != &amp;quot;Black&amp;quot;]&lt;/p&gt;</description></item><item><title>Re: Manager Hierarchy</title><link>https://www.infopathdev.com:443/forums/thread/83178.aspx</link><pubDate>Wed, 03 Oct 2012 12:23:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:83178</guid><dc:creator>BejeweledOne</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/83178.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=83178</wfw:commentRss><description>I did get the basic concept but after pondering it overnight, I have another question.  There will always be one color so the default row in the repeating table will always be populated when a selection is made in the Phone list.   So if I use the delete command without a filter, will it just delete any &amp;#39;inserted rows&amp;#39; leaving the default row alone or will it delete the entire table?

&lt;p&gt;If it deletes the entire table without a filter, how would I format the command to delete rows 2-4?</description></item><item><title>Re: Manager Hierarchy</title><link>https://www.infopathdev.com:443/forums/thread/83164.aspx</link><pubDate>Tue, 02 Oct 2012 14:54:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:83164</guid><dc:creator>BejeweledOne</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/83164.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=83164</wfw:commentRss><description>Ok, NOW I understand.    Thanks for explaining this.</description></item><item><title>Re: Manager Hierarchy</title><link>https://www.infopathdev.com:443/forums/thread/83163.aspx</link><pubDate>Tue, 02 Oct 2012 14:49:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:83163</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/83163.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=83163</wfw:commentRss><description>&lt;p&gt;The delete command deletes &lt;em&gt;all &lt;/em&gt;instances of a repeating element unless you use an XPath filter. I think you are maybe using a counter or something for your insert, but you don&amp;#39;t need that for delete. So when they change selection, on the field that is bound to the control where they are changing the selection, run a delete command and it will delete all instances of your &amp;quot;lines&amp;quot;&lt;/p&gt;</description></item><item><title>Re: Manager Hierarchy</title><link>https://www.infopathdev.com:443/forums/thread/83161.aspx</link><pubDate>Tue, 02 Oct 2012 14:39:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:83161</guid><dc:creator>BejeweledOne</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/83161.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=83161</wfw:commentRss><description>So what I have are 4 fields that could possibly be populated with a color.   These then are inserted into the dropdown list with the condition that the color field is &amp;#39;not blank&amp;#39;.   This I think poses a bit of a problem for the delete, which is why I wasn&amp;#39;t sure if it could be done.

&lt;p&gt;I can see where it would work if someone mistakenly selected an item with x number of colors and then selected the correct item which has x (+) colors, but if they were to mistakenly select an item that had x number of colors and then select the correct item that had X (-) number of colors it would only delete as many rows as were going to be inserted, which could leave 1 or more orphan lines, if I am looking at this correctly.&lt;/p&gt;


 &lt;p&gt;If we look at it like this:&lt;/p&gt;

&lt;p&gt;Color One :  Condition - Not Blank
    &lt;br /&gt;Delete Rule
    &lt;br /&gt;Insert Rule&lt;/p&gt;

&lt;p&gt;Color Two: Condition - Not Blank
    &lt;br /&gt;Delete Rule
    &lt;br /&gt;Insert Rule&lt;/p&gt;

&lt;p&gt;Color Three:  Condition - Not Blank
    &lt;br /&gt;Delete Rule
    &lt;br /&gt;Insert Rule&lt;/p&gt;

&lt;p&gt;Color Four:  Condition - Not Blank
    &lt;br /&gt;Delete Rule
    &lt;br /&gt;Insert Rule&lt;/p&gt;


&lt;p&gt;Employee selects Item X 

    &lt;br /&gt;Item X - 4 Colors
    &lt;br /&gt;4 lines are inserted into the dropdown&lt;/p&gt;

&lt;p&gt;Employee changes selection to Item Y

    &lt;br /&gt;Item Y - 2 Colors
    &lt;br /&gt;2 Lines will be inserted so ONLY 2 lines will be deleted.&lt;/p&gt;

&lt;p&gt;Am I understanding this correctly?&lt;/p&gt;</description></item><item><title>Re: Manager Hierarchy</title><link>https://www.infopathdev.com:443/forums/thread/83141.aspx</link><pubDate>Mon, 01 Oct 2012 19:32:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:83141</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/83141.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=83141</wfw:commentRss><description>&lt;p&gt;So, in your earlier post, you said:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Select Samsung Galaxy SIII&lt;/p&gt;
&lt;p&gt;3 rows added to the table&lt;/p&gt;
&lt;p&gt;Change selection to Apple iPhone&lt;/p&gt;
&lt;p&gt;2 more rows added to the table.&lt;/p&gt;
&lt;p&gt;Can you tell me how to use qrules to setup the delete command to delete the rows that were added initially? I already have the rules in place to set the 4 color fields to blank.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Whatever logic you are using to add more rows to the table - right before that command, you&amp;#39;d use the delete command to delete the existing rows from the table. If this is in a secondary data source, you&amp;#39;d need the /dsname parameter along with the /xpath parameter. Does that make sense? Feel free to attach your form to a reply if you&amp;#39;d like help.&lt;/p&gt;</description></item><item><title>Re: Manager Hierarchy</title><link>https://www.infopathdev.com:443/forums/thread/83139.aspx</link><pubDate>Mon, 01 Oct 2012 17:34:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:83139</guid><dc:creator>BejeweledOne</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/83139.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=83139</wfw:commentRss><description>Thanks,  I knew it had a delete command, I just didn&amp;#39;t know if it would handle this situation where rows are being inserted dynamically and depending on the item chosen it is a different number of rows that would need to be deleted.

&lt;p&gt;Qrules has already done so much for me, I keep looking for new ways to use it, but I still need assistance with the syntax etc.&lt;/p&gt;</description></item><item><title>Re: Manager Hierarchy</title><link>https://www.infopathdev.com:443/forums/thread/83138.aspx</link><pubDate>Mon, 01 Oct 2012 17:30:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:83138</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/83138.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=83138</wfw:commentRss><description>&lt;p&gt;qRules has a delete command and can be used to delete rows. Ernesto was not saying that qRules couldn&amp;#39;t delete rows, just that given your example it seemed like more work than needed.&lt;/p&gt;</description></item><item><title>Re: Manager Hierarchy</title><link>https://www.infopathdev.com:443/forums/thread/83131.aspx</link><pubDate>Mon, 01 Oct 2012 10:53:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:83131</guid><dc:creator>BejeweledOne</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/83131.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=83131</wfw:commentRss><description>If there were only those 2 items in this list that might be an idea.   Our list of supported phones can run anywhere from 8 - 15 phones at any given time.  I was just using the iPhone and the Samsung as examples as they were 2 that had multiple color choices.

If qrules can&amp;#39;t be used to delete the added rows then I will just have to figure something else out.</description></item><item><title>Re: Manager Hierarchy</title><link>https://www.infopathdev.com:443/forums/thread/83125.aspx</link><pubDate>Sun, 30 Sep 2012 22:25:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:83125</guid><dc:creator>ErnestoM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/83125.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=83125</wfw:commentRss><description>&lt;p&gt;I think this has become more complex than it needs to be. Why not have two sources for the data? You could have two dropdowns: one for the Samsung Galaxy SIII and one for the Apple Iphone. Then simply hide/show the correct dropdown, according to the selection made in the previous dropdown.&lt;/p&gt;&lt;p&gt;You are right that if you try to add rows and set their values, then you also need a way to delete those rows before again using Insert/SetValue.&lt;/p&gt;&lt;p&gt;It can be done, but it just seems like a lot of work. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Manager Hierarchy</title><link>https://www.infopathdev.com:443/forums/thread/83113.aspx</link><pubDate>Fri, 28 Sep 2012 13:26:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:83113</guid><dc:creator>BejeweledOne</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/83113.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=83113</wfw:commentRss><description>I agree.  Since the repeating table rows are inserted dynamically wouldn&amp;#39;t I need to have a delete command in there to remove the them so the list could be rebuilt?   If not I think it would just add additional rows.

&lt;p&gt;Scenario:&lt;/p&gt;

&lt;p&gt;Select Samsung Galaxy SIII&lt;/p&gt;

&lt;p&gt;3 rows added to the table&lt;/p&gt;

&lt;p&gt;Change selection to Apple iPhone&lt;/p&gt;

&lt;p&gt;2 more rows added to the table.&lt;/p&gt;


&lt;p&gt;Can you tell me how to use qrules to setup the delete command to delete the rows that were added initially?    I already have the rules in place to set the 4 color fields to blank.&lt;/p&gt;</description></item><item><title>Re: Manager Hierarchy</title><link>https://www.infopathdev.com:443/forums/thread/83104.aspx</link><pubDate>Thu, 27 Sep 2012 20:58:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:83104</guid><dc:creator>ErnestoM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/83104.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=83104</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m pretty sure you would need to clear the list and rebuild it. It seems like a straightforward cascading dropdown scenario, where if you have three cascading dropdowns (for example) and you change your mind on the first one, it should have a rule to clear out the 2nd and 3rd dropdowns, since the previous selections are now invalid.&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>