How to reset all items on a page on the page change?

Hi all!

I'm trying to reset all items whenever a user edits a page. Then when they are on page 17, they can calculate the food values, and these values get inserted into page elements.
Now, I want to be able to reset all these objects on page 17, when a user goes to one page other than 17.

I did a page process, on the laundry after the header, visit runs once per page.
The code is like this:
if :APP_PAGE_ID <> 17 then
:p17_set_unit := null;
:p17_set_language := null;
:p17_set_weight := null;
:p17_new_weight := null;
:p17_new_kcal := null;
:P17_new_carbs := null;
:p17_new_protein := null;
:P17_new_fat := null;
:p17_foodname := null;
:p17_select_foodname := null;
:p17_foodid := null;
end if;
So basically, if the current page is not 17, then it should reset all values. Why does this work?
I made other processes that do the same (as when you change the language of food, all items except the point of language GET reset), but it does not work.
What I am doing wrong? Or should I fix this on a different path?

Thanks in advance.


APEX version: 4.1.1.00.23

Hello, Magali,.

Oops! I missed it. We do not have the process on page 0!

You can create a Process of Application which runs in charge of pages and clears the cache for the page 17 using APEX_UTIL. CLEAR_PAGE_CACHE. Use the above condition.

Reference:

http://docs.Oracle.com/CD/E23903_01/doc/doc.41/e21676/apex_util.htm#BABCIAFJ

I hope that helps!
Kind regards
Kiran

Tags: Database

