Changeset 4593


Ignore:
Timestamp:
Oct 21, 2008, 8:47:12 AM (15 years ago)
Author:
Nicklas Nordborg
Message:

Fixes #1150: Incorrect mapping of BASE1/BASE2 differences by Base1PluginExecuter

Added missing functions, pos() and rep('id'), to the expression builder.

Location:
branches/2.8-stable
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.8-stable/src/clients/web/net/sf/basedb/clients/web/DynamicUtil.java

    r4478 r4593  
    7272    Formatter<Number> numberFormatter = FormatterFactory.getNumberFormatter(sc);
    7373    Formatter<Number> intFormatter = FormatterFactory.getIntFormatter(sc);
    74     columns.add(new TableColumn("POSITION", "POSITION", null, Type.INT,
     74    columns.add(new TableColumn("POSITION", "POSITION", "pos()", Type.INT,
    7575      "Position", "Spot position", "always", true, true, true,
    7676      Formula.AverageMethod.NONE, intFormatter));
     
    132132    Formatter<String> stringFormatter = FormatterFactory.getStringFormatter(sc);
    133133    Formatter<Date> dateFormatter = FormatterFactory.getDateFormatter(sc);
     134    columns.add(new TableColumn(idPrefix + "id", propertyPrefix+"id", "rep('id')",
     135      Type.INT, titlePrefix + "Internal ID", "Reporter internal ID", "auto", true, true, true,
     136      Formula.AverageMethod.NONE, null));
    134137    columns.add(new TableColumn(idPrefix + "name", propertyPrefix+"name", "rep('name')",
    135138      Type.STRING, titlePrefix + "Name", "Reporter name", "auto", true, true, true,
    136139      Formula.AverageMethod.NONE, stringFormatter));
    137140    columns.add(new TableColumn(idPrefix + "externalId", propertyPrefix+"externalId", "rep('externalId')",
    138       Type.STRING, titlePrefix + "ID", "Reporter ID", "auto", true, true, true,
     141      Type.STRING, titlePrefix + "External ID", "Reporter ID", "auto", true, true, true,
    139142      Formula.AverageMethod.NONE, stringFormatter));
    140143    columns.add(new TableColumn(idPrefix + "symbol", propertyPrefix+"symbol", "rep('symbol')",
  • branches/2.8-stable/www/common/expression_builder.jsp

    r4476 r4593  
    265265      return channel;
    266266    }
    267    
     267    function pos()
     268    {
     269      return Math.random() * 100;
     270    }
    268271    function rep(property)
    269272    {
Note: See TracChangeset for help on using the changeset viewer.