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 5, 2011, 6:51 PM
14 Posts

Weirdness when attempting to save an Xpage

  • Category: Server Side JavaScript
  • Platform: Windows
  • Release: 8.5.2
  • Role:
  • Tags: Save datasources vs Save document action.
  • Replies: 0
 I have an Xpage bound to a NotesDocument (Form). I have a Save button (type button) that does a Simple Action of Save Document and then Change document mode to read mode. If I add fields from the Data source and create a new document with the Xpage the Save button functions properly (document is saved and I am returned to the document in read mode). As soon as I update the field to be a combobox with Server side javascript (doing a lookup to get values) the Save button no longer functions properly.
 
Again the scenarios:
 
1) textbox bound to document1 - save button works no problem 
 
2) combo box bound to document1 with serverside javascript - save button simply refreshes the Xpage
 
Most likely a simple thing I am missing but it is difficult  to describe the amount of frustration this is causing me. :)
 
P.S. 
 
Here is the Serverside Javascript code in the onclick event on the save button 
 
var key = "stationaryassignees"
db = new Array(@DbName()[0], 'Intranet\\staff.nsf');
@Explode(@DbLookup(db, "Keywords", key, "keylist"),"\n") 
 
Thanks for you time in advance. 
 
Elijah 

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