How to use the checkbox to update several lines

Hi all

I'm new to apex and I have a problem now. I find this code somewhere:

BEGIN

FOR I IN 1... APEX_APPLICATION. G_F01. COUNTING LOOP

REMOVE FROM THE ASER

WHERE ID = TO_NUMBER (APEX_APPLICATION. G_F01 (I));

END LOOP;

END;

It can remove selected items, now I want to make some modifications to it.

I want to update some columns when I ticked the box. How to make this change? I mean, like this:

UPDATE ASER SET STATUS = '1' when I selected items

Can you help me? Thank you!

Hello

I don't know exactly what you want to do, but if I am guessing right then of course you want updated also based on the elements of the selected check box.


BEGIN
 FOR I IN 1 .. APEX_APPLICATION.G_F01.COUNT LOOP

   DELETE FROM ASER
  WHERE ID=TO_NUMBER(APEX_APPLICATION.G_F01(I)) ;
UPDATE APSER
SET STATUS = 1
WHERE ID=TO_NUMBER(APEX_APPLICATION.G_F01(I)) ;
   END LOOP;

  END;

But if not and you try rather to use these values to update another table after Session State is the way to go.

Kind regards

Benjamin.

Tags: Database

Similar Questions

  • How to use the checkbox to select several lines of af: table

    Hi all
    I want to use the checkbox to select several lines of af: table

    Kind regards
    Tom

    Hello

    look at this link
    http://Sameh-Nassar.blogspot.com/2009/12/use-checkbox-for-selecting-multiple.html

    Kind regards
    Felix

  • How to use the utility to update (uefi) BIOS HP

    Notebook: G62 a10em

    I downloaded the BIOS update tool from http://h10025.www1.hp.com/ewfrf/wc/softwareCategory?os=4063 & lc = on & cc = us & dlc = in & sw_lang = & product = 4226...

    and it is installed on my USB key.

    Now, how can I update my bios?

    The USB key contains now:

    BIOS

    | - Current (empty folder)

    | - New (empty folder)

    | - Previous (empty folder)

    BIOSUpdate

    -CryptRSA.efi

    -CryptRSA32.efi

    -HpBiosUpdate.efi

    -HpBiosUpdate.s09

    -HpBiosUpdate.sig

    -HpBiosUpdate32.efi

    -HpBiosUpdate32.s09

    -HpBiosUpdate32.sig

    my current version of bios is f. 08

    I did a cut above.

    After looking at the appropriate file you downloaded, it says this:

    "Prerequisites .
    -Microsoft .NET 2.0 is required. UEFI and Custom Imaging - the HP BIOS update must be run from a FAT or FAT32, partition with a volume of the "HP_TOOLS" name This Installer gives you the option to install on the hard disk (HDD) or USB. If you install on the HARD disk and the HP_TOOLS partition is not present, Setup prompts to create the HP_TOOLS partition. If you install on a USB key, Setup renames the partition on the USB in HP_TOOLS. If you use a custom image, you can create the HP_TOOLS partition manually with the type FAT32 and that the volume HP_TOOLS name. ATTENTION:-the UEFI system partition is not protected and can be removed. -Backup of the computer by using the complete PC Backup feature of Microsoft Windows Vista does not save the UEFI system partition. For these reasons, HP recommends that you place no additional data on the UEFI system partition. Because the partition is not backed up, corruption or failure of the partition will result in the loss of all data on the partition, as well as the loss of UEFI functionality. "For more information, visit: www.hp.com/go/techcenter/startup"

    There is little documentation on how to use it, but a Member here figured it out.

    http://h30434.www3.HP.com/T5/operating-systems-and-software/envy-14-system-recovery-doesn-t-work-with-latest-BIOS/m-p/328684/highlight/false#M45165

    using Windows 7:
    Just plug in the USB key and then run the SPnnnnn.exe BIOS file downloaded from the Web site drivers HP.
    Assuming that the USB is configured correctly (see below), Setup the BIOS sees the HP_TOOLS partition on the USB, copy of the BIOS and its file signature on the USB key, then run Setup winflash. The system BIOS detects the USB and the partition HP_TOOLS and the BIOS is magically updated.
    I put in place a new USB key as follows:
    1 rename the partition HP_TOOLS from the hard drive to something different like HP_TOOLSbak
    2. Plug the USB
    3. Download and run the utility to update the BIOS (not the BIOS, still) drivers HP support page.
    4. Select the option to install to a USB
    5. Select the option to create the partition HP_TOOLS
    6. The reader should now be formatted as HP_TOOLS with a record of Hewlett-Packard containing BIOS and BIOSUpdate records. The BIOS folder contains empty current, news and previous records.
    7 download and run the HP System Diagnostics (UEFI) MS drivers HP support page
    8. Select the option to install on a USB key. This will create a SystemDiags folder under the Hewlett-Packard folder
    9. Download and run the HP Notebook System BIOS update for the HP support page drivers, given that the USB is correctly tagged it will install the update of the bios on the USB drive
    10, we have to end up with a HP_TOOLS partition on the USB drive identical to the one that you removed from the hard drive.
    Once you have configured the USB drive, you can upgrade to other versions of BIOS (most recent or oldest) using this drive, as I mentioned above: just plug in the USB and then download and run the BIOS Setup program.

    Having said that I'm not sure of what you do, once you boot the USB drive.

    .

  • How to use the control quantity for several sliders in the basic settings window

    In a Webinar instructor (Chris Orwig) showed how to make multiple adjustments in the base Panel in the develop module.  Then, he showed how close the Basic module by clicking the small triangle at the top of the module.  The Basic module closed when it made a single control bar and the cursor appears instead. This move allowed the instructor set all previously defined parameters of basic module at the same time.  I tried to do.  But when I close the base module that no control bar and the slider appear.  Any suggestions why this is the case?

    I use Lightroom 5.4 and OS 10.9.2.

    Obviously, he wasn't in the base Panel, but in the adjustment brush:

    By clicking the triangle at the end of the red arrow, you get this:

    And there is your cursor effect.

    HAL

  • How to use the checkbox to display the values of booolean?

    Hi all

    I'm learning to use APEX. I built an editable report after the 'top advanced tutorials', and I use static LOVs to insert Boolean values in two columns.
    The underlying table has two columns of type VARCHAR2 (1) NOT NULL with a a check constraint, so it must contain either 'Y' or 'n'), and the static LOV requires users to only choose beetween 'Yes' and «»

    I would use checkboxes to insert this field. Is this possible? Where can I find examples / tutorials about it?

    Thank you
    Andrea

    See this:

    http://www.inside-Oracle-apex.com/checkboxes-in-tabular-forms-the-easy-way/

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    -------------------------------------------------------------------

  • How to use the same script for several buttons

    Hello

    I have just started using flash if any help would be great!

    I create a blockbuster game, I have a grid of 20 buttons and I need (individually) to turn blue on red and click double click. I managed to do it with the first using this code;

    --------------------------------------------

    var click: Boolean = false;

    BN1.addEventListener (MouseEvent.CLICK, bn1click);

    function bn1click(event:MouseEvent):void {}

    clicked = true;

    var newColorTransform:ColorTransform = bn1.transform.colorTransform;

    {if (clicked)}

    newColorTransform.color = 0 x 064258;

    }

    BN1. Transform.ColorTransform = newColorTransform;

    }

    /////////////

    BN1.doubleClickEnabled = true;

    var doubleclicked:Boolean = false;

    BN1.addEventListener (MouseEvent.DOUBLE_CLICK, bn1dclick);

    function bn1dclick(event:MouseEvent):void {}

    DoubleClicked = true;

    var newColorTransform:ColorTransform = bn1.transform.colorTransform;

    {if (clicked)}

    newColorTransform.color = 0xac1e23;

    }

    BN1. Transform.ColorTransform = newColorTransform;

    }

    --------------------------------------------

    Now, I'll have trouble doing the same thing to work for the rest of the buttons, they are each named bn2, bn3 etc. They need to work individually and stay blue/red when clicked. I tried to list them as addEventListener orders but not with not a lot of success!

    Any help would be greatly appreciated, thank you!

    Tomo

    To do this is to use arrays to follow the buttons and their properties.

    var buttonList:Array = new Array (bn1, bn2, bn3);

    var clickedList:Array = new Array();

    var doubleClickedList:Array = new Array();

    Then use a loop for to assign functions and properties for each button:

    var thisMany:int = buttonList.length; This will give you the number of items in the buttonList array

    for (var i: int = 0; i

    buttonList [i] .addEventListener (MouseEvent.CLICK, btnClick); assign the function click on each button

    buttonList [i] .addEventListener (MouseEvent.DOUBLE_CLICK, btnDClick); assign the double-click function

    clickedList.push (false);  Add a value of false for each key in this table

    doubleClickedList.push (false);

    buttonList [i] .doubleClickEnabled = true; Set the property of double-tap for each button

    }

    function btnClick(event:MouseEvent):void {}

    var thisButton:int = buttonList.indexOf (event.target);  know which button has been clicked as an element in the table

    clickedList [Ceboutonselectionnel] = true;  Change the value in the table

    var newColorTransform:ColorTransform is buttonList [Ceboutonselectionnel].transform.colorTransform;.

    {if (clickedList [thisButton])}

    newColorTransform.color = 0 x 064258;

    }

    buttonList [Ceboutonselectionnel].transform.colorTransform = newColorTransform;

    }

    function btnDClick(event:MouseEvent):void {}

    var thisButton:int = buttonList.indexOf (event.target);

    doubleClickedList [Ceboutonselectionnel] = true;

    var newColorTransform:ColorTransform is buttonList [Ceboutonselectionnel].transform.colorTransform;.

    {if (doubleClickedList [thisButton])}

    newColorTransform.color = 0xac1e23;

    }

    buttonList [Ceboutonselectionnel].transform.colorTransform = newColorTransform;

    }

    Now you can have any number of buttons, just add their instance names in the table above.

  • How to use a checkbox - Yes/No in a db update form

    Hello;
    I'm trying to use a check box on a form, I created. I need a function or not. If it is enabled, it's Yes, if not, not.

    I have it in a form that can add a "user" or to update an existing record. For now, it is throwing an error and it is for the code in the box. The following code is important for that and the error:

    page userEdit.cfm

    < name cfparam = "url. RecordID' type = 'integer' default '0' = >
    < name = "cfparam variables.ID" type = "integer" default = "#url." RecordID #">"
    < name cfparam = "variables. Default Pnom"=" ">
    < name cfparam = "variables. Default lname"=" ">
    < name = "cfparam variables.userName" default = "" > "
    < name = "cfparam variables.password" default = "" > "
    < name = "cfparam variables.email" default = "" > "
    < name = "cfparam variables.admin" default = "" > "

    < cfif url. RecordID GT 0 >
    < name cfquery = "useRec" datasource = "#APPLICATION.dataSource #" >
    SELECT user. FName, user. Lname, user.userName user.password user.email, user.admin, user.ID
    The USER
    WHERE user.ID = < cfqueryparam value = '#URL. "RecordID #" cfsqltype = "cf_sql_integer" >
    < / cfquery >

    < cfif useRec.RecordCount EQ 1 >
    < cfset variables. RecordID = useRec.ID >
    < cfset variables. Fname = useRec.Fname >
    < cfset variables. Lname = useRec.Lname >
    < cfset variables.userName = useRec.userName >
    < cfset variables.password = useRec.password >
    < cfset variables.email = useRec.email >
    < cfset variables.admin = useRec.admin >
    < / cfif >
    < / cfif >
    < head >
    ......
    < body >
    < cfoutput >
    < action = "action.cfm cfform" method = "post" > "
    < cfinput type = "hidden" name = "ID" value = "#variables.ID #" >
    ... more for the fields here...
    < cfinput type = "checkbox" name = "admin" value = "#variables.admin #" >
    ... introduce buttons here...
    < / cfform >
    < / body >

    «"" "Action page:»»"»

    < isDefined ("Form.RecordID") cfif >
    < cfquery datasource = "#APPLICATION.dataSource #" >
    UPDATE user
    User SET. Fname = < cfqueryparam cfsqltype = "cf_sql_varchar" value = "#form. ' Fname # ' >.
    user. Lname = < cfqueryparam cfsqltype = "cf_sql_varchar" value = "#form. "Lname # ' >.
    user.userName = < cfqueryparam cfsqltype = "cf_sql_varchar" value = "#form.userName #" >.
    User.Password = < cfqueryparam cfsqltype = "cf_sql_varchar" value = "#form.password #" >.
    User.email = < cfqueryparam cfsqltype = "cf_sql_varchar" value = "#form.email #" >.
    User.admin = < cfqueryparam cfsqltype = "cf_sql_varchar" value = "#form.admin #" >
    WHERE ID = < cfqueryparam value = '#form. "RecordID #" cfsqlType = "CF_SQL_INTEGER" >
    < / cfquery >
    < cflocation url = "indexUser.cfm? "RecordID = #Form.RecordID # ' addtoken ="no">
    < cfelse >
    < result cfquery = "GetNewRecord" datasource = "" #APPLICATION.dataSource # "dbtype ="ODBC">"
    INSERT INTO user
    (Fname Mname, Lname, username, password, email, admin)
    VALUES (< cfqueryparam cfsqltype = "cf_sql_varchar" value = "#form.) ' Fname # ' >.
    < cfqueryparam cfsqltype = "cf_sql_varchar" value = "#form. "Lname # ' >.
    < cfqueryparam cfsqltype = "cf_sql_varchar" value = "#form.userName #" >.
    < cfqueryparam cfsqltype = "cf_sql_varchar" value = "#form.password #" >.
    < cfqueryparam cfsqltype = "cf_sql_varchar" value = "#form.email #" >.
    < cfqueryparam cfsqltype = "cf_sql_varchar" value = "#form.admin #">) "
    < / cfquery >
    < cflocation url = "indexUser.cfm" >
    < / cfif >

    My error message:

    Run database query error. [Macromedia] [SequeLink JDBC Driver] [ODBC Socket] [Microsoft] [ODBC Microsoft Access driver] Number of query values and destination fields is not the same.
    The error occurred on line 33.

    That's the line where it is supposed to put the checkbox in the database on the action page.
    How to use a checkbox for this? The box is the admin in the db and that is set to a value of yes/no tab

    Thank you.

    CFmonger

    Quote:


    Posted by: CFmonger
    I have corrected the error, it is not that throw more. He made a new record now when I check the checkbox.

    I think we should probably with me that this box will do when it updates or adds a new record in the database scope? Fix? That is why it adds a new record instead of just checking the Yes/No in the database table.

    If it's my problem, how do I reach the present?

    This isn't your problem. The code in the OP shows the application update and insert the same if/else logic-driven.

  • How to use the platform of character even in the same scene several backgrounds without looping the platform of character chronology

    How to use the platform of character even in the same scene several backgrounds without looping chronology of the platform of character? Is it still possible without having to do the scene with another background on another file? To better explain the situation, I have a flash file which has a background and a rig which passes to another context and drilling on another layer and keyframe, but when I go back to the previous background and chronology of this drilling rig repeats, rather than leave, you are doing a new time for this platform. Do I need more than one file?

    In order to reuse assets to animate, you need to duplicate each symbol in the scene who will be the new animation. So, copy and paste the stage on a new layer, right-click on it and select double symbol, then double-click inside the symbol and select each symbol that is going to change, so that the background and the rigging and also select symbol duplicated for those files as well. usually, when I animation I do not use the main platform in the scenes, duplicate as 'Guy1_sc 1', then place it in the scene so that the path I never uses the master file. 'Guy1_sc 2' is a different file. Also if you lipsync and stalled the head separately you will need to reproduce, so, for each scene, is also unique. I hope this makes sense.

  • How to use the escape character in the update statement.

    Hi all

    I'm trying to update using the following table update statement in sql, but whenever he asks me to enter the value 'and' below sql.
    UPDATE xyz_xyz
       SET NAME = 'ABC & PQR'
     WHERE ID = (SELECT ID
                   FROM abc_abc
                  WHERE NAME = 'C & PQR');
    Please let me know how to use escape character syntax or let me know if there is no alternative.

    Thank you
    Vishwas

    If you use SQL * more then use SET DEFINE OFF.

    Also, you can do something like this

    UPDATE xyz_xyz
       SET NAME = 'ABC' ||'&' || 'PQR'
     WHERE ID = (SELECT ID
                   FROM abc_abc
                  WHERE NAME = 'C' ||'&' ||'PQR');
    
  • How to use the Group feature in insert or update

    Hai All

    How to use the Group feature in insert or update statement

    I'm generating attendance so I have a different set of timing example

    0800,1200,1230, 1700 and I need to insert data into the table that contains the intimate value min and max value for

    outtime and othere to inertval time in or out

    Pls tell me with some examples


    For example

    For INSERT

    Insert into T2 (barcode, empcode, respondent, attend_date)
    values (R2.cardn, R2.enpno, min(R2.) PtIMe), R2.pdate);


    Update

    Update dail_att set outtime = MAX (r2.ptime) where empcode = r2.enpno and barcode = r2.cardn and
    attend_date = r2.pdate;


    Here, in the place where I used to have so pls tell how to use

    Thanks and greetings

    Srikkanth.M

    Hi Srikkanth.M

    to insert:

    insert into test (dummy) values ((select max (dummy) to double));

    Update:

    Update test dummy value = (select max (dummy) to double where to test them. XXXXField = double. XXXXField);

  • How to use the upgrade of official ICS on ideapad K1?

    How to use the upgrade of official ICS on ideapad K1?

    Since the post of 'k1_ics_source_code.tar.gz' Open Source Code - IdeaPad Tablet K1 on the official web site

    I want to improve my K1 to ICS Android

    You can see this article on installing the update for the CSI agent: http://forums.lenovo.com/t5/IdeaPad-Slate-Tablets-Knowledge/Ice-Cream-Sandwich-Android-4-Vanilla/ta-...

    There are several different ICS ROMs available. You can watch this article to choose another: http://forums.lenovo.com/t5/IdeaPad-Slate-Tablets-Knowledge/IdeaPad-K1-Which-ROM-do-I-choose/ta-p/86...

  • How to use the node function call library for a function in the dll with the data SUB type

    Hi all

    I would ask for your kind help

    I am facing a problem with the call library node.

    I have a C++ (stdcall) function, which has Sub as data type

    XXXX error code (hwnd, lid, getValue, * Sub data1, * Sub data2)

    data1 and data2 types are constantly changing based on the value of 'getValue '.

    Mainly I can use the call library node several times and adapt each node according to the types of data data1, data2 and extract the values and use in the code. Here is no question. Real question is:

    My question:

    How can I use a node of library time call and make a case according to the 'getvalue', who will control the data1, data2 data type. Here I really seeking solutions.

    My tests:

    I used varaints as entry to the libray call node of the data1, data2 and selected parameters in the call libraby node as "Adapt to type. Here labview just crashed.

    I appreciate your suggestions to feedbackand.

    Thank you

    Karine

    You must allocate enough space for data1 and data2, and then pass a pointer to this space. An easy way to do this is the function to initialize table. Set the U8 type and size for the number of bytes required. Pass this array to the function as a pointer of table data.

    After the function call returns, you need to extract the data in the table. You can do it manually, but a simple approach is to use the array of bytes to a string. Then, in a housing structure, use Unflatten chain to convert the string to the correct data type. This method also converts the "endianness" which will be probably necessary; Be sure to only set all entries for unflatten correctly.

  • I use Windows 10 and use the Canon SX20 IS. How to use the function of Photo stich?

    I use Windows 10 and use the Canon SX20 IS. How to use the function of Photo stich?

    Is it possible to get the procedure to use feature stich photo?

    Will be Zoombrowser EX for windows 10 wotk?

    If any expert can guide me... that will be great.

    Hi Sat17,

    Thank you for your inquiry.

    For Windows 8 and beyond, ZoomBrowser EX has been replaced by EX. ImageBrowser

    Your software you will need to updated for Windows 10.

    You can access the software for your camera by clicking here.  Once on our site, scroll down to "Drivers and downloads", then use the drop down menu to choose "8.1 Windows" or "Windows 8.1 (x 64)".»  Your camera software has not been updated for Windows 10, but for Windows 8.1 software will run on your computer.

    To update your software, click the [Select] button to the right, then click on "How to download and install" for installation instructions.

  • How to use the license acquired from Win 7 cd to be used on my WinXP?

    Windows XP License Activation

    I have a copy of Windows XP on my PC where I tried registering online, he says that's not authentic. I bought a copy of Win7 with downgrade rights to Windows XP Pro. How to use the license acquired from Win 7 cd to be used on my WinXP? I could not afford a complete reinstallation because several drivers needed to work on my pc do not work with Win7.

    Thank you!

    Hello Emerson_1

    Microsoft does not sell Windows 7 with a downgrade to Windows XP and a valid key. You will need to provide your own key. This option is only available with OEM Windows 7 Professional systems. If you wish to continue using XP you will need 2 keys as indicated by JW.
    Windows 7 offers XP mode and you can use it if you have chosen.
  • How to use the scan on a 4215i function all in one printer

    How to use the function scan with this printer with windows 8. I did the installation but the scan function is not wwork

    You have the printer Officejet 4215 all-in-one?

    If so, then there is no complete features in the printer driver.  The printer is using the Windows printer drivers Update menu.  For more information on using the driver from Windows Update, click here.

    You have this printer connected via USB?  If so, then there is workaround methods to get the printer to scan, as the old software package is not available on Windows 8.  In the above linked document, scroll down to the section on how to scan with updated driver for information about how to perform these types of scans.  I hope this helps.

Maybe you are looking for

  • How to change the default printer in Thunderbird

    I have access to several printers that I use in different places. I have to manually change the choice of printer with each e-mail letter I want to print when I change my location when you use thunderbird. I already changed the default printer in my

  • G570 is in charge but wont power on

    I noticed this morning that my G570 charge port had been "pushed" too deeply in the housing of the AC adapter to reach it. I opened the case, put the port in the right place and used a little bit of hot glue to prevent it from coming off again. When

  • UK 3 G Xoom missing film editing app...

    This will be in the 3.1 update or not? We were told it would be weeks and now with the update deployment we have yet confirmation. If it is not included can put you on the download site so that we can add it manually. Its on the WiFi Xoom and may not

  • load via the script use

    Hello How can I charge a use (*.uri) via the script? Check the plug current if the plug-in is already loaded? Greetings, Martin

  • Drivers for a downgrade of g6 for windows 7 x 64

    Hello. I am doing a downgrade on a computer hp laptop pavilion g6 2241sa for my friend of windows 8 for windos 7 64 x. The operating system is installed, but there are some missing drivers, which I can't find online. Also specific ports are not runni