FORUM PLAN UPDATE
Date revision: This forum will remain open to new posts and responses until December 1, 2018. (After that date, you will still be able to view and search the forum.) Also, we're taking a second look at the best place to host future conversation. For now, keep using this forum, and stay tuned for more news.



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 })
 

FORUM PLAN UPDATE
Date revision: This forum will remain open to new posts and responses until December 1, 2018. (After that date, you will still be able to view and search the forum.) Also, we're taking a second look at the best place to host future conversation. For now, keep using this forum, and stay tuned for more news.