URL to edit record and refresh to same spot on the report

  • 0
  • 1
  • Question
  • Updated 5 months ago
  • In Progress
  • (Edited)
I have a table report with hundreds of records.  If I scroll down the report, let's say 2/3 of the way down, and I press the URL button to edit one of the records down there, I want it to REFRESH to the SAME SPOT on that report such that I will not have to scroll down again.  As it is, I always have to scroll down after each button press and this is painful when I am editing many records in this manner. 

I did use the following within my URL formula, and while it does refresh the page it does not go back to the same spot on the report.  In fact, it was not anywhere close to the same spot on the report. 

"javascript:" &
"$.get('" & 
$URL & 
"',function(){" &
"location.reload(true);" &
& "void(0);"
Photo of Robin CC

Robin CC

  • 240 Points 100 badge 2x thumb

Posted 2 years ago

  • 0
  • 1
Photo of Ⲇanom the ultimate (Dan Diebolt)

Ⲇanom the ultimate (Dan Diebolt), Champion

  • 30,434 Points 20k badge 2x thumb
Only implemented this feature on display record pages (easy to extend to other pages). I did not implement your $.get() - only the scrolling restore on page reload.

Long Page Scroll Restore

Pastie Database
Photo of Hector A.

Hector A.

  • 238 Points 100 badge 2x thumb
I've implemented the instructions for scrolling restore on page reload and got it to work on a form.  However, when trying the same on another form which has a long embedded table report (34 records), it would not reload to the same scroll position halfway down the table report.  Any ideas why or a solution to get it to work?  Thanks!
Photo of Wendy Shoef

Wendy Shoef

  • 680 Points 500 badge 2x thumb
Did you ever resolve this?

If not, it sounds like the local storage isn't saving the spot correctly. Try capturing the position and adding it to the end of the url. Then parse the value and scroll to it after the page load.