Changeset 3767


Ignore:
Timestamp:
Sep 24, 2007, 1:31:07 PM (15 years ago)
Author:
Martin Svensson
Message:

Fixes #772 Exporting features from Array designs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.4-stable/www/lims/arraydesigns/features/index.jsp

    r3679 r3767  
    3535  import="net.sf.basedb.core.Permission"
    3636  import="net.sf.basedb.core.PermissionDeniedException"
     37  import="net.sf.basedb.core.ArrayDesign"
     38  import="net.sf.basedb.core.data.FeatureData"
    3739  import="net.sf.basedb.clients.web.Base"
    3840  import="net.sf.basedb.clients.web.WebException"
     
    8991    forward = viewPage;
    9092  }
     93  else if ("ExportItems".equals(cmd))
     94  {
     95    // Run an export plugin in a list context
     96    ItemContext cc = Base.getAndSetCurrentContext(sc, itemType, pageContext, defaultContext);
     97    dc = sc.newDbControl();   
     98    final ArrayDesign arrayDesign = ArrayDesign.getById(dc, arrayDesignId);
     99    final DataQuery<FeatureData> query = arrayDesign.getFeatures();
     100    cc.configureQuery(query, true);
     101    cc.setQuery(query);
     102    redirect = "../../../common/export/index.jsp?ID="+ID+"&cmd=SelectPlugin&item_type="+itemType.name()+"&context_type=LIST&title=Export+features+of+array+design";
     103  }
    91104  else
    92105  {
Note: See TracChangeset for help on using the changeset viewer.