Mar 20, 2013, 1:15 PM
90 Posts

Re: Simple autosave for an xpage?

  • Category: Other
  • Platform: Other
  • Release: 8.5.3
  • Role:
  • Tags:
  • Replies: 6
 Sven Hasselbach posted this elsewhere....
 
<xp:eventHandler event="autoSaveEvent" id="autoSaveDoc" submit="false">
   <xp:this.action>
      <xp:saveDocument />
   </xp:this.action>
</xp:eventHandler>

  

The event handler can now be called from CSJS with this code:

executeOnServer('autoSaveDoc',null,{ 'valmode': 0 })
 I think the missing piece is some kind of timer to set off the line:  
executeOnServer('autoSaveDoc',null,{ 'valmode': 0 })