<?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>InfoPath 2010</title><link>https://www.infopathdev.com:443/forums/142.aspx</link><description>Are you exploring new features coming up in 2010? Share information and ask questions here!</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Double eval, in a customize SharePoint/Infopath form</title><link>https://www.infopathdev.com:443/forums/thread/71944.aspx</link><pubDate>Thu, 10 Nov 2011 17:41:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71944</guid><dc:creator>jaxkookie</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71944.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=71944</wfw:commentRss><description>&lt;p&gt;whew! I figured it out, what a pian in the neck this does not work easier. After writing the post I remembered an old post related to cascading fields. I remember that the data sources had to be replicated. I dont remember the reason, but I went an added my lookup data source a second time. I also used an xml file to insert a newline. With my multiple select lookup field I have a button, so once I am done selecting my&amp;nbsp; values, it will run a rule to update a text field and submit my form. Keep in mind this is a customized sharepoint form. the rule is to set a field value and looks like this&lt;/p&gt;&lt;p&gt;&amp;nbsp;XPath:&lt;/p&gt;&lt;p&gt;substring-after(xdMath:Eval(xdMath:Eval(xdXDocument:GetDOM(&amp;quot;Region1&amp;quot;)/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:Title[. = xdXDocument:get-DOM()/dfs:myFields/dfs:dataFields/my:SharePointListItem_RW/my:Region/Value], &amp;#39;concat(xdXDocument:GetDOM(&amp;quot;characters&amp;quot;)/characters/@crlfb, .)&amp;#39;), &amp;quot;..&amp;quot;), xdXDocument:GetDOM(&amp;quot;characters&amp;quot;)/characters/@crlfb)&lt;/p&gt;&lt;p&gt;&amp;nbsp;rule:&lt;/p&gt;&lt;p&gt;substring-after(eval(eval(Title[ID = Value], &amp;#39;concat(xdXDocument:GetDOM(&amp;quot;characters&amp;quot;)/characters/@crlfb, .)&amp;#39;), &amp;quot;..&amp;quot;), @crlfb)&lt;/p&gt;&lt;p&gt;I am not going to explain the double eval. there are already many post on this site for that. toi get my scenario to work this was the key:&lt;/p&gt;&lt;p&gt;Title[ID = Value]&lt;/p&gt;&lt;p&gt;Title in my second (replicated) data source. and Title is the title field used in the look up, then I just compared the ID to the value of the multiple select. on button click each value display name is written with a semi-colon each on a new line.&lt;/p&gt;</description></item><item><title>Double eval, in a customize SharePoint/Infopath form</title><link>https://www.infopathdev.com:443/forums/thread/71937.aspx</link><pubDate>Thu, 10 Nov 2011 14:32:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71937</guid><dc:creator>jaxkookie</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71937.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=71937</wfw:commentRss><description>&lt;p&gt;I have been struggling with the cascading field functionality in sharepoint with customizing the form using infopath. The main issue I was having is you must use the items ID for the value. Although this works great for the cascading some of the issues I was running into was opening the form to edit sometimes displayed the ID and not the display name. with a few tweaks I was able to implement a work around. now my problem lies with a lookup field that is multiple select. I tried several methods to get the displayname&lt;/p&gt;&lt;p&gt;1. added a multiple select field to IP. this functioned perfectly, except when you edit the form in datasheet view. IP added the field to SP as a choice field and only added the SP default values. editing in data sheet would throw an error because the value never match. So&amp;nbsp;as long as the data is managed in the form no issues or errors&lt;/p&gt;&lt;p&gt;2. I added the lookup to SP, still have the issues of the ID. I need the display name because I am using this data with a few stored procedures. Although I can make it work with the ID&amp;#39;s I will never remember what ID is what value&lt;/p&gt;&lt;p&gt;So&amp;nbsp;I figure I can use the double eval to write the displayname to a text field. Again I am very close to a solution but not quite&amp;nbsp;there. because it is a customized SP form using IP, IP&amp;nbsp;has a few limitations. I want to write my selected &amp;quot;DisplayNames&amp;quot; with a semi-colon delimiter. Several methods I tried either build the string of displayname with no spaces or I get a large leading space&amp;nbsp; built with no semi-colon delimiter. I am not set on any one solution. I am already using buttons to apply other rules getting the values from single select lookups. it is the multiple select lookup that is killin me.&lt;/p&gt;&lt;p&gt;can I write the displayname from a SP lookup field to a text field with a IP customized form?&lt;/p&gt;&lt;p&gt;thanx&lt;/p&gt;</description></item></channel></rss>