This topic is locked

Refresh page after Inline Edit

3/5/2009 11:35:19 AM
ASPRunnerPro General questions
W
wisdom2009 author

Team,
on the List Page, I can use inline edit to update one column from 0 to 1, before everything works fine when I used a filer on the list page to show me only records with 0, here stat the problem, every time I click on Inline edit nothing changed and still showing as it was not updated, unless if I refresh the page, is there a way that once I click on save button the table will be refreshed??

A
agruspe 3/5/2009

My project also required an automatic refresh after an Inline Add or Inline Edit. I tried to use the code below in the 'After record added' event but it seems that is does not append any records at all.

objDoc.Location.Reload(True)
J
Jane 3/6/2009

Hi,
edit JavaScript code forSave All button in the generated ..._list.asp file manually.

Here is a sample:

xt.assign "savealllink_attrs","disptype=""control1"" name=""savealledited" & id & """ style=""display:none"" onclick=""$('a[@id^=save]').click();window.location.reload( true );"""

W
wisdom2009 author 3/8/2009

Thanks added window.location.reload( true) and it works perfectly Thank you so much.

A
agruspe 3/11/2009

Hi Jane,
Thanks a lot for the code. Also, where can I modify the code so that when the user clicks on the green check box, the reload function is also included.
Additionally, is there a way that this can be added on the business folder templates so that any web app project generated will have an auto-reload rather than manually editing the code.
Regards,

Arnel

J
Jane 3/12/2009

Hi,
you can add these changes to the C:/Program Files/ASPRunnerPro6.0/source/list.asp file directly.

N
NigelEtienne 9/2/2009

Hi

I am using 6.1 build 2503 and have added the ;window.location.reload( true );""" code to the saveall line of the ..._List.asp file but it only seems to save 5 records at a time not all of the records edited. Does anything else need to be amended?