.jchemsite

User f52820d97e

11-07-2007 14:49:54

Hi,


since version 3.2.7, all the parameters I put into a .jchemsite seem to bug: the fields are not displayed... Did you change something and could you check the following syntax please?





Code:
5HT.form.COMPLETE.rows=4


5HT.form.COMPLETE.cols=2


5HT.form.COMPLETE.celldim=400\:350


5HT.form.COMPLETE.cell=<$cd_structure>;<cd_id>;Reference <reference>; - ATBI <ATBI>;Inhibition @ 10-6M\: <inhib106>\#NONE;  @ 10-8M\: <inhib108>\#NONE;Ki average\: <KI_moy>;  IC50 average\: <IC50_moy>;Ki_1\: <KI_1>;  IC50_1\: <IC50_1>;Ki_2\: <KI_2>;  IC50_2\: <IC50_2>;Ki_3\: <KI_3>;  IC50_3\: <IC50_3>;Ki_4\: <KI_4>;  IC50_4\: <IC50_4>;Ki_5\: <KI_5>;  IC50_5\: <IC50_5>


5HT.form.COMPLETE.param=\:M\:400\:210\:L\:10\:L\:12b\:L\:12b\:L\:12b\:L\:12b\:L\:12b\:L\:12b\:L\:12\:L\:12\:L\:12\:L\:12\:L\:12\:L\:12\:L\:12\:L\:12\:L\:12\:L\:12


5HT.form.COMPLETE.layout=\:9\:6\:M\:0\:0\:1\:6\:c\:b\:L\:1\:0\:1\:2\:nw\:n\:L\:1\:2\:1\:2\:e\:n\:L\:1\:4\:1\:2\:w\:n\:L\:2\:0\:1\:3\:w\:n\:0\:0\:L\:2\:3\:1\:3\:w\:n\:0\:0\:L\:3\:0\:1\:3\:w\:n\:0\:0\:L\:3\:3\:1\:3\:w\:n\:0\:0\:L\:4\:0\:1\:3\:w\:n\:0\:0\:L\:4\:3\:1\:3\:w\:n\:0\:0\:L\:5\:0\:1\:3\:w\:n\:0\:0\:L\:5\:3\:1\:3\:w\:n\:0\:0\:L\:6\:0\:1\:3\:w\:n\:0\:0\:L\:6\:3\:1\:3\:w\:n\:0\:0\:L\:7\:0\:1\:3\:w\:n\:0\:0\:L\:7\:3\:1\:3\:w\:n\:0\:0\:L\:8\:0\:1\:3\:w\:n\:0\:0\:L\:8\:3\:1\:3\:w\:n\:0\:0


ChemAxon e274e1bada

12-07-2007 10:15:49

Hi Nicolas,





the syntax of custom forms remained same.


Has been your forms appeared before 3.2.7?


Do you use our getCellParam() function in JSP example, or have you a custom parser for .jchemsite?





Cheers,


Edvard

User f52820d97e

12-07-2007 10:30:44

Hi Edvard,


I copied exactly all the contents of examples/db_search into my interface. It used to work (I just checked with the jsp examples from 3.2.6), now the text is displayed but not the field values...


Nicolas

User f52820d97e

12-07-2007 12:12:10

The only difference I found in the versions are in the searchresults.jsp file (as expected) - I am not an expert ini JSP, so I need your help here...


Code:
diff jchem3.2.6/examples/db_search/searchresults.jsp jchem3.2.7/examples/db_search/searchresults.jsp


66a67


>           String values = "";


68c69,75


<                   value += "|" + pre + args[0][i].toString();


---


>                       //System.err.println("arg: "+args[0][i]);


>                       if (args[0][i].toString().length() > 28){


>                               values = args[0][i].toString().substring(0,27)+"...";


>                       }


>                       else


>                           values = args[0][i].toString();


>                   value += "|" + pre + values;


96a104


>               String customFieldValue = "";


98,104c106,112


<                     if(args[1][i].toString().toLowerCase().equals(


<                             fieldname.toLowerCase())) {


<                       if(args[0][i] != null) {


<                           value += "|" + pre + args[0][i].toString() + post;


<                       } else {


<                           value += "|" + defaultv;


<                       }


---


>                       if(args[1][i].toString().toLowerCase().equals(


>                               fieldname.toLowerCase())) {


>                               if(args[0][i] != null) {


>                                   value += "|" + pre + customFieldValue + post;


>                               } else {


>                                   value += "|" + defaultv;


>                               }


ChemAxon e274e1bada

12-07-2007 12:32:27

Ok, but this part of code concern "default layout" only.


I think a bug is in the "custom layout" branch in getCellParam().


I try to reproduce your case.

User f52820d97e

12-07-2007 12:34:10

Right, although the default layout with all the defined fields works correctly...


Thank you for looking into that!

ChemAxon e274e1bada

12-07-2007 14:52:47

It was a bug, the fix will be included in the next minor release (JChem 3.2.8)


Thank you for bug report.





Edvard

User f52820d97e

12-07-2007 15:00:13

No pb, thank you! I guess you meant 3.2.9 ;-)