<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.talis.com/tdn" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>Talis Developer Network - Can this be done in BO? - Comments</title>
 <link>http://www.talis.com/tdn/node/1745</link>
 <description>Comments for &quot;Can this be done in BO?&quot;</description>
 <language>en</language>
<item>
 <title>Thanks Brian</title>
 <link>http://www.talis.com/tdn/node/1745#comment-555</link>
 <description>&lt;p&gt;Brian,&lt;/p&gt;
&lt;p&gt;Doh!  Thanks again.  It works great now.&lt;/p&gt;
&lt;p&gt;Cheers&lt;br /&gt;
Mark&lt;/p&gt;
&lt;p&gt;http://www.wirral-libraries.net/&lt;br /&gt;
http://www.stembystem.co.uk/&lt;/p&gt;
</description>
 <pubDate>Tue, 19 Jun 2007 15:18:52 +0100</pubDate>
 <dc:creator>markhughes</dc:creator>
 <guid isPermaLink="false">comment 555 at http://www.talis.com/tdn</guid>
</item>
<item>
 <title>getting the maximum date</title>
 <link>http://www.talis.com/tdn/node/1745#comment-554</link>
 <description>&lt;p&gt;As stated the variables are used &lt;b&gt;instead&lt;/b&gt; of the original objects so remove the Report date object from the displayed report (but not from the query panel). &lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Brian Crampton&lt;br /&gt;
Developer, Talis&lt;/p&gt;
</description>
 <pubDate>Tue, 19 Jun 2007 12:01:47 +0100</pubDate>
 <dc:creator>Brian Crampton</dc:creator>
 <guid isPermaLink="false">comment 554 at http://www.talis.com/tdn</guid>
</item>
<item>
 <title>Sorry Brian,  I can&#039;t get my</title>
 <link>http://www.talis.com/tdn/node/1745#comment-553</link>
 <description>&lt;p&gt;Sorry Brian,  I can&#039;t get my head around what you suggest.&lt;/p&gt;
&lt;p&gt;If I just concentrate on the order reports.  I need to get a list of Control numbers with just the latest dated &#039;report date&#039; for each control number.&lt;/p&gt;
&lt;p&gt;What I did was use the ORDERS Universe, and do a query showing:&lt;/p&gt;
&lt;p&gt;CTRL_No, REPORT DATE, AVAILABILITY DATE, then I created a variable called maxReportDate and for the formula I used as you suggest =max(Report date)&lt;/p&gt;
&lt;p&gt;However, I just get the Report Date repeated, I don&#039;t get the max one for each control number (where there are multiple control numbers) &lt;/p&gt;
&lt;p&gt;e.g.&lt;br /&gt;
CTRL NO,REPORT DATE,AVAILABILITY DATE,maxReportDate&lt;br /&gt;
0007173555, 2007/02/28, 2007/06/04, 2007/02/28&lt;br /&gt;
0007173555, 2007/04/13, 2007/06/04, 2007/04/13&lt;br /&gt;
0007173555, 2007/05/14, 2007/06/04, 2007/05/14&lt;br /&gt;
0007173555, 2007/05/18, 2007/06/04, 2007/05/18&lt;br /&gt;
0007174276, 2007/02/06, 2004/03/01, 2007/02/06&lt;br /&gt;
0007189869, 2007/02/23, 2007/03/15, 2007/02/23&lt;br /&gt;
0007189869, 2007/03/09, 2007/05/15, 2007/03/09&lt;/p&gt;
&lt;p&gt;How do I get it to look at the Control_number and THEN check for the max report date?  So I would end up with a list like this, just showing one instance of the control number with the max report date?&lt;/p&gt;
&lt;p&gt;0007173555, 2007/05/18, 2007/06/04&lt;br /&gt;
0007174276, 2007/02/06, 2004/03/01&lt;br /&gt;
0007189869, 2007/03/09, 2007/05/15 &lt;/p&gt;
&lt;p&gt;Cheers&lt;br /&gt;
Mark&lt;/p&gt;
&lt;p&gt;http://www.wirral-libraries.net/&lt;br /&gt;
http://www.stembystem.co.uk/&lt;/p&gt;
</description>
 <pubDate>Tue, 19 Jun 2007 11:27:26 +0100</pubDate>
 <dc:creator>markhughes</dc:creator>
 <guid isPermaLink="false">comment 553 at http://www.talis.com/tdn</guid>
</item>
<item>
 <title>getting the maximum date</title>
 <link>http://www.talis.com/tdn/node/1745#comment-551</link>
 <description>&lt;p&gt;One approach would be to create the full report from both universes and then create two new variables &quot;max report date&quot; and &quot;max availibility date&quot;.&lt;/p&gt;
&lt;p&gt;The formulas for these variables would be&lt;br /&gt;
=Max(Report date)&lt;br /&gt;
and&lt;br /&gt;
=Max(Availability date)&lt;/p&gt;
&lt;p&gt;The variable names will be bounded by &amp;lt; and &amp;gt; but this get treated as html tags in the posting so have havd to be removed from the text. However if you select the max function and object from the lists in the variable editor the right syntax will be used.  &lt;/p&gt;
&lt;p&gt;If these two variables are used instead of the original ones then you should get the right results.  I have tried it with your just the data from the orders universe and it works.  I haven&#039;t tried it with the data from the reservations universe and there could be complications but it would be worth a try.&lt;/p&gt;
&lt;p&gt;Brian Crampton&lt;br /&gt;
Developer, Talis&lt;/p&gt;
</description>
 <pubDate>Mon, 18 Jun 2007 16:46:05 +0100</pubDate>
 <dc:creator>Brian Crampton</dc:creator>
 <guid isPermaLink="false">comment 551 at http://www.talis.com/tdn</guid>
</item>
<item>
 <title>Can this be done in BO?</title>
 <link>http://www.talis.com/tdn/node/1745</link>
 <description>&lt;p&gt;I have put together a BO report which shows active reservations and how long they have been outstanding.  This works great, but then a member of staff asked if I could include a &#039;date available&#039; date on the report as well, so when viewing the list they could easily see which ones have not yet been published.&lt;/p&gt;
&lt;p&gt;This &#039;date available&#039; however comes from the orders universe (Normal Orders - Order Reports).  So, I have created another report and linked the both on &#039;control number&#039;.  &lt;/p&gt;
&lt;p&gt;So...&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.talis.com/tdn/node/1745&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.talis.com/tdn/node/1745#comments</comments>
 <category domain="http://www.talis.com/tdn/taxonomy/term/86">Talis Decisions</category>
 <pubDate>Mon, 18 Jun 2007 14:33:26 +0100</pubDate>
 <dc:creator>markhughes</dc:creator>
 <guid isPermaLink="false">1745 at http://www.talis.com/tdn</guid>
</item>
</channel>
</rss>
