I have an application designed for for use via the intranet, which allows individuals to create performance reviews for staff members.
The review itself is generated from an agent, which picks up a variety of performance factors and displays them, along with option buttons, and coomment boxes (text areas).
One request that we have had is to incorporate an automatic save option. Instead of requiring the user to press the save button, have the data save automatically after 5 or 10 minutes.
Is this possible in R6? Remember, I do not have a form - only an agent. When the save option is selected, it calls another agent to save the document.
Any ideas or suggestions would be greatlty appreciated. Thanks in advance.
Subject: Can I set up an automatic save feature in web agent?
Here’s a starting point:<meta http-equiv=“refresh” content="10; url=“http://www.myurl.com” />
Just build the URL to use your save agent, or a similar one, to capture and redisplay the form as needed.
Subject: RE: Can I set up an automatic save feature in web agent?
Thanks Collin - I am going to work with this - I’ll let you know how it goes!
Thanks again!
Subject: RE: Can I set up an automatic save feature in web agent?
I used the following code in my agent:
Print |<meta http-equiv=“refresh” content=“120”; url="/intranet/HRFormsV3.nsf/APR_ProcessReview?
OpenAgent" />|
where the url opens my agent to save the data. Unfortunately, the data doesn’t appear to be saved.
I’m going to keep working on it, but any other ideas would be great - thanks!
Subject: RE: Can I set up an automatic save feature in web agent?
Refresh will reload the page without saving, unfortunately. You’d actually need to click your save button or submit() the form. You can do that with setTimeout() in JavaScript:
setTimeout(5000,“document.forms[0].submit()”);
called from the onload of your agent. Your save agent would need to be able to print the form back to the browser in its current state – which may mean that you need to add a field to capture whether the user clicked “Submit” or the browser did an autosave.