I have a question, how can I clear all filters, tables and diagrams when the page gets reloaded in the browser?
Kind regards
Try to
create a "Page load" dynamic action
whose action is "Clear"
and affected element's type is "Triggering element"
Related
I am trying to refresh my page and after refreshing the data is still available where after refreshing I don't want data to be present on that page. How can I achieve this one?
NOTE: I have just created a blank page and not the page with form.
Can someone help me as I am new to APEX?
On click of the refresh button, the data shouldn't present. Kindly let me know how can I achieve it?
In apex your data is cached for performance reasons. If you refresh it just will pick up the data from the cache again. You can change this behaviour by clearing the cache for that page. That option is available from all the places where you link to another page (button, branch, link, list entries, etc).
I have a page Item on Apex 19.2
In page validation where i'm setting the value of the item : P1_MyItem. The value is set properly in session state. However it's not reflected immedialy in the html item. I still need to reload the page to get the right value in the item.
Is there any way to reflect it immediatly please ? (without reloading the page)
Thanks.
Cheers,
You need to ensure Items to Return lists any item that is updated within the PL/SQL, that you would also like updated within the web page once the dynamic action is completed.
As opposed to 'Items to Submit', which sends any information in pages items the browser is aware of to the database, before execution of the PL/SQL block.
Page processing now defaults to using Ajax. So, if a validation error occurs, the page is no longer re-rendered by default because the assumption is that validations will not change session state. If you want to see your changes, you'll need to locate the page property named Reload on Submit and set that to Always.
But, of course, that means the page will be re-rendered/re-loaded which is what you're trying to avoid.
Also, it's not possible to set the page property to Reload on Submit if you want to use an Interactive Grid on the same page. It requires the option Only for Success, so you have to refresh the page item somehow else.
I have a form on top of a report, and when the user updates values in the report, the form pops up, they make edits, and then click "Apply Changes". There are many rows in the report and right now I have pagination set per every 15 pages. The report is set to enable partial refreshes so the data updates right after the user clicks "Apply Changes". However, if I am on any page other than the first page of the report, it resets the pagination and brings me back to the first page. Is there a way to update the report but stay on the page I'm making the edit for? That way the user can immediately see the change they made through the form.
I was able to solve the issue by using a Dialog Closed dynamic action executing the following javascript:
window.location.reload(false);
It refreshes the browser after the user makes edits, and the pagination does not reset. This is a workaround because the Refresh dynamic action resets pagination. Again this is in APEX 5.1.3.
Which Apex version do you use? I've just tried it on apex.oracle.com which runs Apex 20 and - no problem at all. Once I edit some value in a form, branch returns me to interactive report, to exactly the same page which I left.
Check branch's Behavior - it is set to redirect to page or URL, target is page where the interactive report is; check other properties for the target. Its action should be set to "None" (offered are: clear regions, reset regions, reset pagination which might be set in your branch properties).
Recently our oracle apex application got upgraded to version 5.1.3. Ever since the upgrade, I am having trouble creating a tabular form or an editable interactive grid on any existing page.
I could create an editable interactive grid on a new page and then add other regions to the page. However, I can't seem to do the other way around. I do not see any options to select an interactive grid in either 'Create Form Region' or in 'Create Report Region'.
Here's the list of options I see when I try to create a form region on the current page:
And for the Report region on the current page:
And for Form Region on a new page:
I couldn't find anyone having such issues in any of the forums, which makes me believe that I must be missing something way too obvious. Any help would be great.
Thanks!
References : https://www.toadworld.com/platforms/oracle/w/wiki/11698.apex-5-1-interactive-grid-compared
Click Create Page. In a list of possible options, you'll see the Legacy Page at the bottom of the list - choose it. In there, you'll see the "Tabular Form" you're looking for.
[EDIT] (as here's much more space to type than in the comment)
I have an old application created back in Apex 4.x. It was not migrated to 5.x (currently, I'm on 5.1.1), only Apex was upgraded to a more recent version, while that application runs "as is". I'm writing this because - maybe true "upgrading" makes things different ...
Anyway: I opened that "old" application and went to edit a page that contains a "Static content" region. Then I added a new region. In a list of possible region types, there's the "Show Legacy/Unsupported ..." at the bottom of the list. I chose it; the "Type" list collapses, but when I returned back to it, it shows "Tabular Form [Legacy]".
If I choose it, I get the message saying
This will just create the tabular form and not the associated processes and validations. To generate the related processes and validations please use the Create Page wizard".
Does this help?
I have a Submit Page button on my Apex page. If I click on it, it sets the values, sends the form and refresh my page.
Is it possible to keep field values, or repopulate them somehow after page refresh?
Thanks in advance
Yes, this is default behaviour unless something has been done to remove the session state data. Check your page processes for something that 'resets cache'.
Also check the branch to ensure it's not clearing cache for the page you're re-opening.
Also check the source of the items. Is it using source definition "Always", or "Only when session state is null". What's the source?