<?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: Creating Infopath form with values from db field</title><link>https://www.infopathdev.com:443/forums/thread/65558.aspx</link><pubDate>Tue, 29 Mar 2011 16:05:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:65558</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/65558.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=65558</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m guessing we are cross posting a bit -- to clarify the first sample does &lt;em&gt;not&lt;/em&gt; use qRules, but default values and a manual manifest change.&lt;/p&gt;
&lt;p&gt;The second sample uses qRules.&lt;/p&gt;
&lt;p&gt;So now you have two choices!&lt;/p&gt;</description></item><item><title>Re: Creating Infopath form with values from db field</title><link>https://www.infopathdev.com:443/forums/thread/65557.aspx</link><pubDate>Tue, 29 Mar 2011 16:04:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:65557</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/65557.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=65557</wfw:commentRss><description>&lt;p&gt;Well, to use qRules, you&amp;#39;d need take the approach outlined in &lt;a href="http://www.infopathdev.com/files/folders/qrules/entry58577.aspx" target="_blank"&gt;this document&lt;/a&gt;. Basically, you&amp;#39;d have to insert into your main data source the number of groups you need, then you can use a counter field to loop through and set values. Since the counter will move from n to 0, the items may be in the opposite order you expect, but you can resort them using SortTable.&lt;/p&gt;
&lt;p&gt;Again, easier to explain with a sample. I&amp;#39;m attaching a sample form. The logic is on the qRules finishedLoading node and on the repeating &amp;quot;group2&amp;quot; in the main data source....&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;NOTE: This sample is injected with the trial version of qRules, and will expire on 6/15 &lt;/strong&gt;(just wanted to add that for the benefit of future forum users who run across this).&lt;/p&gt;</description></item><item><title>Re: Creating Infopath form with values from db field</title><link>https://www.infopathdev.com:443/forums/thread/65556.aspx</link><pubDate>Tue, 29 Mar 2011 15:59:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:65556</guid><dc:creator>JackInBoston</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/65556.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=65556</wfw:commentRss><description>That is exactly what I&amp;#39;m looking for!&amp;nbsp; Did you use qRules for the form loads?</description></item><item><title>Re: Creating Infopath form with values from db field</title><link>https://www.infopathdev.com:443/forums/thread/65555.aspx</link><pubDate>Tue, 29 Mar 2011 15:41:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:65555</guid><dc:creator>JackInBoston</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/65555.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=65555</wfw:commentRss><description>How could i get qRules to do this?</description></item><item><title>Re: Creating Infopath form with values from db field</title><link>https://www.infopathdev.com:443/forums/thread/65527.aspx</link><pubDate>Mon, 28 Mar 2011 22:08:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:65527</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/65527.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=65527</wfw:commentRss><description>&lt;p&gt;You&amp;#39;ll need to create a secondary data connection to your SQL table (you have DBXL, so you can use QueryDB for that). Then, the tricky bit is going to be copying your secondary data into your main data source --&lt;/p&gt;
&lt;p&gt;Basically, you&amp;#39;ll need to insert how ever many number of rows returned by your SQL query to your main data source. Then populate those with the correct traits. Unfortunately, out of the box, InfoPath has no UI way of accomplishing this. It can be done either with custom code, or with &lt;a href="http://www.qdabra.com/en/products/qRules.aspx" target="_blank"&gt;qRules&lt;/a&gt;. &lt;/p&gt;
&lt;p&gt;There is probably a third option -- but it seems like it would have a greater potential for failure -- and that would be if you have a good idea of the maximum number of traits you&amp;#39;d have, you might be able to default your main data source to contain that number of rows in the repeating group where you want these, and modify the manifest to be able to populate the repeating fields correctly.... hmm. I&amp;#39;m attaching a sample, since it is easier to understand if you see it. &lt;a href="http://www.infopathdev.com/blogs/hilary/archive/2009/06/07/hack-manifest-xsf-to-filter-the-target-of-a-rule.aspx" target="_blank"&gt;Here&amp;#39;s&lt;/a&gt; a blog post that talks about the manual manifest mods I made.&lt;/p&gt;
&lt;p&gt;To check out the sample, right click the link in the heading to this post and save the XSN locally. Then you can right click on the XSN and select Design to open in design mode. Preview it to see the functionality....&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Creating Infopath form with values from db field</title><link>https://www.infopathdev.com:443/forums/thread/65520.aspx</link><pubDate>Mon, 28 Mar 2011 19:53:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:65520</guid><dc:creator>JackInBoston</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/65520.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=65520</wfw:commentRss><description>thats exactly what i want to do, and unfortunately i dont have much experience with infopath or sql</description></item><item><title>Re: Creating Infopath form with values from db field</title><link>https://www.infopathdev.com:443/forums/thread/65519.aspx</link><pubDate>Mon, 28 Mar 2011 19:42:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:65519</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/65519.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=65519</wfw:commentRss><description>&lt;p&gt;So, I think what you are saying is that when the form is opened, you want to have a table with all the traits and the user can select a rating for each trait? Then the user submits, and the data goes into your target table?&lt;/p&gt;
&lt;p&gt;The tricky bit then is that you&amp;#39;ll need to insert groups into your main data source, and copy in the Traits -- because you are going to have to have the data in the main data source. This can be done with custom code, or qRules can also do this (if I&amp;#39;ve understood correctly what you want to do?)&lt;/p&gt;</description></item><item><title>Re: Creating Infopath form with values from db field</title><link>https://www.infopathdev.com:443/forums/thread/65518.aspx</link><pubDate>Mon, 28 Mar 2011 19:30:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:65518</guid><dc:creator>JackInBoston</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/65518.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=65518</wfw:commentRss><description>&lt;p&gt;Thanks for replying so quick!&lt;/p&gt;&lt;p&gt;The lookup is within the db.&amp;nbsp; Some of the values are:&lt;/p&gt;&lt;p&gt;Teamwork, Adaptability, Preparation, DecisionMaking, etc.&lt;/p&gt;&lt;p&gt;&amp;nbsp;I am not sure how to pull those values in to the form so they would each display with a rating field next to them.&amp;nbsp; When the form is submitted, the table would look something like this:&lt;/p&gt;&lt;table cellspacing="0" bgcolor="#ffffff"&gt;&lt;font color="#000000" face="Verdana"&gt;&lt;b&gt;&lt;/b&gt;&lt;/font&gt;


