This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



May 4, 2011, 1:14 PM
122 Posts

Re: javascript stops for no reason

  • Category: Server Side JavaScript
  • Platform: All
  • Release: 8.5.2
  • Role:
  • Tags:
  • Replies: 5
Have you copied your code exactly? If so, you're saying print=("DONE"). Try print("DONE")
May 4, 2011, 1:24 PM
29 Posts
Re: javascript stops for no reason
ups, yeah! My mistake here. :-)
but in fact I added this line after a number of iterations while finding the place where it stops. 
I have just removed print("DONE"), it doesn't change the result. 
May 4, 2011, 6:29 PM
122 Posts
Re: javascript stops for no reason
I take it the problem is the chart is not showing, is that right? A couple of things to check: is the content set to HTML, so escape="false". Also, is the computed field rendered to the browser. If rendered is set to false, your code will not get passed to the browser.
 
When working with charts I usually put the same code in a second computed field, so I can debug it. I show that field (or set the rendered property so it only shows if I want it to) and also make sure escape is NOT false (i.e. set escape="true"), so it is not written to the screen as "pass-thru HTML", as it were.
 
I take it you've seen the two articles on the App Dev wiki, but if not, the first one is here: http://www-10.lotus.com/ldd/ddwiki.nsf/dx/Dojox_Charting_for_XPages
There are also links to a sample database.
May 5, 2011, 6:31 AM
29 Posts
Re: javascript stops for no reason
 Yes, Paul, I had the content set to HTML and escape to "false", and I read the articles in lotus.wiki with the dojotoolkit.org already being my homepage :-)) the articles are were very helpful!
 
But getting back to business, I finally handled the problem by rewriting the script and printing the results on a step by step basis, amazingly - with no changes at all. This is not the first time when I get into such kind of weird behavior - I already reported a case when the code on the source pane is doubled when you copy/paste elements on WYSIWYG pane.
May 5, 2011, 11:25 AM
122 Posts
Re: javascript stops for no reason
Yes, there have been a number of issues of copying and pasting into design pane causing duplicate code. I tend to paste into the source pane, which doesn't have the same problems and could be why it was not picked up in beta. From others who have raised PMRs on the issues, I believe it's being addressed in 8.5.3.

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal