Oracle APEX : How to refresh the page after submit - before Branching - refresh

I have an APEX page, with a interactive report with Check boxes and a Button on top.
On click of button, It is performing some PLSQL process (on selected rows that are checked) and in a branch I'm invoking a Report Query which downloads a report in the pdf format.
But even after downloading the report, the report is not automatically getting refreshed.
Ideally I want to remove the processed rows from the report so as to avoid multiple processing by clicking the button continuously.
But since I have a branch that goes to download the report, it is not going to other branches that comes after in sequence to refresh the page.
Can anyone tell me how to refresh the page/or just that region after the processing? Thanks.

Related

How to display the status automatically/Refresh the field automatically after a JOB execution In Oracle Apex

I am executing a job via oracle Apex by clicking a button which is taking some times. Currently i am displaying a field as "STARTED" when the job started, once the job finished its update as "FAIL/SUCCCES" in a table. Placed another button to check the value from table for the status.so need to keep on press the button to know the status.
Is there any possible to refresh the field automatically/wait till once the table value will update either "FAIL" or "SUCCES".
better you can change the status like processing
Use javascript and set the value like processing. once job completed automatically page will refresh and show the success message.

Automatically update analysis without manually refreshing or changing tab

Within our analysis, we have multiple tabs. Each tab contains a number of graphs. Currently, new data is only added to the graphs when we change the tab, and the graph is reloaded, or when a user manually selects the refresh option. Is there an option within Quicksight that allows graphs to be automatically updated at set intervals, say each 1 minute, when using direct query datasets?
When you are publishing analysis to a dashboard, click "Advanced publish options" in the dialog and look for "Enable auto-refresh for visualizations"
I believe at the moment this option is only available for dashboards that use direct query datasets, not datasets ingested into SPICE.
If you have more questions, this thread should be useful https://community.amazonquicksight.com/t/auto-dashboard-page-refresh/589/5

Create a button that will update a database table in apex

I am trying to create a button that will update a database table. I am using Oracle Application Express (APEX) 20.2. What I have done so far is create a regular button and then create a process that contains my PL SQL code that would update the table. The process is attached to the button by specifying in the "Server-side Condition" attribute to execute the process when the button is pressed. This has not work and would appreciate anyone who has any knowledge of doing this.
So all in all I am just looking to run PL SQL code that will update a table when the button is pressed.
This is the button
APEX Button
This is the process
APEX Process
The process is attached to the button
APEX Process
After pressing the button, this is what I see in Debug mode in runtime
Debug mode
After I press the button the current page stays in loading mode
Loading mode
Error I get after waiting for the loading tab to finish
Error pic
I also tried using a dynamic action instead of a process but it did not work as well. Please see image of how I set the dynamic action.
Dynamic action
I think you are overcomplicating things.
Have you tried simply making a dynamic action that is triggered when the button is pressed.
Then you can have the action run PL/SQL code to do whatever you need.
If however what you are trying to do is update a table on the screen, then what you should try is making the button just submit the page. Then make a process with the editable region being the table you are working on, do the code in there. And in case you have other submits on the page that you dont want to trigger the code, just put in a button pressed condition in the process.
The problem that was causing my button not to work was that I had a session in TOAD open and I did not commit my current query in TOAD's editor. I had to commit my changes in TOAD so that TOAD would not lock the rows that the code of the button in my APEX app was using/accessing. I also want to point out that my button worked without having to attach a process to it, instead the button needed a dynamic action attached to it as #TineO suggested.

In PowerBI refresh succeeding on PowerBI desktop, but failing when refreshing on the webpage

I created a report in Powerbi desktop. The dataset is a view from a table and I used the Import method and not DirectQuery. There is a lot of data. So when I do a refresh on the PowerBi desktop, it does the refresh but takes a while. When I published my report, and scheduled a daily refresh, the daily refresh fails with the following error
Data source type: SQL
Data source error: Microsoft SQL: Query timeout expired
How can I olve this. I have tried deleting and publishing the report again and again. I also checked the data credentials field in the schedule refresh tab.
I would open the report file in Power BI Desktop and make these changes:
Navigate to the "file" menu (top-left) / Options and settings / Settings
Under Current File / Data Load / Parallel Loading ..., check the Enable parallel loading ... option
Under Current File / Privacy, choose Ignore the Privacy Levels ...
Hopefully that's enough to get you over the line.
If not then I would work on speeding the query design. From your error message it sounds like the generated query is very slow to start returning rows. I'd try to move any Filter, Group By or Choose/Remove Column steps up the Applied Steps list so they have an impact early and reduce the load on your database server.

refresh of one report region in apex

I have page with 10 clasic reports and 10 form region (one for each report). On each form region is button with Dynamic action witch
insert data in table. My problem is how to refresh just one report after I insert data so that new data is shown in report. I tried to add another
true action in Dynamic action (refresh region) but it has no effect. Anyone had any idea? Apex version is 4.2
Thanks in advance.
One thing you can do is.
Assign Static ID to your every reports, Like 'myReport1', 'myReport2' or what ever you want (ignore if you already did).
on each button click when you are updating database,
add one more True Action with Execute JavaScipt Code in your existing Dynamic Action.
and put $('#myReport1').trigger('apexrefresh');
repeat this for all of your Reports with relevant Report ID.
This is a frustrating issue and one which I have hit a few times...
Things to check:
Report region is region type: SQL query (PL/SQL Function body returning SQL Query - cannot be refreshed using a standard refresh dynamic action).
Ensure that: id="#REGION_STATIC_ID#" is in the Report template you are trying to refresh
Navigate to: Report Attributes > Layout and Pagination: ensure that "Partial page Refresh" is set to Yes.
Ensure that: any page item values which your SQL report is based on are submitted, these can be entered under Region Source in the "Page Items to Submit" box.
In the "Attributes" in "Pagination", "Partial Page Refresh" should be "Yes". otherwise classic report does not refresh.
Check if you have selected the Template "Standard" in Section "Appearance" of your Classic Report. This solved my problem with refreshing in Apex 5.