<?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: Populate Drop-Down List on Button Click</title><link>https://www.infopathdev.com:443/forums/thread/88110.aspx</link><pubDate>Mon, 18 Mar 2013 13:47:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:88110</guid><dc:creator>BejeweledOne</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/88110.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=88110</wfw:commentRss><description>Thanks!  That was perfect.   Now to the next step.&lt;br /&gt;
&lt;br /&gt;
This is a repeating table that contains this drop down list.  There will be multiple approvers selected.    I need to be able to take the approver name from each iteration of the repeating table and have it populate in a separate hidden field (one for each name) to be used in the workflow later.   I am going to guess that I start by using the &amp;#39;GetValue&amp;#39; along with the [last()] parameter to get the value from the repeating table.&lt;br /&gt;
&lt;br /&gt;
Where I get a little murky on the process is how to tell it to successively fill in the hidden fields so there is one name in each field.   I am going to guess that part of it is a condition that says if the previous field is not blank, but at that point I get lost.&lt;br /&gt;   
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Also, it would be ever so helpful if you guys could do 2 things with the Qrules user guide.   1.  Include a page # for each command in the contents OR have the first page after the contents be a list of all the available commands.   2.  In the command overview, put the commands in alpha order.     It is currently very difficult to navigate if you want to look at the information for just one command.</description></item><item><title>Re: Populate Drop-Down List on Button Click</title><link>https://www.infopathdev.com:443/forums/thread/88082.aspx</link><pubDate>Sun, 17 Mar 2013 19:06:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:88082</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/88082.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=88082</wfw:commentRss><description>&lt;p&gt;Hi Bejeweled,&lt;/p&gt;&lt;p&gt;You can do one of the following:&lt;/p&gt;&lt;ol&gt;&lt;li&gt;Query your SharePoint list with a filter (qRules FilterOwssvr, SharePoint 2010 REST, or DBXL QuerySharePoint&amp;nbsp;are three ways to do this)&lt;br /&gt;This technique is best practice for large lists since the filter is done on the server. &lt;/li&gt;&lt;li&gt;Get all items from SharePoint list and filter in the form &lt;br /&gt;Simple and effective if your approver&amp;#39;s list is less than a few hundred people.&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;So, I&amp;#39;ll assume you can do #2 for starters. &lt;/p&gt;&lt;p&gt;Your approver&amp;#39;s dropdown should be tied to the SharePoint List data connection. You don&amp;#39;t need to use a button for #2 (that&amp;#39;s more of a #1 option).&lt;/p&gt;&lt;p&gt;As your form is filled out, the total cost is changing. I&amp;#39;m assuming you have a field for total cost in the main data source with a default value equal to the sum of the line items.&lt;/p&gt;&lt;p&gt;In the dropdown for the approvers, just click on filter and set up two conditions in that filter dialog. One says that the Approval Minimum is less than the total cost field *and* the other says the Approval Maximum is greater than the total cost field. &lt;/p&gt;&lt;p&gt;That should be all that&amp;#39;s required. If you have more than a few hundred approvers, check out the qRules documentation for FilterOwssvr. I know you have a copy of qRules, and that should be faster than REST. DBXL QuerySharePoint is fastest for really large lists (more than 1000 rows)&lt;/p&gt;&lt;p&gt;Go forth and conquer! &lt;/p&gt;</description></item><item><title>Populate Drop-Down List on Button Click</title><link>https://www.infopathdev.com:443/forums/thread/88041.aspx</link><pubDate>Fri, 15 Mar 2013 13:32:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:88041</guid><dc:creator>BejeweledOne</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/88041.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=88041</wfw:commentRss><description>&lt;p&gt;I have a form where I need to populate a list of approvers based on their approval $ range.    I found this:  http://www.infopathdev.com/forums/p/14715/52306.aspx but it doesn&amp;#39;t go far enough in answering my question.&lt;br /&gt;
&lt;br /&gt;

In the InfoPath form I have a repeating table that will be filled out with part information that includes Quantity, Unit Price(Currency Field), Extended Price(Currency Field) and Total(Currency Field).  This section is working properly.  This information will never be static, each form will be different.   What I need to accomplish is for the initiator of the form to click a button to retrieve a list of approvers who have the $ range to approve the total cost of the items on the form. &lt;br /&gt;
&lt;br /&gt;
Exists:  SharePoint List with Approver Name, Approval Minimum (Currency) field and Approval Maximum (Currency) field&lt;br /&gt;
Exists:  drop-down list to be populated with the approvers (Filter on field populated by button query)&lt;br /&gt;
Exists:  button to query the SharePoint list with the correct math operations to (Filter equals strTotal&amp;gt;Approval Minimum AND strTotal&lt;br /&gt;
&lt;br /&gt;
What additional fields and logic do I need to create the filter that the Approvers list will use to populate correctly?&lt;/p&gt;</description></item></channel></rss>