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



Aug 27, 2012, 5:30 AM
3 Posts
topic has been resolvedResolved

Server side lotus script execute 2 times

  • Category: Server Side JavaScript
  • Platform: All
  • Release: 8.5.3
  • Role: Developer
  • Tags:
  • Replies: 4
 Hello,
 
I have an xPage with a simple button. I just write a simple button with a simple print("") statement. 
 
Sometimes, there is two output associated with one click... how can it be ? 
 
Best regards. 
Aug 27, 2012, 2:01 PM
366 Posts
Re: Server side lotus script execute 2 times
 Without any "context" there is no way to help you.  Please post a detailed description of the problem, the workflow and the source code from the button and the XPage.
Aug 27, 2012, 8:46 PM
586 Posts
Re: Server side lotus script execute 2 times
 Paul speaks the truth, without more information we can't do anything to assist.
 
My first guess is the JSF lifecycle.  That can cause things to run more then once depending on what you're doing.  BUT that's just a guess. 
Aug 28, 2012, 10:36 AM
25 Posts
Re: Server side lotus script execute 2 times
Hi Pierre, please describe the issue in details. No one can figure out exact reason without that.
Aug 28, 2012, 11:45 AM
3 Posts
Re: Server side lotus script execute 2 times
Hello,
 
In fact I was building a kind of  wizard using extension library and panel controls.
 
I put two buttons on my xpage to do next / previous actions. In a SSJS I put the logical to hide the panels. I put the wizard step counter in the sessionScope. When doing next / previous action, sometimes (often) one single click call two times the function... I removed all the logical to do only simple Print and it does the same.
 
I started everything from scratch on a new xPages (calling the same code in a SSJS library and using the same custom controls) and everything's fine... 
 
Very strange and very tricky. 
 
Thank you for your help and best regards. 

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