<?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: Problem populating Infopath Dropdown with lookup column (in Sharepoint)</title><link>https://www.infopathdev.com:443/forums/thread/65448.aspx</link><pubDate>Fri, 25 Mar 2011 16:19:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:65448</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/65448.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=65448</wfw:commentRss><description>&lt;p&gt;Well, again, I think the issue is with it being secondary data. At what point is a 2ds field considered to have changed? Not on query, right? Because that is when the data is loaded, so I&amp;#39;d think that would be considered its original state. And to run a rule off the field itself, the field has to change.&amp;nbsp;Obviously, this would be easy in code -- run the query, loop through the returned values, update them all to a substring. No issues there.... But in rules, I think it becomes a lot more difficult, because you have no way to really &amp;quot;loop&amp;quot; through the returned nodes....&lt;/p&gt;
&lt;p&gt;Of course, I had to go test this....So, I created a form, added a data connection to a list, added a rule to one of the fields to show a message box. I added a button to query the list. Querying (initial fill of the data source) doesn&amp;#39;t trigger my rules. Changing a field does. Requerying AFTER changing a field does NOT.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Again, pretty trivial in code, but I&amp;#39;m not seeing how to do it in rules. qRules has a SetValue command -- that might be able to handle this, if a field with a counter that could be used to trigger the logic was added to the form (since we have to run the SetValue command for each row returned from the secondary data source).&lt;/p&gt;</description></item><item><title>Re: Problem populating Infopath Dropdown with lookup column (in Sharepoint)</title><link>https://www.infopathdev.com:443/forums/thread/65443.aspx</link><pubDate>Fri, 25 Mar 2011 15:08:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:65443</guid><dc:creator>dms.WebDev</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/65443.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=65443</wfw:commentRss><description>&lt;p&gt;What if you gave the field a default value on load like a space or . (dot) or something that would change?&amp;nbsp; Kind of a lame approach but it might work.&lt;/p&gt;</description></item><item><title>Re: Problem populating Infopath Dropdown with lookup column (in Sharepoint)</title><link>https://www.infopathdev.com:443/forums/thread/65426.aspx</link><pubDate>Thu, 24 Mar 2011 21:09:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:65426</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/65426.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=65426</wfw:commentRss><description>&lt;p&gt;Hey, dms.WebDev - I was thinking about the same thing at first, too. But I think the issue with that is that it would have to be a rule on the field itself... and rules run when a field changes....and the field won&amp;#39;t be changing, just having data loaded from the original query. Since the field will be in a repeating group (coming from a SharePoint List) there really isn&amp;#39;t going to be a rule based way to clean it up, I think....&lt;/p&gt;</description></item><item><title>Re: Problem populating Infopath Dropdown with lookup column (in Sharepoint)</title><link>https://www.infopathdev.com:443/forums/thread/65422.aspx</link><pubDate>Thu, 24 Mar 2011 20:24:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:65422</guid><dc:creator>dms.WebDev</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/65422.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=65422</wfw:commentRss><description>&lt;p&gt;I understand what Hilary is saying if it&amp;#39;s true that you have an &amp;quot;original&amp;quot; list to read from instead.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know if this will work but can you add a function&amp;nbsp;to parse the string value to strip out the prefix?&amp;nbsp; e.g. substring(@CorrectValue1, 4, 4)?? Not sure but you could play around with it.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Problem populating Infopath Dropdown with lookup column (in Sharepoint)</title><link>https://www.infopathdev.com:443/forums/thread/65353.aspx</link><pubDate>Tue, 22 Mar 2011 16:42:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:65353</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/65353.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=65353</wfw:commentRss><description>&lt;p&gt;Hi:&lt;/p&gt;
&lt;p&gt;The lookup columns for the list must have a data source, right? And that would be another list? Can you create a data connection to the original list?&lt;/p&gt;</description></item><item><title>Problem populating Infopath Dropdown with lookup column (in Sharepoint)</title><link>https://www.infopathdev.com:443/forums/thread/65229.aspx</link><pubDate>Wed, 16 Mar 2011 09:51:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:65229</guid><dc:creator>chintan.desai</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/65229.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=65229</wfw:commentRss><description>Hi Folks,

I had drop down in Infopath which fetch values from Sharepoint List lookup column. Values are coming correctly, but prefix with some junk data. e.g. &amp;quot;20#;CorrectValue1&amp;quot;. &amp;quot;20#;&amp;quot; are junk values

While research, I got to know that Sharepoint List column is a lookup and it is referencing another Sharepoint List column. And junk value are row number in reference List. I mean - &amp;quot;20#;&amp;quot; is the 20th row for &amp;#39;CorrectValue1&amp;#39; in reference List.

I tried creating another column in Sharepoint list having Calculating column type, but Calculating column type will not work for lookup column.

I am using Infopath 2007 with MOSS.

Please advice.

- Chintan</description></item></channel></rss>