clear all items except one

Hello all,.

Can someone tell me how can I create a process that erases all the elements of a page except one Singel. I don't want a list of all the items on the process. Thanks in advance.

I use Apex V4



Zeng

What is

DECLARE
  lc_item_name VARCHAR2 := ''; --Name of the Item
  lc_item_value VARCHAR2;
BEGIN
  --Get the Value of Special Item from Session
  lc_item_value := v(lc_item_name);
  --Clear the Page Cache
  APEX_UTIL.CLEAR_PAGE_CACHE (p_page => );  --Use the page whose cache has to be cleared

  --Set the session state of the item once again
  APEX_UTIL.SET_SESSION_STATE (p_name     => lc_item_name
                                                   ,p_value      => lc_item_value
                                                   );

END;

Alternatively, if the same thing using a branch that clears the cache of the page and in the section of item value, specify the name of the item in the to and from fields.

Tags: Database

Similar Questions

  • [basiljs] remove all pages except one

    In a script, I create pages, export to PDF, remove pages and then create a new etc.

    Right now I use this:

    [code]

    for (var j = b.pageCount (); j > 1; j-) {}

    b.removePage (j);

    }

    [/ code]

    But it's really slow. I think that indesign made many calculation after deleting a page (deadline: link textfields) so it would be more efficient to remove all pages at once.

    Now my question is how do?

    I tested and if I delete about 5500 empty pages with the script it takes about 8 minutes.

    If I select all in indesign, and then delete it takes about 10 seconds.

    Another way to speed up a litle is to erase all the content. It will take a long time but probably a bit faster.

    Thing is that I have

    b.Clear (b.doc ());

    but this removes the master page as well and I need to keep the master page.

    In short, how to remove all pages (except one since indesign needs a single page) at the same time?

    Hello

    I will remove a lot of pages in indesign with

    • Use documentPreferences.pagesPerDocument (faster)
    • use while loop or for
    • Close doc without saving changes, and then open again. (in some cases)

    Here's the test code, run with old Macbook Air + CS5 + OSX10.7

    var pp = function (args) {
      $.writeln(args);
    }
    
    var remove_all_pages_use_pref = function (doc) {
      pp("start deleting (use preferences)");
      $.hiresTimer;
      doc.documentPreferences.pagesPerDocument = 1;
      pp("end deleting");
      pp($.hiresTimer);
    }
    
    var remove_all_pages_use_loop = function (doc) {
      var i = doc.pages.length;
      pp("start deleting (while --)");
      $.hiresTimer;
    
      while (i--) {
        if (i==1) {break;}
        doc.pages[i].remove();
      }
      pp("end deleting");
      pp($.hiresTimer);
    }
    
    function main() {
      var doc = app.documents.add();
      $.hiresTimer;
      doc.documentPreferences.pagesPerDocument = 5500;
      pp('# create 5500 pages');
      pp($.hiresTimer);
      var indd = new File("~/Desktop/5500.indd");
      doc.save(indd);
    
      pp("------------");
      remove_all_pages_use_pref(doc);
      doc.close(SaveOptions.NO);
    
      pp("------------");
      pp("# try another way");
      var doc2 = app.open(indd);
      remove_all_pages_use_loop(doc2);
      doc2.close(SaveOptions.NO);
    }
    main();
    

    result

    # create 5500 pages
    30395026
    ------------
    start deleting (use preferences)
    end deleting
    28215999
    ------------
    # try another way
    start deleting (while --)
    end deleting
    268641063
    

    Thank you

    mg

  • How to properly temporarily disable all channels except one in the multichannel PID control loop?

    Hi all

    Help me please to solve the problem. How to correctly temporarily disable/enable all channels except one in the multichannel PID control loop?

    Thanks in advance,

    Oleg

    Hi Oleg,

    the entry "Car?" of the AdvancedPID is a table – as well as MS and pv entries.

    So what's the problem say - / allowing for a control (aka of entry) instead of all loop?

  • Computer connects to the Internet on all networks, except one

    A few days ago my computer stopped at random to connect to the internet via an Ethernet cable in my apartment.  It works very well, continuously for more than a year.  I first thought the network was down, but to verify ports three separate wall in our apartment (including the one in question) computer of my roommate and his computer connected perfectly.

    My computer can still connect to other networks (different buildings) both via radio and connected via Ethernet, if this isn't a hardware problem.  Currently, we have a wireless router configuration in our apartment that my computer can connect to.  For some reason when I am connected to the network via an Ethernet cable, the computer cannot access the internet.
    When connected, the State jumps back between "Internet access" and "no Internet access.  I tried to ping www.google.com and several other IPs known without success.  Works fine when I go wireless.
    I tried the following, without success:
    Reinstalled drivers for network cards
    Reset the network settings
    Reset Windows sockets
    Enabled IPv4 and IPv6
    Add favorite DNS servers (google and a few others)
    Restart
    System restore
    If anyone has any ideas, I can provide more information, if it helps...
    Thank you

    The problem was somewhat resolved.  When the connection to the Local network has been filled with the wireless network connection, the Internet took over.  I unplugged the router wireless and internet still works, so I'll consider it a success so far.

  • [BUG]? SelectOneChoice ValueChangeListener works for all elements except one

    Hello


    I have a SelectOneChoice that displays a warning in different languages.

    I have a LOV to select and an input field to display the warning.

    Everything works to display the following warning language except for the first choice in the SelectOneChoice.

    Here is the method in my bean
        public void languageSelectOne_valueChanged(ValueChangeEvent valueChangeEvent)
        {
         //Update the model
         this.setValueToEL("#{bindings.PageLanguage.inputValue}",
                     valueChangeEvent.getNewValue()); 
         log.info("Selected Value: " +
               JSFUtils.resolveExpression("#{bindings.PageLanguage.attributeValue}"));
         log.info("Display Value: " +
               JSFUtils.resolveExpression("#{bindings.PageLanguage.selectedValue ne ' ' ? bindings.PageLanguage.selectedValue.attributeValues[0] : ''}"));
    
         BindingContainer bindings = ADFUtils.getBindingContainer();
         DCIteratorBinding iter =
                 (DCIteratorBinding) bindings.get("DisclaimerIterator");
         ViewObject disclaimerVo = iter.getViewObject();
         Integer langChosen =
                 Integer.parseInt((String) JSFUtils.resolveExpression("#{bindings.PageLanguage.attributeValue}"));
         Object[] keys = new Object[1];
         keys[0] = langChosen;
         Row[] disclaimerRow = disclaimerVo.findByKey(new Key(keys), -1);
         log.info("Rows returned: " + disclaimerRow.length);
         BlobDomain languageText =
                 (BlobDomain) disclaimerRow[0].getAttribute("PageText");
         log.info("Page Text length: " + languageText.getLength());
         try
         {
             log.info(new String(languageText.getBytes(1,
                                        (int) languageText.getLength()),
                        "UTF-8"));
             this.getDisclaimerText().setValue(new String(
                                  languageText.getBytes
                                  (1,
                                  (int) languageText.getLength()
                                   ),"UTF-8"));
             this.getLangChoice().setLabel((String)disclaimerRow[0].getAttribute("ChooseLanguageText"));
             this.getDisclaimerButton().setText((String) disclaimerRow[0].getAttribute("AgreeButtonText"));
         }
         catch (JboException jboe)
         {
             log.severe(jboe.getMessage());
    
         }
         catch (Exception e)
         {
             log.severe(e.getMessage());
    
         }
         AdfFacesContext.getCurrentInstance().addPartialTarget(getDisclaimerText());
         AdfFacesContext.getCurrentInstance().addPartialTarget(getLangChoice());
         AdfFacesContext.getCurrentInstance().addPartialTarget(getDisclaimerButton());
    
    
        }
    Here's the LOV
    SELECT 
        EPSS_WELCOME_PAGE.PAGE_LANGUAGE PAGE_LANGUAGE, 
        EPSS_WELCOME_PAGE.PAGE_ID PAGE_ID,
    EPSS_WELCOME_PAGE.PAGE_DEFAULT
    FROM 
        EPSS_WELCOME_PAGE
    And here is the VO
    SELECT EpssWelcomePageEO.PAGE_ID, 
           EpssWelcomePageEO.PAGE_LANGUAGE, 
           EpssWelcomePageEO.PAGE_TEXT, 
           EpssWelcomePageEO.PAGE_DEFAULT, 
           EpssWelcomePageEO.CHOOSE_LANGUAGE_TEXT, 
           EpssWelcomePageEO.AGREE_BUTTON_TEXT
    FROM EPSS_WELCOME_PAGE EpssWelcomePageEO
    ORDER BY PAGE_DEFAULT DESC, PAGE_LANGUAGE
    I have a beforePhase method that set the SelectOneChoice to the first element in the list
        // Before Phase method to set the default language in the selectOneChoice
        public void defaultSelectionOnLoad(PhaseEvent phaseEvent)
        {
         RichSelectOneChoice soc;
         soc =
           (RichSelectOneChoice) JSFUtils.findComponentInRoot("langChoice");
         if (soc != null && soc.getValue() == null)
             soc.setValue(new Integer(0));
        }
    The default language is English.

    The first time the page is rendered, the warning in English and the selectOneChoice is IN.
    I choose different languages in the list and everything works as expected. Then I try to display again the English version, and the newspaper returns a zero on the next line
             log.info(new String(languageText.getBytes(1,
                                        (int) languageText.getLength()),
                        "UTF-8"));
    Even if the length of the LOB is equal to 1475 characters

    Now if I change the ranking in my query the native language is Bulgarian.
    The warning is made correctly, switching between languages, and then re - click the first choice (Bulgarian) returns a null value for the waiver.

    The problem has something to do with the first choice in the list.

    Thanks a lot for your help.

    Kind regards
    Senecaux

    Published by: Stessy.Delcroix on June 1, 2011 14:33

    The ValueChangeListener does not fire when the value is back to the original value. It's expected behaviour (i.e. it is how the JSF engine is designed and implemented) and is not a bug. Take a look at Chris Muir comments in these threads:

    {: identifier of the thread = 1098626}
    {: identifier of the thread = 1010102}

    Dimitar

  • Connect all bookmarks except one (all turns and says connection...), why it won't work?

    My Bookmark American Express never works. The location is the same, we found by Google (https://online.americanexpress.com/myca/logon/us/action?request_type=LogonHandler & Face = en_US). I tried to rename, deletion/recreation and different locations (toolbar and files). Don't just connect. Each bookmark else I created works very well. It's so frustrating.

    When I type this link earlier, I got a page that says that "our system is not responding."

    What happens if you try to go through the home page? https://www.americanexpress.com/

  • clear the cache of full page except one

    I need to reset the whole page (clear your cache), except one. How are you? I try not to go out all the items in the list. Can you help me?

    Thank you.

    WAN

    Hello

    You can try this kind process

    DECLARE
      l_temp VARCHAR2(32000);
    BEGIN
      l_temp := :Px_YOUR_ITEM;
      APEX_UTIL.CLEAR_PAGE_CACHE ('YOUR_PAGE_NUMBER');
      :Px_YOUR_ITEM := l_temp;
    END;
    

    Replace Px_YOUR_ITEM and YOUR_PAGE_NUMBER according to your need

    BR, JAri

  • 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

  • All messages deleted, except one

    Woke up this morning to find that all SMS my phone had mysteriously been deleted, except one - and in this message, the entire thread has disappeared except for the most recent text (likely received after the removal of mass). Of course I don't have a recent backup, not even with iCloud, but the strange thing is that not even 3rd 3rd party apps such as phone rescue could find no trace of my texts.

    The only thing that I get out of the ordinary last night has been to plug my phone into my computer to charge. I deliberately didn't synchronize it with iTunes or Photos, because they make my computer run very slowly and I was watching a video at the same time.

    I had a conversation by chatting with someone from Apple support and they have been unable to find a solution to the problem - they advised me to configure iCloud to make sure things have increased support, but even then, they said there is no way for messages save on iCloud.

    This happened to anyone before?

    Hi Muggleborn,

    Thanks for posting in the communities of Support from Apple! I understand that you had a few messages disappear randomly on your iPhone. I can certainly understand your concern, because I would not lose anything in my posts or the other. I am pleased to provide you with advice here.

    The first thing I want to make sure that you have checked is the option to keep the text messages. You can check this setting by going to settings > Messages > keep Messages and make sure that it is set to never. The other 2 options 30 days and 1 year will delete messages after this time elapsed.

    If you haven't already done so, you will also need to restart your iPhone.

    Restart your iPhone, iPad or iPod touch

    How do I restart

    1. Press and hold the sleep/wake button until the Red slider appears.
    2. Drag the slider to turn off your device completely off.
    3. Once the device turns off, press and hold the sleep/wake button again until you see the Apple logo.

    Just be sure that you do not restart power mentioned in the article

    I also recommend that you backup your iPhone regularly to iTunes or to iCloud. A backup also save messages so if ever you lose information on your iPhone in the future, you can easily restore your backup. I've included some resources below that go on what is included in backups and how to get these backups going.

    On safeguards for iOS devices

    The backup of your iPhone, iPad and iPod touch

    Take care!

  • Clear recent history + cookies clears all cookies, including those on the list of exceptions - bug or feature?

    I have several sites on the list of the persons authorized to keep the cookies always (options, privacy, cookies, exceptions). When I use "clear recent history" and check the cookies, the cookies are deleted, including those on the allowed list. Maybe it's a feature rather than a bug, but I much prefer it if cookies excepted were excluded.

    This is how it works. Using clear recent history clears all specified cookies and does not exclude cookies that have an exception permit. If you want to keep a few cookies then you should avoid using CRH to clear the cookies and delete unwanted cookies in the Cookie Manager or they expire when you close Firefox. In this way you keep the cookies with an exception permit.

  • How can I delete all the email our except one

    How to delet all the email our except one

    Try the tools | Accounts show the accounts and then you can delete what you want.  If this does not help, then check out the suggestions of Fazil.

    Steve

  • I replaced my Photosmart 2570 all-in-One with Photosmart 5520. I can print all programs except

    I replaced my Photosmart 2570 all-in-One with Photosmart 5520. I can print to all programs except the HP Image Zone. It shows the right default printer. When I print a photo 4 x 6 prints only part, and it is slightly enlarged. My operating system is Windows XP. Do you need any other information? Thank you. Peggy

    Hi PeggyOlson,

    It is an older program used with your 2570. Try to download and install the new photo software from the link below.

    HP Photo Creations

    HP Photo creation FAQ

  • install hp officejet j4550 all-in-one for drivers from the Web site. all works except scan option

    all-in-one for drivers from the Web site. all works except scan option

    what OS you have... Windows 7, Vista XP? and when you try to scan it is out of the front of the printer or from the software of the PC... and when you try to analyse what is happening.

  • I use a horizontal menu of the widgets library. All right, except that I would have any of the drop-down list list stay open after selecting the top item... and remain open after the selection of a menu under item - so that the viewer knows where they are

    I use a horizontal menu of the widgets library. All right, except that I wish I had the all menu drop-down list stay open when you have selected the top element. And when you have selected a menu SUP item - so that the viewer knows where they are in the navigation. Who is? Thank you!

    Hello

    There is no native function to Muse to achieve this goal. However, if you host your site on Business Catalyst, you can take advantage of the functionality of breadcrumbs. He won't let the open drop-down list stay, but it will show customers on what page they are and that he can see that they have followed to reach the page. For more information, please visit the following link http://helpx.adobe.com/business-catalyst/partner/add-breadcrumbs.html

    Kind regards

    Aish

  • How to clear all SSL certificate exceptions?

    I want to erase all certificate exceptions, in other words, to return to the original set of SSL certificates secure by default. I found the Manager certificates and its large lists of things trust, but I don't know which of them bundled with Firefox and which of them were added by me at some point in the past. How can I do this?

    Rename or remove the file cert8.db in the profile folder to delete all intermediate certificates that Firefox has stored by visiting secure Web sites.

    Certificates roots of build-in will display as "Builtin symbolic object" and intermediate certificates stored as 'software security device.

    Rename or remove the cert_override.txt (cert_override.txt.old) file in the Firefox profile folder to remove any permanent exceptions that you have saved.

Maybe you are looking for

  • Satellite C660D-155: no admin rights

    Hi, so I got the C660D - 155 Mobile Satellite for my birthday 04/09/1993.I turned on, let him do his own thing to install windows 7, registered user and the laptop as usual. There where no problem at all at the beginning!Then my audio driver suddenly

  • Exchanges of cards SIM for the USA to Europe

    I need information on what to look for and how to swap a sim card in an iPhone 6 when traveling to Europe.  (Verizon) _ favorite carriers _ how to activate _ pre-paid (favorite) _What I have to look for. Thank you.

  • Static IP address

    A static IP address can be set using USB connectin on Officejet6600?

  • HP Pavilion dv6-1260se artist edition Entertainment Notebook PC Hard Drive Question

    Hello, I hope someone here can answer a question for me. I have a 4 year old HP Pavilion dv6-1260se artist edition Entertainment Notebook PC and the hard drive died on me. I have been trading for the replacement of the hard disk and found a 1 TB disk

  • Does anyone have an example VI for using the SendInput function in User32.dll?

    Hi all I am creating a VI that creates a click of the mouse.  I looked at the MSDN Web site and found that I need to use the SendInput function in User32.dll.  The problem is that some of the parameters for this function are nested structures.  How t