Remove the table if the value not in APEX_APPLICATION. G_f01?

Hello again!

I have an apex_application.g_f01 that contains the values in the boxes, now I want apex to remove rows from the table that contains values that are not present in the G_f01 (what are disabled) on submit.

I can't understand the sql code to do this, could someone give an example?

This can be a simple thing, but I'm getting confused a lot with sql, maybe because I just php and java.

EgaSega wrote:

I have an apex_application.g_f01 that contains the values in the boxes, now I want apex to remove rows from the table that contains values that are not present in the G_f01 (what are disabled) on submit.

I can't understand the sql code to do this, could someone give an example?

This can be a simple thing, but I'm getting confused a lot with sql, maybe because I just php and java.

One possibility would be to create a collection of APEX containing key checked values and use that as the source of the lines to be kept in the SQL delete. Something like:

begin

  apex_collection.create_or_truncate_collection('CHECKED_VALUES');

  for i in 1..apex_application.g_f01.count
  loop
    apex_collection.add_member(
        p_collection_name => 'CHECKED_VALUES'
      , p_c001 => apex_application.g_f01(i));
  end loop;

  delete from t
  where not exists (select
                       null
                   from
                        apex_collections c
                   where
                       collection_name = 'CHECKED_VALUES'
                   and c.c001 = t.id);

end;

Tags: Database

