<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.method.me/cs/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>Method:Classic General Q&amp;amp;A</title><link>http://forums.method.me/cs/forums/13.aspx</link><description>Ask technical support questions, how do I? Questions... Or anything else you want to know from the Method Team and other Method users.</description><dc:language>en</dc:language><generator>CommunityServer 2007.1 SP2 (Build: 31113.47)</generator><item><title>Re: Report Filtering with "OR"</title><link>http://forums.method.me/cs/forums/thread/2410.aspx</link><pubDate>Thu, 22 Apr 2010 13:16:48 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:2410</guid><dc:creator>Method_Valbon</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/2410.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=2410</wfw:commentRss><description>&lt;p&gt;Use the action in Method called &amp;lsquo;&lt;em&gt;Assign Value To Action Result&lt;/em&gt;&amp;rsquo;. Give the action result a name such as &amp;lsquo;resultScript&amp;rsquo; and &lt;em&gt;Type In&lt;/em&gt; a value for the script. Basically paste the script here.&lt;/p&gt;
&lt;p&gt;After you save the action, be sure to order&amp;nbsp;it somewhere before the action that Generates the Report. Refer to my previous post to use the script via the action result. &lt;/p&gt;
&lt;p&gt;Hope this helps,&lt;/p&gt;</description></item><item><title>Re: Report Filtering with "OR"</title><link>http://forums.method.me/cs/forums/thread/2408.aspx</link><pubDate>Wed, 21 Apr 2010 22:11:39 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:2408</guid><dc:creator>CDS_Josh</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/2408.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=2408</wfw:commentRss><description>&lt;p&gt;OK, sorry to sound like a newbie, but how to you create a script. I am referrring to your &amp;quot;Assign an action result to store the script.&amp;quot; I can&amp;#39;t find a create script function.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Report Filtering with "OR"</title><link>http://forums.method.me/cs/forums/thread/2404.aspx</link><pubDate>Wed, 21 Apr 2010 19:53:06 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:2404</guid><dc:creator>Method_Valbon</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/2404.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=2404</wfw:commentRss><description>&lt;p&gt;Hi Josh,&lt;br /&gt;&lt;br /&gt;Assuming you are talking about the &lt;i&gt;Generate Report&lt;/i&gt; action in Method? If so you&amp;rsquo;re right you can take advantage of the filter options. Currently the action treats each condition as AND. &lt;br /&gt;&lt;br /&gt;You&amp;rsquo;re also right that you can use the &lt;i&gt;Advanced Script&lt;/i&gt; feature to accomplish what you are looking to do. I can understand the confusion if you have never had an example to use for this area. Below is just a sample to get you in the right direction.&lt;br /&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Assign an action result to store the script. Try some of the following samples I provided below but be sure to replace &amp;lsquo;Part1&amp;rsquo; with your field names.&lt;/li&gt;
&lt;/ol&gt;
&lt;p style="padding-left:60px;"&gt;not ([Part1] is null or [Part2] is null or [Part3] is null)&lt;br /&gt;&lt;br /&gt;Depending on fields types you may want to try the following for text fields. &lt;br /&gt;&lt;br /&gt;isnull(cast([Part1] as nvarchar),&amp;#39;&amp;#39;)&amp;lt;&amp;gt;&amp;#39;&amp;#39;&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;2.&amp;nbsp;&amp;nbsp;&amp;nbsp; In the &lt;i&gt;Generate Report&lt;/i&gt; action use the action result for the &lt;i&gt;Advanced Script&lt;/i&gt;. &lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Hope this helps,&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Report Filtering with "OR"</title><link>http://forums.method.me/cs/forums/thread/2393.aspx</link><pubDate>Tue, 20 Apr 2010 19:39:53 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:2393</guid><dc:creator>CDS_Josh</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/2393.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=2393</wfw:commentRss><description>&lt;p&gt;I know that we are allowed to use filtering, but it there a way to change it from &amp;quot;AND&amp;quot; to &amp;quot;OR&amp;quot;&lt;/p&gt;
&lt;p&gt;I have a customer that has a table set up with Part1, Part2, Part 3 and wants to be able to return a report that has a single part number in any of those fields.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;The way its currently set up is if I put a part number in all of those fields as a criteria, it must exist in all of those fields, which means its using the AND clause.&amp;nbsp; Is there a way to change this to OR?&lt;/p&gt;
&lt;p&gt;Also, is there documentation on the Advanced Script for filtering?&amp;nbsp; I might be able to perform this there if I know what syntax to use.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks in advance,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Josh Kitzerow&lt;/p&gt;
&lt;p&gt;CDS&lt;/p&gt;</description></item></channel></rss>