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



Jun 23, 2014, 3:47 PM
453 Posts

What does a Submit button do that a simple button does not

  • Category: Other
  • Platform: All
  • Release: 9.0
  • Role: Developer
  • Tags: submit
  • Replies: 2

The obvious difference is that the Submit does a save on the datasource, however, there is a save property that can be set to false so the datasource is not saved. So at that point are they both the same? I have an XPage with several datasources and when an action button is clicked there is a fairly significant amount of processing that is done, then some (not all) of the datasources are saved. They must be saved in a specific order or there is the possibility of a scheduled agent creating a save/rep conflict (the probablity is pretty low but then Murphy comes along).

So with all other things being equal does it make any difference if it is a simple action button or a Submit button with save=false?

Jun 23, 2014, 4:55 PM
366 Posts
The submit button will also trigger the...

navigation rules for the page.  so it will save and then trigger the "on submit or cancel" XPage navigation event.

You can trigger this event in your simple button code by returning the string "xsp-success"


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