Similar Questions

  • Manual search - when start us research by removing the value manally, same results for future research in the next page.

    Hi guys OAF.

    Created a page of manual search with several buttons below. After entering search criteria and click on the first button, it shows the records in a separate page where I perform trade operations. The second page, I have a "back to the main search" link that takes me to the first page of search.

    Now, if I remove the value of any field of text input by clicking X mark the end of the field, or pressing the button remove the key board and try searching again, same values are to come in the next page as if I did not remove the value.

    Data on the next page is mainly with the help of setWhereClause. And here is the code I wrote.

    public void issueQuery (String OrderNum)

    {

    If ((OrderNum! = null) & & (!("".)) Equals (OrderNum.Trim ()))

    {

    setWhereClause ("ORDER_NUMBER =: 1");

    setWhereClauseParams (null); Always reset

    setWhereClauseParam (0, OrderNum);

    }

    executeQuery();

    }

    Please advice, what has gone wrong or its something Oracle behavior?

    Thank you

    Bideau

    I got the answer, it is resolved after the setwhereclause reset each time.

  • How to remove the value of the XML attribute in the Indesign file with javascript

    Hi all

    How to remove the value of the XML attribute in the Indesign file.

    1.jpg

    What error is this?

    in any case try this as well (one another),

    var myDoc = app.activeDocument;
    attrDelete(myDoc);
    function attrDelete(elm)
    {
        for (var i = 0; i < elm.xmlElements.length; i++)
        {
            try{
                for(j=0; j
    

    Vandy

  • Drives hot swap in BIOS not safe to remove the value

    I have a Doc Icy as the docks of the internal disks in a Bay with two power switches front of 5.25 inch front - one for the 2.5 inches dock bay and one for the Bay dock of 3.5 inches.  In the last inserted here readers as well as internal hard drives would come in safe to delete list.  Apparently a Win 7 update fixed the internal drives appear.  Now, even if for the ICY Doc SATA ports are on hot swap in the BIOS, they still do not appear in the delete list safe, which means that the superior policies drive removable section don't appear in the tab Device Manager strategies as they did and still do for USB drives.

    I found here in the forum a few lines of registry added to disable records showing in safe to delete the list, so I wonder if there are a few lines or a tweak for these lines to get two ICY DOC SATA ports to appear in Safe to remove - or y at - it another way?

    Here's the instructions to Remove readers of safe to remove from the other post by Bobby Mikkelson.

    1. click on Start

    2. in the search programs and files box, type the command

    3. under programs, click command prompt , click run as administrator

    If you are prompted for an administrator password or a confirmation, type the password or click on continue.

    4. copy and paste or type each of the commands at the command prompt and press enter after each command

    Reg.exe add "HKLM\SYSTEM\CurrentControlSet\Services\msahci\Controller0\Channel0" / f/v TreatAsInternalPort /t REG_DWORD /d 0x00000001

    Reg.exe add "HKLM\SYSTEM\CurrentControlSet\Services\msahci\Controller0\Channel1" / f/v TreatAsInternalPort /t REG_DWORD /d 0x00000001

    5 restart your computer to activate the registry changes

    Note: There may be some trial and error to determine the appropriate ports (also called "channels").

    The number of channel indicated in the device maybe Manager may not match the channel number in the registry, you may need to set the value and check the desired effect.

    There is currently no entries like this in HKLM\SYSTEM\CurrentControlSet\Services\msahci\

    In case it is not clear - I WANT that drives DOC ICY appears in safe to remove.

    Win 7 Pro 64-bit

    ASUS Z87.-A.

    All drivers and updates to the operating system to date.

    Hello

    Your question is better suited for TechNet where experts on this platform will help you better, please post your request in the Sub forum:

    https://social.technet.Microsoft.com/forums/en-us/home

    Hope this information helps, for assistance please answer.

  • Treatment of the values not defined forms

    I have a form with 50 frames.

    Sometimes when my users submit it form, if the field value is equal to zero, completely remove the input area.

    For example, when the form is submitted, and they get to the processing page. the value of form field for the field they deleted is «»

    This causes problems as the value of the form is "", where it should be 0.00

    I'm CFPARAM to the processing page. But I guess that, given that the value is set ("'") they are not used.

    Is there a way for treatment in the form of code page so that if one of the fields of the form are "" they have by default a value of 0.00?

    Pat

    You could do it in a loop and | or a function.

    I.E.

    
         
              
         
    
    

    You may need to change this there are some areas that you don't want to test this way.

  • How to remove the message "not using current Version" boring?

    For months, my Firefox home page included a note that I do not have the latest version and provides a link to update. When I use the link I said "Congratulations, you are using the latest version." Adding insult to injury, there are not 20 minutes, I downloaded 27, and the message is still there. Almost the end of the world, but at this point, it is very annoying. How to remove the message?

    The old page of Google-Firefox has not changed since Firefox 4 is released, please disregard the information updated on this page.

  • Popup LOV selected the value not in session state

    I have a pop LOV element on a page in my application.  Once the item has been selected in the list presented, I would like to use as part of a select statement.  Select statement failed.  It turns out that the value I want the popup THAT LOV is not being saved in session state, so of course the select statement fails.  I determine this by clicking on the session menu item in the developer bar - the item itself presents itself, but the value is empty.

    What would cause a popup LOV value choice not finish by in session state, and how do I make sure he gets there?

    Thank you!

    If you need the value in a SQL report, you can just set "Elements of Page to submit" in your report to your LOV element definition. Otherwise, create a dynamic fire action when your LOV is changed with a set of pl/sql null process action; then set Page elements to send to your LOV element.

    Alternatively you could do it manually with your own function/Manager javascript using the '$s' Apex API by creating a dynamic action that JavaScript is triggered then the loading of the page:

    $("#PXX_YOUR_LOV").on('change',function(){
      var getValue=$(this).val();
      $s('PXX_YOUR_LOV', getValue);
      });
    

    Changing the value in LOV only updates the HTML code, the element must be submitted to the server so that the value that will be put in session state. The gurus can explain more, but the above methods are what I use depending on the situation.

    see you soon,

    John

  • Show only the value not save to the database based on the dynamic action

    Nice day
    I have a select box with products and dynamic action that updates a single display element with the price, based on the selection of products.
    Once the selection is made and the page is submitted, I noticed that the price is not stored in the database. If I change the display
    only the value of a text box, the data is saved. This is expected behavior? If so, can I add something to the text box to make it uneditable?

    Thanks for any help you can provide.

    Version is Application Express 4.1.1.00.23

    Steve

    stmontgo wrote:
    Hello
    Thanks for your advice. I changed the STATE of SESSION SAVE Yes with the other values remains the same, as they met to your recommendations.
    When I change the value, I get the error below. It's maybe because the value is taken from a dynamic action?

    Yes. That would mean there isn't an item "view only". The value is changed by the browser.

    You might change view as textitem and set read-only by adding the ReadOnly attribute to the property attributes of HTML form elements .

  • Remove the value ASCII 0-31 of the text

    Hi all

    I am trying to create an xml using the function of xmltype and for some reason, he throws a parse error and finally I realized that it is because the data linl (Ascii character 16) escape character.

    So I want to delete the values 0 to 31 of my text ASCII before converting to XML. What is the best way to accomplish this task?

    Thank you
    VJ

    Go to the suggestion of Damorgan, you could do something like this:

    Connected to Oracle Database 11g Enterprise Edition Release 11.2.0.1.0
    Connected as FSITJA
    
    SQL>
    SQL> with tab as (
      2  select to_clob('ABCDEFG' || chr(23) || chr(15) || 'HIJKL') x from dual)
      3  -- end of sample data
      4  select regexp_replace(x, '[' || chr(1) || '-' || chr(31) || ']') replaced_clob
      5    from tab;
    
    REPLACED_CLOB
    --------------------------------------------------------------------------------
    ABCDEFGHIJKL
    
    SQL> 
    

    The only thing is that if your CLOB is greater than 32 k it will be truncated, you may need to browse its length or something to that effect.

  • How to remove the value of score on scorm?

    I have downloaded captivate 4 scorm 127 to moodle and had the score value, although this is not a quiz, how to remove it?

    moodle.png

    Hello

    Take a look at this thread, I hope that you find the answers here.

    See you soon!

    BR\\

    -Miguel

  • BlackBerry smartphone how to remove the icon, not hide it.

    Is it possible to delete an icon rather then just hide it. I just uninstall facebook and you want to get rid of the icon for good. because I heard that they pop up when change you the theme. Is this possible?

    Thank you

    KN

    If we are unable to remove it, so maybe what I'm doing will help you. I created a plus for all the icons I don't no need and put it in there. It cleans my screen and I always know where are the icons.

    Although this is not what you want, I hope this can help! I will do a new search to see if I can find anything about this.

    Let me know if I can provide some help!

  • How to remove the software not Apple from my mac?

    I downloaded Facebook Messenger, not realizing that Apple does not allow you to open the software of third parties for security reasons.  How to uninstall the program, when rejecting in the basket of yields the message "cannot delete"?

    In fact, you can open it if you wish: control simply click on its ' / Setup. Or, you can temporarily disable the Gatekeeper by going to System Preferences > Security & Privacy > General > click on the padlock at the bottom, enter your password and change the "allow applications...". "anywhere. Make sure that you re-enable the right setting it when finished with the download - this is part of what secures your Mac!

  • How to remove the group not mounted disc ASM

    SQL > select dg.name AS diskgroup, SUBSTR (d.name, 1, 16) AS asmdisk, SUBSTR(dg.compatibility,1,12) AS asm_compat, SUBSTR (dg.database_compatibility, 1, 12) AS db_compat
    2 from V$ ASM_DISKGROUP dg, v$ asm_disk d
    3 where dg.group_number = d.group_number;

    DISKGROUP ASMDISK ASM_COMPAT DB_COMPAT
    ------------------------------ ---------------- ------------ ------------
    MDMDG3 0.0.0.0.0 0.0.0.0.0
    MDMDG3 0.0.0.0.0 0.0.0.0.0
    MDMDG1 MDMDISK1 11.2.0.0.0 10.1.0.0.0
    MDMDG2 MDMDISK2 11.2.0.0.0 10.1.0.0.0


    SQL > drop diskgroup MDMDG3
    2;
    drop diskgroup MDMDG3
    *
    ERROR on line 1:
    ORA-15039: diskgroup not to fell
    ORA-15001: diskgroup 'MDMDG3' does not exist or is not mounted

    Unfortunately the documentation for the VERSION WITHOUT databases and operating systems WITHOUT NAME is very poor. In the case of ASM fortunately only 10gRx and 11gRx is possible.

    So in the case of 11 g use the FORCE option:

    http://download.Oracle.com/docs/CD/B28359_01/server.111/b31107/asmdiskgrps.htm#i1020539

    Otherwise read on MOS:

    How to delete and re-create ASM Diskgroup [ID 563048.1]

    Werner

    Due to the 11.2.0.0.0, it looks like 11 GR 2.

    Edited by: oradba the 10.03.2011 16:12

  • How can I remove the tabs not closed.

    How can I close the tabs I have open but never had to close.

    To the right of the address bar, there is a flag with the number of open tabs. Touch it and see a list of all the tabs. Tap the three dots in the upper right and choose "close all tabs".

  • PowerCLI - help to remove the values of a variable or an array?

    Hello

    If I have a variable with a list of machines in them or a table, how to remove items that contain certain words.
    For example

    $vms = (get - VM)

    or

    $vmarry = @(Get-VM)

    I would like to delete all VMs for example containing "ZZ1" for example.  I tried $vms = $vms | where $vms.name - notcontains "ZZ1.

    Basically trying to exclude all but machine names that include ZZ1?

    Any help would be greatly appreciated.

    Thank you

    Fantastic! Thanks LucD, I wasn't aware of notmatch, thank you for your help.

Maybe you are looking for

  • How can I disable the music app on the iphone lock screen

    The music app appears as an icon on the screen lock on iphone AND occasionally rather than the lock screen wallpaper, a music & the album cover controls appear on it. If I wanted the album cover on my lock screen, I would choose it as wallpaper. Plea

  • Ranging from network WiFi problem

    My current installation (works perfectly!) is: -Airport Extreme (connected to a MacMini Server OSX) v Airport Express (WiFi connection to the EPA as an extension of network) Various devices are connected, air-conditioned and equipped with DHCP (Mac c

  • HP Laserjet MFP M225dw: Mac can't see MFP HP Laserjet 225w

    My Mac Airbook (Yosemite, worm 10.10.3) worked very well with my HP printer MFP M225DW until about two weeks ago. It's all about my wireless network, and everything worked fine for the last year. I not made any changes to the printer, computer, or yo

  • Red Exclamtion sign on my icons

    Why do each of my one word document icons exclamation red on the bottom?

  • Flow 11: 11 wake model install Windows 10

    Before you download and install the upgrade to win 10 that I want to know how much space is left in my 32 GB of storage? Can what problems I expect due to the slower CPU in this unit in the computers of size? Data flow model real # is RTL8723BE