<?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: Filtering 'set a fields value', problems</title><link>https://www.infopathdev.com:443/forums/thread/19698.aspx</link><pubDate>Wed, 09 May 2007 13:48:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:19698</guid><dc:creator>ahardin</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/19698.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=19698</wfw:commentRss><description>&lt;p&gt;Shiraz&lt;/p&gt;&lt;p&gt;&amp;nbsp;Thanks for your effort but even doing it on default values it exhibits the descending nature.&amp;nbsp; I am working now on populating employee number from full name, works a treat on filtering the default value until the employee number is greater than the max of the previous ones, then employee number equals the previous max.&lt;/p&gt;&lt;p&gt;&amp;nbsp;This is getting really frustrating now and i could do with some workaround&lt;/p&gt;&lt;p&gt;Cheers Adam&lt;/p&gt;</description></item><item><title>Re: Filtering 'set a fields value', problems</title><link>https://www.infopathdev.com:443/forums/thread/18203.aspx</link><pubDate>Tue, 13 Feb 2007 09:25:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:18203</guid><dc:creator>Shiraz Cupala</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/18203.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=18203</wfw:commentRss><description>Instead of using rules you should try setting the default value of the Price field to the lookup value filtered on the selected product.  That should solve your issue.</description></item><item><title>Re: Filtering 'set a fields value', problems</title><link>https://www.infopathdev.com:443/forums/thread/18202.aspx</link><pubDate>Tue, 05 Dec 2006 17:45:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:18202</guid><dc:creator>RLPopeIII</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/18202.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=18202</wfw:commentRss><description>I am having the same problem. I am using a unique ID as Stavi suggested, and all of my results are constrained by previous results in the repeating table.  For example, my lookup up is:&lt;br /&gt;&lt;br /&gt;UID    FName   LName&lt;br /&gt;CT-1   Bob     Smith&lt;br /&gt;CT-2   Jason   Green&lt;br /&gt;CT-3   Mark    Johnson&lt;br /&gt;&lt;br /&gt;In my form I store have a picklist that displays LName and stores UID in a field contactID&lt;br /&gt;&lt;br /&gt;I have set up a rule that set's values for FName and LName with filters WHERE contactID=UID.&lt;br /&gt;&lt;br /&gt;When I use the form the first instance populates correctly.  The scond one will only populate with data WHERE contactID is equal to or less than that of the previous instance.  For example:&lt;br /&gt;&lt;br /&gt; &lt;ul&gt;&lt;li&gt;I select CT-2 (Jason Green) in the 1st row and it populates correctly with Jasonn Green  &lt;/li&gt;&lt;br /&gt;&lt;li&gt;I select CT-1 (Bob Smith)in the 2nd row and it populates correctly with Bob Smith&lt;/li&gt;&lt;br /&gt;&lt;li&gt;I select CT-3 (Mark Johnson) for the 3rd row and it populates incorrectly with Bob Smith &lt;/li&gt; &lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;I've tried using the solution provided on this site (&lt;a href='http://infopathdev.com/howto/tutorials/default.aspx?i=9111ef580f95479890fc18fb2c5bac85' target='_blank' title='http://infopathdev.com/howto/tutorials/default.aspx?i=9111ef580f95479890fc18fb2c5bac85'&gt;Automatically Populate Fields from a Drop-Down Selection&lt;/a&gt;) and it still does not work.  This method uses the current() function as oppsed to the built in filter.&lt;br /&gt;&lt;br /&gt;Can any one tell me exactly what the filter feature is doing or how to correct this?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Thank you,&lt;br /&gt;&lt;br /&gt;Ren</description></item><item><title>Re: Filtering 'set a fields value', problems</title><link>https://www.infopathdev.com:443/forums/thread/18201.aspx</link><pubDate>Tue, 31 Oct 2006 11:09:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:18201</guid><dc:creator>Stavi</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/18201.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=18201</wfw:commentRss><description>do you have a unique id field in your product list?&lt;br /&gt;&lt;br /&gt;If so add a single hidden field, when a product is selected populate the hidden field with the id, then use the hidden field to filter info to populate the rows, that way you avoid the confusion to which row you are refering to.&lt;br /&gt;&lt;br /&gt;I explained that rather badly. I did find this technique on this web site so look around for a better description&lt;br /&gt;</description></item><item><title>Filtering 'set a fields value', problems</title><link>https://www.infopathdev.com:443/forums/thread/18039.aspx</link><pubDate>Mon, 30 Oct 2006 08:23:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:18039</guid><dc:creator>adamrharding</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/18039.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=18039</wfw:commentRss><description>Imagine i have a purchase order form which is linked to a secondary data source supplying the goods that can be purchased and price per item. &lt;br /&gt;&lt;br /&gt;Primary Data Source &lt;br /&gt;Repeating &lt;br /&gt;@ItemName, @ItemPrice, @ItemQty, @LineCost &lt;br /&gt;&lt;br /&gt;Secondary Data Source &lt;br /&gt;@ProductName, @ProductPrice &lt;br /&gt;&lt;br /&gt;the customer fills out the order by selecting an item form the drop-down list @ItemName with the values from @ProductName and inputting the quantity required in text box @ItemQty. Using rules i set the @ItemPrice value relative to the name of the product from the secondary data source ie where @ItemName = @ProductName. Then i autocalculate the @LineCost by multiplying @ItemPrice by @ItemQty. &lt;br /&gt;&lt;br /&gt;PROBLEM &lt;br /&gt;The rule to set the @ItemPrice field works fine for the first line of the repeating table but falls down on subsequent lines if the @ProductPrice value is larger than the line above, in which case it defaults to the first line's value for @ItemPrice. If the @ProductPrice is lower it will work fine, but only as &lt;br /&gt;long as on each subsequent line the @ItemPrice is lower or equal to the lines above. &lt;br /&gt;&lt;br /&gt;Furthermore, if items had a value of only $1 or $2 then you could select an item priced at $2 in the first line and $1 in the second line but subsequently you would see a @ItemPrice of $1 no matter what you selected.&lt;br /&gt;&lt;br /&gt;WORKAROUND&lt;br /&gt;Altering the set a fields value rule to &lt;br /&gt;@ItemPrice where @ProductName = current()/@ItemName  &lt;br /&gt;has no impact in helping solve this rule but after a year of trying i have worked a way around it. GET THE USER TO SELECT THE PRICE FILTERED BY THE SAME CRITERIA. Change the @ItemPrice field to a drop-down list box and validate it not to be blank. Supply the price list from the secondary data source list @ProductPrice but filter it where @ItemName = @ProductName which means there is only one item in the list, THE CORRECT PRICE. &lt;br /&gt;&lt;br /&gt;ANALYSIS &lt;br /&gt;I cannot help but feel that the automatic rule only populating values lower than the first harks back to filtering in Excel and ordering. This presents a massive problem to proper development of infopath as a forms tool where it cannot through its own rules satisfy this not very demanding criteria. I hope that a fix for this is in the pipeline for Infopath 2007.&lt;br /&gt;&lt;br /&gt;This is an ineligant solution and would be FAR better if the filter rule applied to the 'set a fields value' in the clean way it filters the secondary data source in the drop-down list.  &lt;br /&gt;&lt;br /&gt;What am i doing wrong or is this a problem with Infopath?  Somebody tell me as i am less than happy to use this workaround.  I have also had other Infopath developers ask me of a way around this and up until now i have not been able to get it to work at all.&lt;br /&gt;&lt;br /&gt;Cheers Adam &lt;br /&gt; &lt;br /&gt; &lt;br /&gt;</description></item></channel></rss>