<?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: Choosing a correct variable for dates using taxt or character functions</title><link>http://forums.method.me/cs/forums/thread/17445.aspx</link><pubDate>Tue, 07 May 2013 15:39:19 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:17445</guid><dc:creator>Method_Ashur</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/17445.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=17445</wfw:commentRss><description>&lt;p&gt;&lt;span style="overflow:hidden;"&gt;&lt;/span&gt;Hi Mike,&lt;/p&gt;
&lt;p&gt;&lt;span style="overflow:hidden;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;This is a pretty involved customization. I strongly recommend you speak with a Consultant in more detail regarding this as it goes outside the scope of the forums. On a high level something like this can be done, but when it comes to the details of how, it requires the involvement of a Consultant as they may have a better solution for you.&lt;/p&gt;
&lt;p&gt;&lt;span style="overflow:hidden;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Let me know whether or not you&amp;#39;re interested in speaking with a Consultant regarding this topic and I&amp;#39;ll get the ball rolling.&lt;/p&gt;
&lt;p&gt;&lt;span style="overflow:hidden;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;- Ashur&lt;/p&gt;</description></item><item><title>Choosing a correct variable for dates using taxt or character functions</title><link>http://forums.method.me/cs/forums/thread/17402.aspx</link><pubDate>Fri, 03 May 2013 12:05:30 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:17402</guid><dc:creator>MikeB</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/17402.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=17402</wfw:commentRss><description>&lt;p&gt;&lt;span id="mce_30_start" style="overflow:hidden;"&gt;&lt;/span&gt;I&amp;#39;m looking to have a series of actions where I loop through an invoice table and sum up sales for a quarter.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll define the following variables:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;CurrentQuarter - A date function that takes the current month&lt;span id="mce_1_start" style="overflow:hidden;"&gt; number&lt;/span&gt;, divides by 3 and rounds up&lt;span id="mce_2_start" style="overflow:hidden;"&gt;.&lt;span id="mce_3_start" style="overflow:hidden;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="overflow:hidden;"&gt;&lt;span style="overflow:hidden;"&gt;CurrentYear - A date function that takes the current year. Let&amp;#39;s just say for now everything is done within 2013&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="overflow:hidden;"&gt;Q1Start - &lt;span id="mce_4_start" style="overflow:hidden;"&gt;&lt;/span&gt;01/01/yyyy &lt;span id="mce_5_start" style="overflow:hidden;"&gt;&lt;/span&gt;for the current year&lt;span id="mce_5_end" style="overflow:hidden;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="overflow:hidden;"&gt;Q2Start - 01/04/yyyy&lt;span id="mce_6_start" style="overflow:hidden;"&gt;&amp;nbsp;for t&lt;span id="mce_7_start" style="overflow:hidden;"&gt;&lt;/span&gt;he current year&lt;span id="mce_5_end"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="overflow:hidden;"&gt;Q3Start - 01/07/yyyy&lt;span id="mce_8_start" style="overflow:hidden;"&gt;&amp;nbsp;for the current year&lt;span id="mce_5_end"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="overflow:hidden;"&gt;Q4Start - 01/10/yyyy&lt;span id="mce_9_start" style="overflow:hidden;"&gt;&amp;nbsp;for the current year&lt;span id="mce_24_start" style="overflow:hidden;"&gt;&lt;/span&gt;&lt;span id="mce_5_end"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;I&amp;#39;d like to build a CurrentCalcQuarter variable that concatenates the text and the current month in the following way&lt;span id="mce_14_start" style="overflow:hidden;"&gt;, using the &amp;quot;Join&amp;quot; option for Character actions&lt;/span&gt;:&lt;/div&gt;
&lt;div&gt;
&lt;ul&gt;
&lt;li&gt;Current&lt;span id="mce_16_start" style="overflow:hidden;"&gt;Calc&lt;/span&gt;Quarter = &lt;span id="mce_10_start" style="overflow:hidden;"&gt;(Type In) Q +&amp;nbsp;&lt;/span&gt;CurrentQuarte&lt;span id="mce_11_start" style="overflow:hidden;"&gt;&lt;/span&gt;r&lt;span id="mce_13_start" style="overflow:hidden;"&gt;, then,&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="overflow:hidden;"&gt;Current &lt;span id="mce_17_start" style="overflow:hidden;"&gt;Cale&lt;/span&gt;Quarter = CurrentQuarter + (Type In)&lt;span id="mce_15_start" style="overflow:hidden;"&gt; Start&lt;span id="mce_20_start" style="overflow:hidden;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="overflow:hidden;"&gt;&lt;span style="overflow:hidden;"&gt;&lt;span style="overflow:hidden;"&gt;I would do the same thing and calculate a variable called NextCalcQuarter&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;So, if the &lt;span id="mce_21_start" style="overflow:hidden;"&gt;CurrentM&lt;/span&gt;onth is April, CurrentCalcQuarter is &amp;quot;Q2Start&amp;quot; and NextCalcQuarter is &amp;quot;Q3 Start&amp;quot;&lt;span id="mce_25_start" style="overflow:hidden;"&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="overflow:hidden;"&gt;I would then need to define CalcStartDate and CalcEndDate for the current applicable period. In this case (April), CalcStartDate is &amp;quot;Q2Start&amp;quot; and CalcEndDate is &amp;quot;Q3Start&amp;quot;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;&lt;span id="mce_22_start" style="overflow:hidden;"&gt;&lt;/span&gt;How do I use th&lt;span id="mce_23_start" style="overflow:hidden;"&gt;e&lt;span id="mce_26_start" style="overflow:hidden;"&gt; CurrentCalcQuarter and NextCalcQuarter&lt;/span&gt;&lt;/span&gt;&amp;nbsp;variables in a Loop through Customer table action so that I can use them for &lt;span id="mce_27_start" style="overflow:hidden;"&gt;the&amp;nbsp;&lt;/span&gt;start and end dates&lt;span id="mce_28_start" style="overflow:hidden;"&gt; defined above&lt;/span&gt;? It&amp;#39;s akin to an Excel function referring to a cell that has text in it, and using that text to define the parameters within the formula.&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Or is there a better way? I&amp;#39;d rather not have to put in a series of hard-coded IF statements like:&lt;span id="mce_29_start" style="overflow:hidden;"&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ul&gt;
&lt;li&gt;If Current Quarter = Q1, CalcStartDate = Q1Start.&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;I&amp;#39;d rather have everything derived.&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Am I close?&lt;/div&gt;
&lt;/div&gt;</description></item></channel></rss>