Auto save
(Created page with " == Auto Save of page (no Save button needed) == Sometimes one might want to provide the user with a user interaction model where the content on the page is saved automaticall...")
 
Line 6: Line 6:


<pre><code>
<pre><code>
if (vCurrent_ViewModel.IsDirty and (not vNoPeriodicSave)) then
if vCurrent_ViewModel.IsDirty then
selfVM.Save;
selfVM.Save;
   0
   0

Revision as of 19:55, 29 May 2019

Auto Save of page (no Save button needed)

Sometimes one might want to provide the user with a user interaction model where the content on the page is saved automatically and thus removing the need for a "save button". This behaviour might be removed by creating a periodic action that will save the page if it contains dirty data.

Peridic action (repeat every i.e 2000 ms, visible if there is dirty data  :

<code>
if vCurrent_ViewModel.IsDirty  then
selfVM.Save;
  0
else
  0
endif
</code>

To hide the sidebar in order not to show the save button please see Layout_and_CSS

This page was edited 69 days ago on 02/10/2024. What links here