Restore Screen Position After Refresh In Oracle Apex

Restore Screen Position After Refresh In Oracle Apex

 

Submit The Report And Form Pages Used For Editing Records. Report It Is An Interactive Report And The Edit Page Is Modal. When The Modal Shuts Down The Ir Update, But Again, The Page Jumps Up After The Update. This Happened On Apex If Your Report Is Small This Has Never Been A Problem, But With Long Reports, This Is Very Annoying For The User.
I Wouldn't Be Surprised If This Fixes In A New Version Not So Far From Apex, But For Now, Here's An Easy Way To Do It. Oh, And If You Have Any Suggestions, Improvements, Questions, Or Suggestions I Would Love To Hear About Them.

Some Discussion About How To Restore Screen Position After Refresh In Oracle Apex.

The Apex reports you build have a nice feel to them. You have a bit of control over what you see and can control nicely rendered text and graphics. However, things go a little haywire when you try to refresh the report by clicking on "Submit". If you make a mistake, you won't see it. You will only see the originally selected page and any new changes you make will show. Restore Screen Position After Refresh In Oracle Apex, In some cases, you will even see your original page twice, with one on top of the other. In this blog, we will show you how to avoid this problem by using Apex to programmatically submit the report and form used for editing records. Sometimes you need to refresh your screen and when you do, you can find your position has somehow changed. Restore Screen Position After Refresh In Oracle Apex

 

Steps To How To Restore Screen Position After Refresh In Oracle Apex.

First go to a report of your Oracle application, the use of Restore Screen Position After Refresh can be easily seen in any report attached to the model page. How to use Restore Screen Position After Refresh is given below.

 
1. Create a report and form page,   Name- Restore Screen Position After Refresh
2. Go to the Properties page
           Function and Global Variable Declaration →
 
            
            var savepos;
            
        
3. Add a class to the Report Edit button,   class="Position"
4. Create a dynamic action,   Name- Save Scroll Position
           Event → Click, Selection Type → jQuery Selector, jQuery Selector → .Position
           Action → Execute JavaScript Code,
 
            
            savepos = $(window).scrollTop();
            
        
5. Create A Dynamic Action After The Report Refresh,   Name- Restore Scroll Position
           Event → After Refresh, Selection Type → Region, Region → Restore Screen Position After Refresh
           Action → Execute JavaScript Code,
 
            
            $(window).scrollTop(savepos);
            
        

Our Restore Screen Position After Refresh is done. Try correctly Restore Screen Position After Refresh.

In Oracle Apex, the Report used for editing records is submitted through Report Builder. Although the Report is submitted in a modal, the application still runs the report. If the Report is a long running Report, there might be a possibility that the running report will cause the application to stop responding. When this happens, the application jumps back to the top of the report. If you want to make sure that the Report does not cause the application to stop responding, you can try running the report in a different window. If it does not work, try to stop the running report and run it again. The Modal does not close when you press the (X) button, even though the update is complete. Oracle Apex reports that have many records in them often update a report from the JSP page. This can cause the report to jump up after.

 

🔗 Demo Application-
            URL- Demo Application
            Username - demo, Pass- demo
 

I hope everyone will like it. Please watch the full video,
Comment on any of your problems, I will try my best to solve the problem, In-Shah Allah. Everyone's cooperation is desirable. Visit my blog site, new technology related videos, you will get different types of tutorials of Oracle Apex, and hopefully, you can use them in your daily work.
Please stay tuned by subscribing to the YouTube channel, and encourages new videos to be uploaded.
=================
Visit my site to get more collaborative posts about Oracle Apex and subscribe to my YouTube channel. Thanks.
Comment on any of your issues, I will try my best to solve the problem, In-Shah Allah. Everyone's cooperation is desirable.
Visit my blog site, new technology-related videos, you will get different types of tutorials of Oracle Apex, and hopefully, you can use them in your daily work.
==============================

🙍🏾‍ Md jABER HOSSEN
📲 Mobile- +8801760688286
📨 Email- jaberit786@gmail.com
🌐 FB- facebook.com/mdjaber.hossen1
Please Subscribe to My Channel

Many thanks for visiting the site.

Then Enjoy.........................

Post a Comment

Hlo Sir

Previous Post Next Post