Changes between Version 3 and Version 4 of Ticket #501, comment 5


Ignore:
Timestamp:
Oct 2, 2013, 1:37:07 PM (9 years ago)
Author:
olle
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #501, comment 5

    v3 v4  
    22
    33 * The clustering protocol wizard will consist of two JSP scripts, `flowcell_protocol.jsp` and `flowcell_protocol2.jsp`, both in `reggie/resources/libprep/`, as well as modifications of Java servlet `FlowCellServlet.java` in `reggie/src/net/sf/basedb/reggie/servlet/`.
    4  * JSP script `flowcell_protocol.jsp` will be based on existing JSP scripts `flowcell_registration.jsp` (which also includes selection of flowcells) and `libprep_protocol.jsp`, while `flowcell_protocol2.jsp` will be loosely based the list part of `libprep_protocol2.jsp`.
     4 * JSP script `flowcell_protocol.jsp` will be based on existing JSP scripts `flowcell_registration.jsp` (which also includes selection of flowcells) and `libprep_protocol.jsp`, while `flowcell_protocol2.jsp` will be loosely based the list part of `libprep_protocol2.jsp` and `mrna_protocol2.jsp`.
    55 * JSP script `flowcell_protocol.jsp` will display a selection box of flow cells, that have not yet been processed. It will contain "Create protocol" and "Cancel" buttons. Function `init()` will call function `getFlowCells()` to get a list of unprocessed flow cells from Java servlet `FlowCellServlet.java`. The "Create protocol" button will be coupled to function `goCreate()`, which will call function `getSelectBoxResults(elementId)` to get a comma-separated list of selected flow cell database id values, that is inserted into hidden input field "`flowcellidlist`", which makes it possible for java scriptlet code to retrieve the list string after the document has been submitted to JSP script `flowcell_protocol2.jsp`. In the same manner, function `getFlowCellNumLanesList(idList)` is called to get a comma-separated list of the number of lanes for the selected flow cells, that is inserted into hidden input field `numlaneslist`.
    66 * JSP script `flowcell_protocol2.jsp` uses java scriptlet code to retrieve the  selected flow cell database id values, and number of lanes per flow cell. The scriptlet code uses this data to produce the right number and size of tables for the flow cell data in the protocol. The comma-separated flow cell database id values are inserted into hidden input field `fcIdList`, to make it avaiable to javascript code in the JSP script. Javascript function `init()` retrieves the id list string, and calls function `getFlowCellInfo(idList)` (identical to the function with the same name in JSP file `flowcell_protocol.jsp`) to get a JSONArray of data for the flow cells, which is used as argument, when calling function `viewAsList(flowCellInfoArray)`. Function `viewAsList(flowCellInfoArray)` inserts data from the flow cells into the tables prepared by the Java scriptlet code.
    7  * Java servlet `FlowCellServlet.java` in `reggie/src/net/sf/basedb/reggie/servlet/` is updated with new Ajax command "`GetFlowCellInfo`". It will retrieve data from the database for requested flow cell database id values, and return a JSONArray with data for the flow cells. The flow cell data that are reported are name, !ReadString, number of lanes, and pool names for the lanes.
     7 * Java servlet `FlowCellServlet.java` in `reggie/src/net/sf/basedb/reggie/servlet/` is updated with new Ajax command "`GetFlowCellInfo`". It will retrieve data from the database for requested flow cell database id values, and return a JSONArray with data for the flow cells. The flow cell data that are reported are name, description, !ReadString, number of lanes, and pool names for the lanes.