--
You received this message because you are subscribed to the Google Groups "iDempiere" group.
To unsubscribe from this group and stop receiving emails from it, send an email to idempiere+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/idempiere/1a73cd01-477b-4c73-b846-b524663db5bfn%40googlegroups.com.
Nicolas --
14:50:19.706===========> DefaultScriptErrorListener.onEvent: Clients.evalJavascript error! message: SyntaxError: "" string literal contains an unescaped line break, stack: b@https://localhost:8443/webui/zkau/web/b8d3d1b8/js/zk.wpd:9:838
globalEval@https://localhost:8443/webui/zkau/web/b8d3d1b8/js/zk.wpd:9:2864
script@https://localhost:8443/webui/zkau/web/b8d3d1b8/js/zk.wpd:29:13864
g@https://localhost:8443/webui/zkau/web/b8d3d1b8/js/zk.wpd:29:974
_doCmds/<@https://localhost:8443/webui/zkau/web/b8d3d1b8/js/zk.wpd:29:5590
_doCmds@https://localhost:8443/webui/zkau/web/b8d3d1b8/js/zk.wpd:29:6189
afterResponse@https://localhost:8443/webui/zkau/web/b8d3d1b8/js/zk.wpd:29:12016
_onResponseReady@https://localhost:8443/webui/zkau/web/b8d3d1b8/js/zk.wpd:29:9931
v/</<@https://localhost:8443/webui/zkau/web/b8d3d1b8/js/zk.wpd:29:1924
[625]
else if (evt.getContextEvent().equals(COPY)) {
String textToCopy = gridTab.get_ValueAsString("Description");
textToCopy = textToCopy.replace("\\n", "\\\\n");
Clients.evalJavaScript(new StringBuffer("navigator.clipboard.writeText(\"").append(textToCopy).append("\");").toString());
}
String textToCopy = gridTab.get_ValueAsString("Description");
System.out.println("Original:\n" + textToCopy);
textToCopy = textToCopy.replace("\\n", "\\\\n");
textToCopy = textToCopy.replace("\\r", "\\\\r");
System.out.println("Final:\n" + textToCopy);
Clients.evalJavaScript(new StringBuffer("navigator.clipboard.writeText(\"").append(textToCopy).append("\");").toString());
Original:
Comunicazione creata per i documenti iniziali
bla bla bla
Final:
Comunicazione creata per i documenti iniziali
bla bla bla
16:15:22.511===========> DefaultScriptErrorListener.onEvent: Clients.evalJavascript error! message: SyntaxError: "" string literal contains an unescaped line break, stack: b@https://localhost:8443/webui/zkau/web/b8d3d1b8/js/zk.wpd:9:838
globalEval@https://localhost:8443/webui/zkau/web/b8d3d1b8/js/zk.wpd:9:2864
script@https://localhost:8443/webui/zkau/web/b8d3d1b8/js/zk.wpd:29:13864
g@https://localhost:8443/webui/zkau/web/b8d3d1b8/js/zk.wpd:29:974
_doCmds/<@https://localhost:8443/webui/zkau/web/b8d3d1b8/js/zk.wpd:29:5590
_doCmds@https://localhost:8443/webui/zkau/web/b8d3d1b8/js/zk.wpd:29:6189
afterResponse@https://localhost:8443/webui/zkau/web/b8d3d1b8/js/zk.wpd:29:12016
_onResponseReady@https://localhost:8443/webui/zkau/web/b8d3d1b8/js/zk.wpd:29:9931
v/</<@https://localhost:8443/webui/zkau/web/b8d3d1b8/js/zk.wpd:29:1924
[679]
Original:
Comunicazione creata per i documenti iniziali
bla bla bla
Final:
Comunicazione creata per i documenti iniziali\\nbla bla bla
String textToCopy = gridTab.get_ValueAsString("Description");
textToCopy = textToCopy.replace("\n", "\\n");
textToCopy = textToCopy.replace("\r", "\\r");
Clients.evalJavaScript(new StringBuffer("navigator.clipboard.writeText(\"").append(textToCopy).append("\");").toString());
--
You received this message because you are subscribed to the Google Groups "iDempiere" group.
To unsubscribe from this group and stop receiving emails from it, send an email to idempiere+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/idempiere/e8f907a4-0364-4c17-8bd0-5ba48e80f867n%40googlegroups.com.