&lt;tr&gt;
&lt;th&gt;&lt;font style="font-size:11pt;" color="#000000" face="Verdana"&gt;ID&lt;/font&gt;&lt;/th&gt;
&lt;th&gt;&lt;font style="font-size:11pt;" color="#000000" face="Verdana"&gt;Employee&lt;/font&gt;&lt;/th&gt;
&lt;th&gt;&lt;font style="font-size:11pt;" color="#000000" face="Verdana"&gt;Reviewer&lt;/font&gt;&lt;/th&gt;
&lt;th&gt;&lt;font style="font-size:11pt;" color="#000000" face="Verdana"&gt;Trait&lt;/font&gt;&lt;/th&gt;
&lt;th&gt;&lt;font style="font-size:11pt;" color="#000000" face="Verdana"&gt;Rating&lt;/font&gt;&lt;/th&gt;

&lt;/tr&gt;


&lt;tr&gt;
&lt;td align="RIGHT"&gt;&lt;font style="font-size:11pt;" color="#000000" face="Verdana"&gt;1&lt;/font&gt;&lt;/td&gt;
&lt;td&gt;&lt;font style="font-size:11pt;" color="#000000" face="Verdana"&gt;Jane Doe&lt;/font&gt;&lt;/td&gt;
&lt;td&gt;&lt;font style="font-size:11pt;" color="#000000" face="Verdana"&gt;John Smith&lt;/font&gt;&lt;/td&gt;
&lt;td&gt;&lt;font style="font-size:11pt;" color="#000000" face="Verdana"&gt;Teamwork&lt;/font&gt;&lt;/td&gt;
&lt;td&gt;&lt;font style="font-size:11pt;" color="#000000" face="Verdana"&gt;4&lt;/font&gt;&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;
&lt;td align="RIGHT"&gt;&lt;font style="font-size:11pt;" color="#000000" face="Verdana"&gt;2&lt;/font&gt;&lt;/td&gt;
&lt;td&gt;&lt;font style="font-size:11pt;" color="#000000" face="Verdana"&gt;Jane Doe&lt;/font&gt;&lt;/td&gt;
&lt;td&gt;&lt;font style="font-size:11pt;" color="#000000" face="Verdana"&gt;John Smith&lt;/font&gt;&lt;/td&gt;
&lt;td&gt;&lt;font style="font-size:11pt;" color="#000000" face="Verdana"&gt;Adaptability&lt;/font&gt;&lt;/td&gt;
&lt;td&gt;&lt;font style="font-size:11pt;" color="#000000" face="Verdana"&gt;3&lt;/font&gt;&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;
&lt;td align="RIGHT"&gt;&lt;font style="font-size:11pt;" color="#000000" face="Verdana"&gt;3&lt;/font&gt;&lt;/td&gt;
&lt;td&gt;&lt;font style="font-size:11pt;" color="#000000" face="Verdana"&gt;Jane Doe&lt;/font&gt;&lt;/td&gt;
&lt;td&gt;&lt;font style="font-size:11pt;" color="#000000" face="Verdana"&gt;John Smith&lt;/font&gt;&lt;/td&gt;
&lt;td&gt;&lt;font style="font-size:11pt;" color="#000000" face="Verdana"&gt;Preparation&lt;/font&gt;&lt;/td&gt;
&lt;td&gt;&lt;font style="font-size:11pt;" color="#000000" face="Verdana"&gt;4&lt;/font&gt;&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;
&lt;td align="RIGHT"&gt;&lt;font style="font-size:11pt;" color="#000000" face="Verdana"&gt;4&lt;/font&gt;&lt;/td&gt;
&lt;td&gt;&lt;font style="font-size:11pt;" color="#000000" face="Verdana"&gt;Jane Doe&lt;/font&gt;&lt;/td&gt;
&lt;td&gt;&lt;font style="font-size:11pt;" color="#000000" face="Verdana"&gt;John Smith&lt;/font&gt;&lt;/td&gt;
&lt;td&gt;&lt;font style="font-size:11pt;" color="#000000" face="Verdana"&gt;DecisionMaking&lt;/font&gt;&lt;/td&gt;
&lt;td&gt;&lt;font style="font-size:11pt;" color="#000000" face="Verdana"&gt;2&lt;/font&gt;&lt;/td&gt;

