<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Cascading Drop-down List Boxes</title><link>https://www.infopathdev.com:443/forums/thread/13268.aspx</link><pubDate>Fri, 17 Jun 2005 14:24:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13268</guid><dc:creator>0bscur3</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13268.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13268</wfw:commentRss><description>Shanthi,&lt;br /&gt;&lt;br /&gt;Thanks for the reply, I tried your comments but I get the error that it cannot be applied to this field. Here is what I did.&lt;br /&gt;&lt;br /&gt;1. The User Field is blocked out under design field with Preserve code block fromt he view1.xml. So I open the data source tab and select user from the main domain and go to properties and then the third tab which is the rule tab.&lt;br /&gt;&lt;br /&gt;2. I add rule and name price. Add Action -- Set a field's value -- I click the button next to the Field: and select the price from Main DOM.&lt;br /&gt;&lt;br /&gt;3. I select the button next to the Value: I click insert group or field, I click the user field in the main dom and then the filer button on bottom left.&lt;br /&gt;&lt;br /&gt;4. From here I make user (main dom) = user (second dom which is the xml file above). It says the filter cannot be applied to the currently selected field.&lt;br /&gt;&lt;br /&gt;I would think if the rule is going on the user field (main) then the first field you select under set a field value would be price and then that information would filter from user (main) equal to user (sec dom).  Then I can xpath edit it.&lt;br /&gt;&lt;br /&gt;../my:Price[../my:User = xdXDocument:GetDOM("WSPricing")/Software/Product/User/@value]&lt;br /&gt;so I change that to &lt;br /&gt;&lt;br /&gt;../my:Price[../my:User = current ()/../("WSPricing")/Software/Product/User/@value]&lt;br /&gt;&lt;br /&gt;That is obviously the wrong formula. Any help?</description></item><item><title>Re: Cascading Drop-down List Boxes</title><link>https://www.infopathdev.com:443/forums/thread/13267.aspx</link><pubDate>Thu, 16 Jun 2005 23:15:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13267</guid><dc:creator>Shanthi Reddy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13267.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13267</wfw:commentRss><description>You will need to set a Rule on the User dropdown and select Set a field value, here select the Price node in this secondary Dom that you are using (which is above) and then filter such that value of the User (in the main dom) = the value of User in the secondary dom.&lt;br /&gt;&lt;br /&gt;You will need to use current() to get the value of the user of that specific row in the main DOM.&lt;br /&gt;&lt;br /&gt;Shanthi&lt;br /&gt;InfoPathDev India</description></item><item><title>Cascading Drop-down List Boxes</title><link>https://www.infopathdev.com:443/forums/thread/12468.aspx</link><pubDate>Thu, 16 Jun 2005 15:44:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12468</guid><dc:creator>0bscur3</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12468.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12468</wfw:commentRss><description>I was able to get the example working for a form I was putting together.&lt;br /&gt;&lt;br /&gt;Thanks for "Cascading Drop-down List Boxes in a Repeating Table (Using XSL Variable), v1.0"&lt;br /&gt;&lt;br /&gt;I followed the format for example two except her is my xml:&lt;br /&gt;&lt;br /&gt;&amp;lt;Software&amp;gt;&lt;br /&gt;  &amp;lt;Product value="Corporate Enterprise 1 Year"&amp;gt;&lt;br /&gt;    &amp;lt;User value="1-50"&amp;gt;&lt;br /&gt;	&amp;lt;Price value="$1650.00"/&amp;gt;&lt;br /&gt;    &amp;lt;/User&amp;gt;&lt;br /&gt;    &amp;lt;User value="51-100"&amp;gt;&lt;br /&gt;    	&amp;lt;Price value="$2750.00"/&amp;gt;&lt;br /&gt;    &amp;lt;/User&amp;gt;&lt;br /&gt;  &amp;lt;/Product&amp;gt;&lt;br /&gt;  &amp;lt;Product value="Corporate Enterprise 2 Year"&amp;gt;&lt;br /&gt;    &amp;lt;User value="1-50"&amp;gt;&lt;br /&gt;	&amp;lt;Price value="$2805.00"/&amp;gt;&lt;br /&gt;    &amp;lt;/User&amp;gt;&lt;br /&gt;    &amp;lt;User value="51-100"&amp;gt;&lt;br /&gt;    	&amp;lt;Price value="$4675.00"/&amp;gt;&lt;br /&gt;    &amp;lt;/User&amp;gt;&lt;br /&gt;  &amp;lt;/Product&amp;gt;  &lt;br /&gt;&amp;lt;/Software&amp;gt;&lt;br /&gt;&lt;br /&gt;I am able to get from the form by editing the view1.xsl so that I pick the product, then populates the User List and I choose the users. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The problem.  I want after I choose the user to populate the field My:price. Based off the xml &amp;lt;Price value="$4675.00"/&amp;gt;.&lt;br /&gt;&lt;br /&gt;I tried a rule to do this but it hasn't been very sucessful. Any help would be appreciated.&lt;br /&gt;&lt;br /&gt;Thanks.</description></item></channel></rss>