<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Filter formula for Current Record</title><link>https://www.infopathdev.com:443/forums/thread/87332.aspx</link><pubDate>Fri, 22 Feb 2013 19:39:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:87332</guid><dc:creator>Metron4</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/87332.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=87332</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I was able to accomplish what I wanted by creating a hidden control that stored the ID value. My lookup values now call the ID value of the hidden control saving several steps in the formula. The form loads much faster now.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Filter formula for Current Record</title><link>https://www.infopathdev.com:443/forums/thread/86512.aspx</link><pubDate>Mon, 28 Jan 2013 16:42:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:86512</guid><dc:creator>Metron4</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/86512.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=86512</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Thanks for the reply. Do you have an example of this? I have never set up another view before.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Filter formula for Current Record</title><link>https://www.infopathdev.com:443/forums/thread/86458.aspx</link><pubDate>Fri, 25 Jan 2013 22:22:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:86458</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/86458.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=86458</wfw:commentRss><description>&lt;p&gt;Hi Metron4,&lt;/p&gt;&lt;p&gt;I would try breaking it apart into two calculations. Do the inner one in the default value of a field which does not appear in your view. Then, the view element can reference that hidden field to do the top filter. See if that&amp;#39;s faster.&lt;/p&gt;&lt;p&gt;Just an idea,&lt;/p&gt;&lt;p&gt;Patrick&lt;/p&gt;</description></item><item><title>Filter formula for Current Record</title><link>https://www.infopathdev.com:443/forums/thread/86443.aspx</link><pubDate>Fri, 25 Jan 2013 19:45:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:86443</guid><dc:creator>Metron4</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/86443.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=86443</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hello,&lt;/p&gt;&lt;p&gt;&amp;nbsp;I am trying to write a formula that will filter values for text box controls that match the current Project ID. This example uses the Cost Code associated with the project.&lt;/p&gt;&lt;p&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;i&gt;xdXDocument:GetDOM(&amp;quot;Charge Codes&amp;quot;)/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:CostCode[../d:ProjectID = xdXDocument:GetDOM(&amp;quot;Projects&amp;quot;)/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:ID[../d:ProjectID = xdXDocument:get-DOM()/my:myFields/my:ProjectID]]&lt;/i&gt;&lt;/p&gt;&lt;p&gt;It actually works, but now the preview takes way too long to load, and when I enter a different project ID, it takes a long time to switch the cost code. I assume it is because my formula is too convoluted, but this was the only way I could get it to work.&lt;/p&gt;&lt;p&gt;Can someone tell me if there is a more efficient formula? Please see attached image. Thanks.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>