Tuesday, September 24, 2013

Auto Save in ePerformance

I just got a request to add auto save to ePerformance and after about 30 minutes of searching a I found this thread on the OTN Community Website.

https://forums.oracle.com/thread/2223522

But the javascript was pretty simple and worked well.

<input type="hidden" name="AUTOSAVE" value=""/>
<script type="text/javascript">

threadLock = false;

function user_function()
{
//alert('starting process');

var changes = checkFormChanged(document.%formname);
if (changes && !threadLock)
{
threadLock = true;
if ("%page" == "EP_APPR_MAIN1" || "%page" == "EP_APPR_BASE1")
{
submitAction_%Formname(document.%Formname,"EP_BTN_LINK_WRK_EP_STORE_PB");
}
}
}

window.setInterval("user_function()",15000);


Thanks to whoever left this thread!

 




3 comments:

  1. Hi, my page is not getting saved. Something happens on the page on the given interval but the data doesnt get saved to the Database. Any input would be appreciated.

    ReplyDelete
    Replies
    1. This functionality is delivered in 9.2. What version are you on?

      Delete