<?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 Infopath Dropdown Control through Sharepoint List View</title><link>https://www.infopathdev.com:443/forums/thread/36551.aspx</link><pubDate>Sun, 04 Jan 2009 22:57:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36551</guid><dc:creator>DummyDumb</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36551.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=36551</wfw:commentRss><description>&lt;p&gt;Hello Shiva,&lt;/p&gt;
&lt;p&gt;Your proposed solution works like a charm :-)&lt;/p&gt;
&lt;p&gt;I wasn&amp;#39;t sure if edits in view1.xls remain after editing the Infopath Form afterwards, but they do.&lt;/p&gt;
&lt;p&gt;I finally changed the displayed info in the DropDown to the following (therefore it doesn&amp;#39;t matter how long the preceding ID is):&lt;/p&gt;
&lt;p&gt;&amp;lt;xsl:value-of select=&amp;quot;substring-after(@ows_Person,&amp;#39;#&amp;#39;)&amp;quot;/&amp;gt;&lt;/p&gt;
&lt;p&gt;Thank you very much again for the solution - this saved me a lot of time.&lt;/p&gt;</description></item><item><title>Re: Populate Infopath Dropdown Control through Sharepoint List View</title><link>https://www.infopathdev.com:443/forums/thread/36289.aspx</link><pubDate>Fri, 26 Dec 2008 20:33:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36289</guid><dc:creator>DummyDumb</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36289.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=36289</wfw:commentRss><description>&lt;p&gt;Hello Shiva,&lt;/p&gt;
&lt;p&gt;Thank you very much for your answer.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll try your proposed solution and will post the result here (might take some days due to christmas time).&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;DD&lt;/p&gt;</description></item><item><title>Re: Populate Infopath Dropdown Control through Sharepoint List View</title><link>https://www.infopathdev.com:443/forums/thread/36127.aspx</link><pubDate>Sat, 20 Dec 2008 07:37:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36127</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36127.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=36127</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;You want substring of display name for dropdown then we have to do string manipulation in view1.xsl file. Before starting doing this manipulation you have one back up for this form.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;1. Open the view1.xsl file in editor mode.&lt;/li&gt;
&lt;li&gt;2. Search for dropdown selected value as your display name. &lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;Example: ‘ows_Person&amp;#39; is the in &amp;lt;xsl:value-of select=&amp;quot;@ ows_Person&amp;quot;/&amp;gt;&lt;/p&gt;
&lt;p&gt;Then we have to change like the below,&lt;/p&gt;
&lt;p&gt;&amp;lt;xsl:value-of select&lt;b&gt;=&amp;quot;substring(@&lt;/b&gt;&lt;b&gt;ows_Person&lt;/b&gt;&lt;b&gt;, 5)&amp;quot;&lt;/b&gt;/&amp;gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;3. Save the view1.xsl file and open the form.&lt;/li&gt;&lt;/ul&gt;</description></item><item><title>Populate Infopath Dropdown Control through Sharepoint List View</title><link>https://www.infopathdev.com:443/forums/thread/36110.aspx</link><pubDate>Fri, 19 Dec 2008 15:42:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36110</guid><dc:creator>DummyDumb</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36110.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=36110</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m trying to populate a Dropdown control in an Infopath Browser Form through a Sharepoint List View. I use a udc file with a query&amp;nbsp;to populate the Display Fields and Values in the Dropdown.&lt;/p&gt;
&lt;p&gt;The query is similar to the following:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://bfdev32bit:60000/_vti_bin/owssvr.dll?Cmd=Display&amp;amp;List={0f189d16%2Ddd54%2D453d%2D9d85%2Db03d9ead48d9}&amp;amp;XMLDATA=TRUE&amp;amp;FilterField1=IsSecretary&amp;amp;FilterValue1=0"&gt;http://bfdev32bit:60000/_vti_bin/owssvr.dll?Cmd=Display&amp;amp;List={0f189d16%2Ddd54%2D453d%2D9d85%2Db03d9ead48d9}&amp;amp;XMLDATA=TRUE&amp;amp;FilterField1=IsSecretary&amp;amp;FilterValue1=0&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;which results in:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.infopathdev.com/forums/AddPost.aspx?ForumID=41#"&gt;-&lt;/a&gt; &amp;lt;xml xmlns:s=&amp;quot;uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882&amp;quot; xmlns:dt=&amp;quot;uuid:C2F41010-65B3-11d1-A29F-00AA00C14882&amp;quot; xmlns:rs=&amp;quot;urn:schemas-microsoft-com:rowset&amp;quot; xmlns:z=&amp;quot;#RowsetSchema&amp;quot;&amp;gt; &lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.infopathdev.com/forums/AddPost.aspx?ForumID=41#"&gt;-&lt;/a&gt; &amp;lt;s:Schema id=&amp;quot;&lt;b&gt;RowsetSchema&lt;/b&gt;&amp;quot;&amp;gt; &lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.infopathdev.com/forums/AddPost.aspx?ForumID=41#"&gt;-&lt;/a&gt; &amp;lt;s:ElementType name=&amp;quot;&lt;b&gt;row&lt;/b&gt;&amp;quot; content=&amp;quot;&lt;b&gt;eltOnly&lt;/b&gt;&amp;quot; rs:CommandTimeout=&amp;quot;&lt;b&gt;30&lt;/b&gt;&amp;quot;&amp;gt; &lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.infopathdev.com/forums/AddPost.aspx?ForumID=41#"&gt;-&lt;/a&gt; &amp;lt;s:AttributeType name=&amp;quot;&lt;b&gt;ows_LinkTitleNoMenu&lt;/b&gt;&amp;quot; rs:name=&amp;quot;&lt;b&gt;Title&lt;/b&gt;&amp;quot; rs:number=&amp;quot;&lt;b&gt;1&lt;/b&gt;&amp;quot;&amp;gt; &lt;/p&gt;
&lt;p&gt;&amp;lt;s:datatype dt:type=&amp;quot;string&amp;quot; dt:maxLength=&amp;quot;512&amp;quot; /&amp;gt; &lt;/p&gt;
&lt;p&gt;&amp;lt;/s:AttributeType&amp;gt; &lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.infopathdev.com/forums/AddPost.aspx?ForumID=41#"&gt;-&lt;/a&gt; &amp;lt;s:AttributeType name=&amp;quot;&lt;b&gt;ows_Person&lt;/b&gt;&amp;quot; rs:name=&amp;quot;&lt;b&gt;Person&lt;/b&gt;&amp;quot; rs:number=&amp;quot;&lt;b&gt;2&lt;/b&gt;&amp;quot;&amp;gt; &lt;/p&gt;
&lt;p&gt;&amp;lt;s:datatype dt:type=&amp;quot;string&amp;quot; dt:lookup=&amp;quot;true&amp;quot; dt:maxLength=&amp;quot;512&amp;quot; /&amp;gt; &lt;/p&gt;
&lt;p&gt;&amp;lt;/s:AttributeType&amp;gt; &lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.infopathdev.com/forums/AddPost.aspx?ForumID=41#"&gt;-&lt;/a&gt; &amp;lt;s:AttributeType name=&amp;quot;&lt;b&gt;ows_IsSecretary&lt;/b&gt;&amp;quot; rs:name=&amp;quot;&lt;b&gt;IsSecretary&lt;/b&gt;&amp;quot; rs:number=&amp;quot;&lt;b&gt;3&lt;/b&gt;&amp;quot;&amp;gt; &lt;/p&gt;
&lt;p&gt;&amp;lt;s:datatype dt:type=&amp;quot;boolean&amp;quot; dt:maxLength=&amp;quot;1&amp;quot; /&amp;gt; &lt;/p&gt;
&lt;p&gt;&amp;lt;/s:AttributeType&amp;gt; &lt;/p&gt;
&lt;p&gt;&amp;lt;/s:ElementType&amp;gt; &lt;/p&gt;
&lt;p&gt;&amp;lt;/s:Schema&amp;gt; &lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.infopathdev.com/forums/AddPost.aspx?ForumID=41#"&gt;-&lt;/a&gt; &amp;lt;rs:data&amp;gt; &lt;/p&gt;
&lt;p&gt;&amp;lt;z:row ows_Person=&amp;quot;&lt;b&gt;20;#Vertriebsleiter1AT&lt;/b&gt;&amp;quot; ows_IsSecretary=&amp;quot;&lt;b&gt;0&lt;/b&gt;&amp;quot; /&amp;gt; &lt;/p&gt;
&lt;p&gt;&amp;lt;/rs:data&amp;gt; &lt;/p&gt;
&lt;p&gt;&amp;lt;/xml&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For display purposes I wan to get rid of the preceding ID in front of the returned value - so &lt;strong&gt;20;#Vertriebsleiter1AT&lt;/strong&gt; should become &lt;strong&gt;Vertriebsleiter1AT&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;Is there a way to do this in the query or in the Infopath Form (I guess I cannot use any string operations like substring as the data is directly pulled from the query so I can only specify the fields in the&amp;nbsp;data source that I want to use.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;DD&lt;/p&gt;</description></item></channel></rss>