<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18928"></HEAD>
<BODY>
<DIV><SPAN class=706522618-22062010><FONT color=#000080 size=2 
face="Lucida Sans">If PUC were using olap4j to get its catalog list, this would 
be a question for the olap4j list. I'd be able to give you a 'clear up or down 
vote' about whether the driver complied with the olap4j spec. But sadly I don't 
think it is, and PUC is using its own ad hoc mechanism to get 
catalogs.</FONT></SPAN></DIV>
<DIV><SPAN class=706522618-22062010><FONT color=#000080 size=2 
face="Lucida Sans"></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=706522618-22062010><FONT color=#000080 size=2 
face="Lucida Sans">Will, can you ask one of the PUC team to answer this 
question.</FONT></SPAN></DIV>
<DIV><SPAN class=706522618-22062010><FONT color=#000080 size=2 
face="Lucida Sans"></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=706522618-22062010><FONT color=#000080 size=2 
face="Lucida Sans">Julian</FONT></SPAN></DIV><BR>
<BLOCKQUOTE 
style="BORDER-LEFT: #000080 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
  <DIV dir=ltr lang=en-us class=OutlookMessageHeader align=left>
  <HR tabIndex=-1>
  <FONT size=2 face=Tahoma><B>From:</B> mondrian-bounces@pentaho.org 
  [mailto:mondrian-bounces@pentaho.org] <B>On Behalf Of </B>Rui 
  Gonçalves<BR><B>Sent:</B> Tuesday, June 22, 2010 11:13 AM<BR><B>To:</B> 
  Mondrian developer mailing list<BR><B>Subject:</B> [Mondrian] Seeking advice 
  on sorting the catalog list<BR></FONT><BR></DIV>
  <DIV></DIV><BR>In PUC, the "New Analysis View" dialog schema list is not 
  sorted. When you have several schemas is quite difficult to find the desired 
  one.<BR>I'm not familiarized with the mondrian source code neither with mantle 
  source code. <BR>Didn't seem to find any way of sorting the schema list 
  through configuration, is there any?<BR><BR>Assuming there isn't, I need some 
  code modification.<BR><BR>There are some possibilities to do it, each one with 
  specific implications. Not knowing the API's, I would like some advice on 
  where to apply the modification.<BR>The possibilities to sort the list that I 
  have observed are:<BR>1 - sort&nbsp; catalogCubeHashMap in 
  org.pentaho.mantle.server.MantleServlet.getMondrianCatalogs (doesn't seem a 
  very good idea, but seems to be PUC only), or;<BR><BR>2 - in 
  org.pentaho.platform.plugin.action.mondrian.catalog.MondrianCatalogHelper.transformIntoCatalogList, 
  sort the variable localCatalogs on MondrianCatalog.name (seems better but 
  don't really know the impact of doing it here), or;<BR><BR>3 - is there a way 
  to retrieve 
  org.pentaho.platform.plugin.action.mondrian.catalog.MondrianCatalogHelper.readDataSourcesContent 
  in an ordered way (what?) or at least in the same order that the catalogs are 
  in the datasource file, or;<BR><BR>4 - ... and now for something completely 
  different ...<BR><BR>Any advice would be welcome.<BR>Thank's<BR>Rui 
  Gonçalves<BR></BLOCKQUOTE></BODY></HTML>