Similar Questions

  • How to reset all parameters display in windows 7

    Somehow, I changed the display settings so that all I see is huge icons and windows, and I can't find how to reset all the customization of the display by default settings, y at - it a command line, I can use or can you tell me how to reset 'blind' (even once, I can't see all the options (, only the parts of Windows I have open), thank you. NE4

    Two possible solutions:

    • Start the computer in safe mode and change the display settings.
    • Run the system restore and go back to a time before changed the display settings.
  • How to reset all preferences in Dreamweaver6 MX

    How to reset all preferences in Dreamweaver6 MX

    He cannot know

    First, you will need to enable cookies you OS get to the right place. It should be the same that the newer versions, but replace the folder Adobe Macromedia...

    Restore preferences in Dreamweaver CS4 and CS5, CS5.5

  • How to reset all &amp; &amp; stored in memory without having to leave SQL MORE

    How are you?

    I just wanted to ask how to reset all & & stored in memory without having to leave SQLPLUS?

    I kept a few variables when I used ' & &' and whenever I run my script, it does not ask me for values more.
    even after that I changed & & to '&' in my script, recorded and he run. AND even after I disconnected and reconnected! They're a real problem!

    Please help me beat him! :)

    [email protected] wrote:
    for each variable?

    is there a way to erase the memory of all the variables at the same TIME?

    No, but you can specifey many a KEPT variable:

    KEPT var1 var2 var3

    SY.

  • How to reset all revisions of Labview VI

    The revision of all screws in a llb labview or the hierarchy can be reset to one.  I want all rounds to 1 before I'm officially disseminate the software to work. I know how to reset one at a time, but it's a very slow process.  I did a "Save as new hierarchy/llb of generation" on the high level vi thinking that would work, but now the chance.  If someone changes the setting to display the revision history, I want to show him 1 for all screws is there a way to reset the history of rev on several screws at the same time?

    Thanks in advance.

    VI, attached by Philip Brooks works perfectly!

    http://forums.NI.com/T5/LabVIEW/reset-revision-history-for-all-vis-in-an-LLB/m-p/1254618/highlight/f...

  • How to reset all default?

    Hello

    Is it possible to reset all controls by default? I have searched here and someone suggest you use the "reset to Default values" in the Edit menu, it works for the value field. But to control the structure of the case, it does not work. Any other suggestion (without programming)? Thank you

    Place the same even invoke noeud knot on the digram of block, then right-click and select Select the method > VI Server > VI > VI.

    After that once again right click and select Select the method > default values > reset all make them default.

  • Script to move all items on each page

    I'm quite new to scripting, but I'm trying to write a script to select all elements on each page and shift the X values and are specified. The script works but only seems to move 1 point on each page, I know it's probably something really simple and I was wondering if anyone here could point me in the right direction?

    This causes the:

    for (a = myPages-1; a>=0;
    a--)
    {
    app.activeDocument.pages[a].pageItems.everyItem().select();
    app.selection[0].move (null, positions)
    }
    

    You are 'select' objects but only moving one...

    In normal circumstances, you should use 'select' in a script - you can 'target' any object immediately. And even if you did have something selected, all objects will move again! Change for this, I have not tried, but it should make it work:

    for (a=myPages-1; a>=0; a--)
    {
      app.activeDocument.pages[a].pageItems.everyItem().move (null, positions);
    }
    
  • How to select all unused images or pages?

    Is there a command in dreamweaver or a way so he can select images all 'not used' in the folder of images or pages not linked, etc.?

    Buddy

    > Is there a command in dreamweaver or a way to select all "not used".
    > images in the folder of images or pages not linked, etc.?

    do a check of link at the level of the site and fix all the broken links.

    Then, change the drop down menu in the Panel of results for "orphaned files".

    those are files that dw can't find any of the regular routes.
    Note there maybe js or flash or scripted links to them - be careful.

  • KitKat reset button does not work, how to reset when I can't get past the first screen?

    I want to do a factory on my Acer Android tablet kitkat rest, I can't go past the screen lock, even if the pin code is correct.  I have tried a paper clip in the hole reset several times, but nothing happened.  Nothing has changed.

    I read some comments and opens to the rear to remove the battery, but there is no way that I can do.  Something has been said about pulling the gray wire a little bit, but I'm suspicious

    All I want is for the tablet to g back to factory default.  Is there another way?

    Oh, downloaded the user manual and who do not uncompress right.  I have no file to play it's a user's guide.

    Thanks, but I watched a video on Youtube.com that showed how to hold down the sound buttons and power at the same time until the menu appears where you can choose to do a factory reset.  It worked!

    Thank you for your time.

    Taylor

  • How to clear recent items then right click on the Acrobat tab on the taskbar?

    When you right click on the Acrobat tab on the task bar, you've been given some options like the Pin this program to the taskbar, close this window, etc...

    Anyone know how to clear all recent items when you right-click on the Acrobat tab on the taskbar (see photo below)?

    "Remove from this list" option deletes only a single document at a time. Does anyone know how to remove it at once? Recent Articles that appears when you right-click on the taskbar is probably called jump list.

    Any help is very appreciated. Thank you in advance.

    BTW, just a note, defining the "Documents in recently used list:" zero is a not clear recent list as you can see in the screenshot below (via Edition == > == Preferences > Documents under categories)

    snapshot2.png

    It is a feature of Windows. You can post the question in a forum for Microsoft.

  • How to know all queries executed by users of the database?

    Hi all
    I am new to Oracle. I created a database (version 10.2) and several users in this database. I would like to know how to record in a database table all queries executed by users of the database.
    Thank you.

    I would like to know how to record in a database table all queries executed by users of the database.

    activate SQL_TRACE for each session, but such an effort cost more than any advantage gained.

  • How to delete all messages in a folder in the mail application

    I have a new Toshiba computer with a program of Windows 8. Is it possible to delete all of my junk mail at the same time?

    Original title: junk e-mail in Windows 8

    Hi Jack,

    Thanks for posting in the Microsoft Community.

    The question that you stated that you want to delete unwanted e-mails in the Mail application at the same time. We are here to help you.

    Here's what you need to do.

    a. open the folder in which you want to delete E-mails.

    b. Select one of the Emails.

    c. press the CTRL + A on the keyboard (this will select all Emails in the folder).

    d. press the clear key that will remove the selected emails.

    I hope this helps. If the problem persists or all windows related queries or questions, please get back to us. We are here to help you.

  • How to remove all items in the download under bookmark folder in the shortest time?

    I understand that all downloads from the internet and yahoo/google mail are stored in the "Download" folder I bookmarked when I want to delete. I think that if the download folder is never empty, then my mac will slow down. So I want to remove these downloads that I've seen. How can I remove all THE items in the shortest time? Deleting items, even in groups, takes a long time. Is there a method I can use so that all the items in the folder are deleted in one fell swoop?
    Thank you.
    Unguja

    Yes, it worked. Thank you very much.
    Unguja

  • How to reset all data stored on the mac and modem addresses in win 7

    It seems that my brother when he comes to get the shop computer connected to the internet and it seems that something has happened when you choose what type of network, it is for the connected modem. the thing is that since that point the wizard has not arisen more and I was unable to use the modem to whom it happened.

    When I use my home connection, I use a connection wireless or wired even and all right, but I don't know how can I reset the data stored on the internet devices mac address and dns...

    so if I would again plug into the modem that has happened this problem, he probably pop ups yet what kind of network for the device connected.

    I tried netsh reset, but nothing happened.

    greetings and thanks in advance

    PS: I use win 7 Home Basic. x 64

    Lenovo laptop

    To reset the cache of MAC addresses: netsh interface ip delete arpcache

    To reset the DNS: ipconfig/flushdns

    Edit: remember to do as an administrator. It also can not solve the problem, but it is worth it.
  • How to reset all settings

    Hi all

    GGS 11.2

    I tested setup of replication to oracle successfully mssqlserver.

    I want to repeat the Setup again because I did not understand the process.

    I want to use the same set of diagrams and tables. So I want to delete everything I've done.

    What are the steps to cancel the installation?


    On the side of sqlserver:


    How to cancel or remove:


    ADD TRANDATA HRSCHEMA. FM3

    ADD MSEXT EXTRACT, TRANLOG, BEGIN NOW

    ADD RMTTRAIL/u01/app/oracle/gg/dirdat/ms, EXTRACT of MSEXT

    In the side oracle, how do I cancel or delete:

    ADD CHECKPOINTTABLE gg_user.chkpt

    Add REPLICAT 538D, EXTTRAIL/u01/app/oracle/gg/dirdat/ms, CHECKPOINTTABLE gg_user.chkpt


    Thank you very much

    zxy

    On the side of the source you do the following:

    DELETE TRANDATA HRSCHEMA. FM3

    REMOVE THE MSEXT EXTRACT

    RMTTRAIL REMOVE/u01/app/oracle/gg/dirdat/ms

    Note that this command only deletes the references to the path specified in the checkpoint file. It does not remove trail files themselves. To delete the path, use the commands of standard operating system for the removal of the files.

    On the side of the target, you'd do these controls:

    CHECKPOINTTABLE DROP gg_user.chkpt

    REMOVE REPLICAT 538D

    Removal of the extract and Replicat will remove checkpoint files but leaves intact parameter files, so you can then re-create the groups as you wish.

    Let me know if you have any other questions.

    Best regards

    Mary

Maybe you are looking for

  • Tecra M11 - random crashes with Windows 7

    We had a Toshiba Tecra M11 Windows 7 who has a problem in which he randomly falls down, forcing the user to hard it reboot. When it crashes, the fans to the top spin, don't know if that means anything. We tried many things to fix. At first, we though

  • Harm to my credit card bills

    Harm to my credit card bills

  • Portege M750 with Windows 7 - Screen Rotation button not working not properly

    I installed new Windows 7 on a Portégé M750 and everything seems fine except the buttons on the screen to manage the features of the tablet. The only thing I really want to work is the orientation of the screen one. I looked for drivers, but can't fi

  • Weird view of Array Probe

    I just finished installing LV 2015 and started watching the news. I know that I, as we the improved appearance for billboards with a probe.  I tried and saw a strange appearance for her. Why is the table slightly shift to the left.  The left part of

  • HP MINI: problem with windows 7 starter

    I have a hp laptop and I have a problem do not see the product key for window s7 starter, mini hp, is what to do, there are cases we can problem vgeike?