Strange bug hidden when the page is refreshed
I have a really strange bug in an application.I have a report on the table which displays some O/N flags. The columns that display the flags are implemented as hyperlinks, so the user can reset the flags to "n" by clicking on the links.
It is based on the following post:
Processes necessary to remove line
I did this by pointing the hyperlink to the same page and by assigning an item hidden on the page with an id of line, as shown in the above post.
When the page loads, it has PL/SQL in front header area running SQL to define the indicators of "n" in the database. Right after that I use a process to clear the cache to reset the hidden element.
It all works very well... when the user clicks on the hyperlink, the hidden element is filled and PL/SQL is running, then the hidden item is reset. If the user goes to another page and back, PL/SQL does not yet (because the hidden element is now empty).
However, if the user clicks on the hyperlink, and they then refresh the page (F5), the PL/SQL is running again. Whenever they refresh the PL/SQL runs despite the cache for this element during the erasing. It seems as if the page refreshes is somehow the hidden item, remembered when the user has clicked on the hyperlink.
I guess that by pressing F5 is to return all of the data, it sends the last time... How can I stop this from happening?
Hello
You can also use an approach using Ajax as described here: [http://apex.oracle.com/pls/otn/f?p=41715:17].
Greetings,
Roel
http://roelhartman.blogspot.com/
Tags: Database
Similar Questions
-
Report do not show when the page is refreshing
Hello
I have a report of patient privacy and I have a column in the report at the end of TREATMENT DETAILS. When I click on DETAILS of TREATMENT and then move page command no 2. This page show me last visit treatment details report in a region and here I use the second area I add the current processing status. There is point four
Checkbox name 1-disease
2 - symptoms name box
Checkbox name of 3 treatments
medicine-4 Select name
My first query of the region is
using these four point I fill in the details of current patient treatment and resend medicine by using select list but if he is NOT as medicine of Disprine salt; ECT list then add new drug I create a link when I click on this link then control will again page-3 and add new drug .but after submitting the new medicine and click on the "BACK" button then control access page - 2 and the treatment of the patients first region report do not show.select A.P_NO,A.P_NAME,B.DISEASE,B.SYMPTOMS, B.VISITING_DATE,B.TRET_NAME,B.MED_NAME,B.MED_COUNT FROM PATIENT_DETAILS A, PATIENT_SYMPTOMS B WHERE A.P_NO=B.P_NO AND A.P_NO =:REQUEST
I want to show this report when I click the back button on the page of no - 3.
How can I do this...
Thank you
Published by: Ed on April 30, 2010 04:57
Published by: Ed on April 30, 2010 04:58
Published by: Ed on April 30, 2010 05:48Hi Maury,
I changed your application and it's working now. The problem is, you set the number of patients at the request of page No - 7 when the link in the page no-6 is clicked. When you get back from page no-5 after the addition of medicine, demand comes from page no - 5 and it doesn't have the patient not inside, so the report query returns all the data.
I added an item hidden in page 7 and I am the focus with the patient No. 6 and used page in the report query. The value of this element will not change until you change it or the session expires or you click on the link in the page no-6 for another patient. Hope this helps :)
Thank you
Machaan -
How to set the time to refresh the page items when the Page is loaded
Hi all
When my pages load, some hidden page items are displayed, and when the page load they are hidden again. Is it possible to keep hidden without this time to refresh?
Thank you
Bsalvador
bsalvador wrote:
You know the syntax of css to hide the label too?
#P1_ITEM_X, label[for="P1_ITEM_X"], #P1_ITEM_Y, label[for="P1_ITEM_Y"], #P1_ITEM_Z, label[for="P1_ITEM_Z"] { display: none; }
However this will not affect the underlying layout grid, which still affects the appearance of the page. If possible you can put the items in question in separate regions [sub] and show/hide those, rather than the individual elements.
Post edited by: fac586
-
How to refresh the JSF portlet content when the page is surfed on
Hello everyone.
I have a problem with a refreshing JSF portlet content when the page contains this portlet became inactive. I have a portal with 3 pages, each page has a JSF portlet. When I manipulate one of these portlet and I navigate to another page, I want the portlet will be reset to original content instead of the current content.
I already looked for the solution to this problem in our forum but found that nothing can be applied to the JSF portlet. Portlet PageFlow, we have a refreshAction to solve, but not for the JSF portlet.
Can you suggest me some solutions?
I thank in advance.
Best regards.
CUONG PhamHello
Have your JSF portlet listen for the event "onDeactivation" allows you to reset the State inside your portlet when the page on which it is is surfed away from:
http://download.Oracle.com/docs/CD/E15919_01/WLP.1032/e14244/IPC.htm#i1055434
How do you listen this event depends on whether you use the bridge portlet JSF JSR329 (WLP 10.3.2 only), or "native" WLP JSF portlet bridge You are using.
Kevin
-
Reset the accordion State when the Page refreshes
I read a few posts online of people who have encountered the same problem, however I have not yet met any soloution to it.
If you have an accordion menu and the page is refreshed that the accordion retains its last State rather than reloading to its first State. Is there anyway to stop it from doing this?
Thank you
Katy"katychapman85" wrote in message
News:g77ca5$9C$1@forums. Macromedia.com...
> I read a few posts online of people who met the same
> problem.
> However, I have not met any soloution to it.
>
> If you have an accordion menu and the page is refreshed on the accordion
> canned
> It is the last State rather than reloading to its first State. Is there anyway
> to
> don't let him do that?Disable history management.
-
Image change main header when the page is reloaded?
Anyone know how to make the main site change my header image whenever the page is refreshed? I really don't want to make this header when back you a slide show of images, just a new image of image here or refresh the page.
Thank you!
The only way that muse may call a new image when updating is integrated in a slideshow widget.
-
JavaScript in "Run when the page loads", works not when paginating the results grid
I have some Javascript in a page of the Apex, running in "run when the page loads. There is stuff to a grid of results. It works fine on the loading of the page, but then does not work when I paginate (Browse), or sort the grid. I assume that this is because the grid is sorted / paged using Ajax, which means that the page is not fully loaded.
Is there anywhere else I can put the code, so it is applied to the grid on the kinds and paging?
Yes you are right when you paginate it doesn't reload the page (at least in this case).
You must use the event after Refresh in the dynamic actions and run javascript also, you would probably need the dynamic scope
-
Table does not display data when the page is loaded.
Hi all
I am using jd 11.1.1.4
I have an adf Table in my web page created from a VO and a query pane to find the table,
When I initially loda page table shows all the lines, but when I press the search button in the query Pereira, the table displays lines.
I want the data in the table shows that when the page loads, pls tell me how to do this.
ThanxHello
Try to set the option to refresh on the iterator in the PageDef to "always."
Or add the pageDef ExecuteQuery method and add an invokeAction to your executable files.
Kind regards
Stijn. -
Hide/show items based on another point when the page is rendered.
Hello
I am trying to hide or display the elements on the page when the page is rendered according to the value of a checkbox control.
That's what I use.
Body HTML attribute:
OnLoad = "initialCheck (); »
Header HTML:
I want the items listed to show when the page is loaded when the P21_BEN_SAVINGS is checked (equal to 'YES'), but they are hidden in this situation.function initialCheck () { if (html_GetElement('P21_BEN_SAVINGS').value != 'YES') { html_HideItemRow('P21_COST_SAVING'); html_HideItemRow('P21_LOCATION_CODE'); html_HideItemRow('P21_ACCOUNT_NO'); html_HideItemRow('P21_SVG_DEPT'); html_HideItemRow('P21_RATIONALE'); } else { html_ShowItemRow('P21_COST_SAVING'); html_ShowItemRow('P21_LOCATION_CODE'); html_ShowItemRow('P21_ACCOUNT_NO'); html_ShowItemRow('P21_SVG_DEPT'); html_ShowItemRow('P21_RATIONALE'); } }
I see not the onload call in Firebug, and I don't know if it is the configuration of firebug or that JavaScript is not fair.
Thanks for any help!
MattHi Matt
Try this
function initialCheck () { if ($v('P21_BEN_SAVINGS') != 'YES') { $x_HideItemRow('P21_COST_SAVING'); $x_HideItemRow('P21_LOCATION_CODE'); $x_HideItemRow('P21_ACCOUNT_NO'); $x_HideItemRow('P21_SVG_DEPT'); $x_HideItemRow('P21_RATIONALE'); } else { $x_ShowItemRow('P21_COST_SAVING'); $x_ShowItemRow('P21_LOCATION_CODE'); $x_ShowItemRow('P21_ACCOUNT_NO'); $x_ShowItemRow('P21_SVG_DEPT'); $x_ShowItemRow('P21_RATIONALE'); } }
Max
Published by: - Max - April 28, 2010 10:42
Published by: - Max - April 28, 2010 10:43
-
Periodic data refresh on the page or refresh on command?
Hello!
I have a start page of my application that displays data from a couple of iterators. This page is intended mainly to access certain tasks on these data, but the task is based on the data itself. So I have to make sure, when the user clicks a command link (let's saj in a column of the table) the data in this table is updated. I thought a lot about some features that cause the data on the page to refresh periodically since there is also a picture showing the current positions of certain transport units (or at - he or she is not, I have no update in real time). Second option is to update the required iterator somehow when the user clicks on the line because sometimes it happens that a user clicks on the link of the line, but when the task starts data are not the line clicked on but a completely different recording since there are a few changes of data of another user that caused the order of the lines in this table.
Please let me know what is the best way to deal with my needs and if the periodic refresh is OK, how to implement a periodic refresh of the page or so concidering these tips: http://radio.weblogs.com/0118231/stories/2005/06/16/whyIsntRefreshingTheBrowserPageEnoughToRefreshTheDataDisplayed.html - update all iterators on the page.
I hope my question is clear.
Kind regards
BB
BTW
With the help of ADF BC 10.1.3.3
Published by: Brokenbone on July 22, 2009 11:41Hello
I think you can use the poll with specified interval and pollListener tag, you can find more information on links below
http://www.Oracle.com/technology/pub/articles/Jellema-Muir-ADF-part2.html
http://thepeninsulasedge.com/frank_nimphius/2007/09/18/ADF-faces-using-afpoll-to-refresh-a-tableJean Lou
-
How update a field in a report whenever the page is refreshed?
Hello
I have a pain with the logic below field:
If the Date deadline > SYSDATE and end Date = NULL then
Suffering: = Date deadline - SYSDATE
End
How can I change a field suffering in a report whenever the page is refreshed?
Thank you
GuyHello
Try to add a column to your SELECT statement.
CASE
WHEN G IS NULL
THEN
NULL VALUE
WHEN (F IS NULL) AND (G<>
THEN
SYSDATE - G
WHEN (F IS NOT NULL AND F > G)
THEN
F G
ON THE OTHER
NULL VALUE
FINISH as differenceKind regards
Dimitri
----------------------------------
http://dgielis.blogspot.com/
http://www.apex-evangelists.com/
http://www.apexblogs.info/
AWARDS: Don't forget to mark correct or helpful messages on the forum -
signal no disconnection when the page is closed by the gesture of eye?
Hello
Falling on a particular issue... First of all, I connect my context object to signal a bit of javascript using the onCreationCompleted
onCreationCompleted: { // When the top-level Page is created, direct the data source to start // loading data MyObject.signal_1.connect(onJavaScriptFunction_1); MyObject.signal_2.connect(onJavaScriptFunction_2); MyObject.signal_3.connect(onJavaScriptFunction_3); }
So far everything is going well, but if I unplug these signals, the page is busted, so the next time that the page is created, these signals will be attached to the same javascript function once more and so on for every time that the page is re-created.
Then I thought, I should unplug these signals when the page came out... Therefore, I have given the NavigationPage because I couldn't see any signal onPopped or onDestroy... So I used the following code:
paneProperties: NavigationPaneProperties { backButton: ActionItem { onTriggered: { console.debug("Popping page, disconnect signals...") // Disconnect signals MyObject.signal_1.disconnect(onJavaScriptFunction_1); MyObject.signal_2.disconnect(onJavaScriptFunction_2); MyObject.signal_3.disconnect(onJavaScriptFunction_3); // define what happens when back button is pressed here // in this case is closed the detail page navigationPane.pop(); } } }
After testing a few creation of the page / page popping, everything works fine. Signal is attached only once. But every time I close the page by using the gesture of look, then I suddenly I begin to see multiple signals attached to my context object... as directed by the console log output:
emit > signal_1 onJavaScriptFunction_1() onJavaScriptFunction_1() emit > signal_2 onJavaScriptFunction_2() onJavaScriptFunction_2()
My questions
- Where can I sign out signals to avoid leaving the unwanted signals connection?
- All the QML object seems to have a signal of {onCreationCompleted}, is an onDestroyCompleted or something similar?
Thank you
Hello
There is no equivalent onCreationCompleted.
But you can set a JavaScript function such as
Page { function cleanup() { // disconnect signals here }
and call from NavigationPane onPopTransitionEnded:
NavigationPane { onPopTransitionEnded: { page.cleanup() page.destroy() // destroy the page if it was created dynamically }
UPD: another option is to use the element of connection of QtQuick. According to this thread, it works in Cascades:
http://supportforums.BlackBerry.com/T5/native-development/QML-connections-element/m-p/2063301#M9550
Connect/disconnect signals automatically, but I haven't checked this app cascading.
-
How to develop all the rows of the table of the tree when the page loads?
Hi all
I have tree than VO mere reference of table... I want to expand all table tree rows when the page loads... I already have initially developed property to true... but it only runs from first line of tree...
Any help would be great-Jey
In the backbean and that:
private RowKeySetTreeImpl ps = new RowKeySetTreeImpl(true); public void setPs(RowKeySetTreeImpl ps) { this.ps = ps; } public RowKeySetTreeImpl getPs() { return ps; }
In the jspx set table tree as disclosedRowKeys
-
Get the values of default table row when the page loads
Hello
I am running JDev 11.1.1.7. We have a page that contains two tables in a relationship of the master / detail of nickname. We can do a real master ADF / detail with view items related because the query for the 2nd table is complex and works best when queries with binding settings. The View object for the 2nd table has a request with 2 link params as it can get in the first table. Thus, when a line is selected in the first table we want to execute ExecuteWithParams on the object from view of the table 2. We do it in the Bean managed for the page in a method that is the selection to the first table listener. It works fine except when the page initially loads, the first line is selected by default. When the default value is selected the selection listener is not triggered.
I've seen the suggestion of not having a line selected by default when the page loads by removing the value selectedRowKeys on the table. However, we do not want that the 1st row of the table secondary master to be selected by default and we as the table of detail to show the correct corresponding lines.
Steve
Steve,
Not really sure when you say that the 2nd table is complex and may not use the master detail. If the settings link in the parent table, you can set the ViewLink accordingly and it should work, right?
In any case, if you're after the execution of methods on the loading of the page, you will find the links below.
If it's a working group, you can add a methodCall as activity by default and UTF, you can use phase listener (if listener server does not).
https://blogs.Oracle.com/aramamoo/entry/an_epic_question_how_to
It will be useful.
See you soon
AJ
-
record in the query when the page load
Hi How can I make my block to query the record when the page load I don't have what it takes to press F11 + Ctrl I just what to load the data when the page loads for this field or block
I did it
create a LTRC of control block of data with the SERVERNAME element non-base
Give it a value in the a time-new-form-Forum
CGFK$ QRY_SERVER_TABLE(:CTRL.) SERVERNAME); and it works
Maybe you are looking for
-
Satellite L350D-201 - screen keeps freezing sometimes
Hello I was wondering if someone could help, Ive had my laptop Toshiba L350D-201, a little less than 7 months and recently the screen just freezes. Judgment of the mouse and the keyboard is not the answer to all commands such as Ctrl/alt/del and the
-
but the controller of network (code 28) says it is not a driver and the wifi does not work. LAN works fine. Thanks for your help
-
More information about the problem: BCCode: 1000008e BCP1: C0000005 BCP2: 82ACB455 BCP3: BCC2C94C BC
-
error: QML overview compatibility check failed, overview QML is disable!
Hi, everyone, I have installed blackberry 10 native SDK (gold) and I opened a sample porject blackberry, then the error appeared. How can I fix the error? Thank you very much.
-
Manipulation of the results of the dialogue
Hello. When we my dialog boxes is displayed and the user, click OK, I would like some methods to fire. What type of headphones whereby will I create to handle dialog keys? Thank you.