Ignore:
Timestamp:
Dec 6, 2007, 1:04:50 PM (15 years ago)
Author:
mbayer
Message:

have implemented a skeleton writer class which writes a dummy tab2mage file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/uk_ac_ebi_Tab2MageImporter/jsp/uk/ac/ebi/nugo/plugins/experiment.jsp

    r512 r513  
    6464final String ID = sc.getId();
    6565final String requestID = request.getParameter("requestId");
     66
     67//we also need to figure out the name/id of the currently selected experiment that this import is getting initiated from
     68ItemContext cc = sc.getCurrentContext(Item.EXPERIMENT);
     69int experimentID = cc.getId();
     70DbControl dc = sc.newDbControl();
     71Experiment experiment = Experiment.getById(dc,experimentID);
     72String expName = experiment.getName();
     73dc.close();
     74
     75//set the experiment id in the bean so we can get at it later in the plugin
     76inputDataBean.setExperimentId(new Integer(experimentID).toString());
    6677 %>
     78 
     79 experiment name = <%=expName %><br>
     80 experiment ID = <%=experimentID %>
    6781
    6882<h2>Tab2MAGE Importer -- Your Experiment</h2>
     
    256270    <td class="boldText">Experiment Name:</td>
    257271    <td class="input"> 
    258     <textarea rows="2" cols="30" name="experimentName">my numpty experiment</textarea>
     272    <textarea rows="2" cols="30" name="experimentName"><%=expName %></textarea>
    259273    </td>
    260274    <td>The name you have chosen for the Experiment.</td>
Note: See TracChangeset for help on using the changeset viewer.