Forum Discussion

RobinCC's avatar
RobinCC
Qrew Cadet
7 years ago

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

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);

5 Replies

    • HectorAubert's avatar
      HectorAubert
      Qrew Trainee
      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!
    • WendyShoef's avatar
      WendyShoef
      Qrew Cadet
      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. 



      • MikeGerrity1's avatar
        MikeGerrity1
        Qrew Member
        Any thoughts on how to implement this "Return to location" on report functionality now that Javascript in buttons is not allowed?

        ------------------------------
        Mike Gerrity
        ------------------------------