&lt;/tr&gt;


&lt;/table&gt;</description></item><item><title>Re: Creating Infopath form with values from db field</title><link>https://www.infopathdev.com:443/forums/thread/65517.aspx</link><pubDate>Mon, 28 Mar 2011 19:17:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:65517</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/65517.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=65517</wfw:commentRss><description>&lt;p&gt;Hey, welcome...&lt;/p&gt;
&lt;p&gt;When you say:&lt;/p&gt;
&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;JackInBoston:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;The trait field has about 20 different values that i have setup as a lookup.&amp;nbsp;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;
&lt;p&gt;What do you mean? Do you mean that the control bound to the trait field is a drop down control? What are you using for the data source? Is it a secondary data source? Where are the ratings stored? Also a secondary data source?&lt;/p&gt;
&lt;p&gt;I could use a little bit more info -- I&amp;#39;m pretty sure what you are trying to do is possible, but want to make sure I understand what you are trying to do, first....&lt;/p&gt;</description></item><item><title>Creating Infopath form with values from db field</title><link>https://www.infopathdev.com:443/forums/thread/65516.aspx</link><pubDate>Mon, 28 Mar 2011 19:01:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:65516</guid><dc:creator>JackInBoston</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/65516.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=65516</wfw:commentRss><description>&lt;p&gt;Hi All:&lt;/p&gt;&lt;p&gt;I have a table that has the following fields (this is for employee evals):&lt;/p&gt;&lt;p&gt;Employee&lt;/p&gt;&lt;p&gt;Reviewer&lt;/p&gt;&lt;p&gt;Trait&lt;/p&gt;&lt;p&gt;Rating&lt;/p&gt;&lt;p&gt;the form will be submitted through dbxl to the sql db.&lt;/p&gt;&lt;p&gt;The trait field has about 20 different values that i have setup as a lookup.&amp;nbsp; What i would like to do is have each of those values display on an infopath form, with a rating field associated with it.&amp;nbsp; How can i do this?&amp;nbsp; I am at a loss and don&amp;#39;t even know if it is possible.&lt;/p&gt;</description></item></channel></rss>