private String pubMedURL(int rowIndex){

        if(params.length != 2){
            throw new IllegalArgumentException("Wrong number of Parameters for limit string expression");
        }

        final RecordList.Record currentRecord = recordList.getRecords().get(rowIndex);
        final String title = currentRecord.getValueByFieldName(params[0]);
        String pubMedId = currentRecord.getValueByFieldName(params[1]);

        if (pubMedId.isEmpty()){
            return title;
        }

        String result = "<a href=" + "http://www.ncbi.nlm.nih.gov/pubmed/"+pubMedId+" target=_blank>"+title+"</a>";
        return result;
    }
private String pubMedURL ( int rowIndex ) { if ( params . length != 2 ) { throw new IllegalArgumentException ( "Wrong number of Parameters for limit string expression" ) ; } final RecordList . Record currentRecord = recordList . getRecords ( ) . get ( rowIndex ) ; final String title = currentRecord . getValueByFieldName ( params [ 0 ] ) ; String pubMedId = currentRecord . getValueByFieldName ( params [ 1 ] ) ; if ( pubMedId . isEmpty ( ) ) { return title ; } String result = "<a href=" + "http://www.ncbi.nlm.nih.gov/pubmed/" + pubMedId + " target=_blank>" + title + "</a>" ; return result ; }
Create an anchor with the title and the pubMedId
In the config file use:
fieldName="func(PUBMED_URL(title,pubMedID))"