Hi everyone,
I have protocol containing a sketcher which can be fed by 2 means:
1. the user open accelrys draw and draw a reaction which is returned to the sketcher.
2. the user enter a CAS and the associated structure is added to the reaction as one more reactant.
In the second case I use a dynamic content container which will return a reaction which will replace the former reaction in the sketcher.
I do that in the javascript callback in this way:
document.getElementById("idReaction").value = result.reactionOutput;
var sketcher = Pilot.Report.ChemSketcher.getChemSketcher("idReaction");
sketcher.updateChemistry(result.reactionOutput);
The sketcher is correctly updated but double clicking on it will open Accelrys Draw empty! The structures displayed in the PP sketcher component don't appear in Accelrys Draw windows.
Maybe I just need to set some other variable or use some function?
Thanks for your help,
Florent