How to store values activated only in item checkbox

Hello everyone,

I created the table test6

with column lov_mng

https://Apex.Oracle.com/pls/Apex/f?p=76604:586:20647043799264:

name of user-test

password-test

WORKSPACE:-REEMATEST

can someone give me little idea

for example I want to store in the array like this only checked checkbox values

Accounting

Search

If the two all selected

small idea, I will be much obliged to process plsql for insert

Thank you

Hi ReemaPuri,

ReemaPuri wrote:

I created the table test6

with column lov_mng

for example I want to store in the array like this only checked checkbox values

Accounting

Search

If the two all selected

small idea, I will be much obliged to process plsql for insert

If you want to insert one record for each box checked, write a PL/SQL process, as follows:

declare

  l_ckbox_arr  apex_application_global.vc_arr2;

begin

    l_ckbox_arr := apex_util.string_to_table(:P1_CKBOX_ITEM);
    for z in 1..l_ckbox_arr.count loop
      -- insert process referring checkbox value as l_ckbox_arr(z)
      insert into test ( my_column )
                values ( l_ckbox_arr(z) );
    end loop;

end;

Kind regards

Kiran

Tags: Database

Similar Questions

  • How to store values of TextField in table

    Hello

    I am trying to write a code to store values of TextField in a table. I know how to convert entire TextField. But after that, we have different integer variables. I can't understand how to store values of these whole different variables in a table by using a loop.

    public class ArrAvg {}

    Public Shared Sub main (String [] args) {}

    int arr [10] = new int [10];

    inputNumbers (arr);

    }

    void int inputNumbers (int arr [10]) {}

    int i;

    TextField field1 = new JTextField();

    TextField Field2 = new JTextField();

    Field3 TextField = new JTextField();

    String value1 = field1.getText ();

    String value2 = field2.getText ();

    String value3 = field3.getText ();

    val1 = Integer.parseInt (value1);

    val2 = Integer.parseInt (value2);

    val3 = Integer.parseInt (value3);

    for (i = 0; i < 10; ++ I) {}

    arr [i] = val1 (this should be replaced by val2 and after that by val3? I don't know how to do this)

    }

    }

    Some body please guide me.

    Zulfi.

    I have stored text field in ArrayList so i should traverse the ArrayList. But when i am converting the contents of Arraylist into integer, i am getting type mismatch despite the fact that my ArrayList is of String type.
    
    
    

    Yes - the ArrayList to string but you create an iterator for object

    Iterator itr = al.iterator (); getting iterator of arraylist to iterate through the items

    This method of "al.iterator" () returns the iterator; for your use case E-online String. See the API

    https://docs.Oracle.com/javase/8/docs/API/Java/util/ArrayList.html

    You set it to 'Iterator' which is NOT a generic, so only objects are returned.

    So get back to string.

    Create your instance of the iterator Iterator.

    Is it possible to avoid "iterator"?

    Why avoid it? Just use the appropriate iterator.

    The class has a 'size' and a method 'get (int index) '. So you can use a loop from zero to the 'size', but simply use the iterator.

  • How to store values in varrays and how to recover?

    Hi I am using d2k. I can store values in the nested tables, but I can't store it on varrays.

    declare

    Table of TYPE NOMTABLEAU IS of varchar2 (40) index directory.

    NAM NOMTABLEAU;

    Table of TYPE SACARRAY IS of varchar2 (30) index directory.

    BAG SACARRAY;

    I HAVE THE NUMBER (3): = 1;

    BEGIN

    DECLARE CURSOR TEST IS

    SELECT NAME, LOCATION OF THE SCHOOL WHERE CLASS = 10;

    BEGIN

    FOR THE VL IN THE TEST LOOP

    NAM (I): = VL.NAME;

    PLC (I): = VL. PLACE;

    I: = I + 1;

    END LOOP;

    : DISP1: = NAM (1);

    : DISP2: = NAM (2);

    : DISP3: = NAM (3);

    : DISP4: = NAM (4);

    : DISP5: = PLC (1);

    : DISP6: = PLC (2);

    : DISP7: = PLC (3);

    : DISP8: = PLC (4);

    END;

    END;

    THIS ONE WORKS, BUT I'VE TRIED USING VARRAYS BUT DOES NOT I DID.

    DECLARE

    NOMTABLEAU TYPE IS VARRAY (10) OF VARCHAR2 (40);

    SACARRAY TYPE IS VARRAY (10) OF VARCHAR2 (30);

    I HAVE THE NUMBER (3): = 1;

    BEGIN

    DECLARE CURSOR TEST IS

    SELECT NAME, LOCATION of SCHOOL WHERE class = '10 ';

    BEGIN

    FOR THE VL IN THE TEST LOOP

    NAM (I): = VL.NAME;

    PLC (I): = VL. PLACE;

    I: = I + 1;

    END LOOP;

    : DISP1: = NAM (1);

    : DISP2: = NAM (2);

    : DISP3: = NAM (3);

    : DISP4: = NAM (4);

    : DISP5: = PLC (1);

    : DISP6: = PLC (2);

    : DISP7: = PLC (3);

    : DISP8: = PLC (4);

    END;

    END;

    THE VARRAY METHOD DOES NOT WORK. CAN SOMEONE CAN HELP ME SOLVE THIS PROBLEM. AND ALSO I WANT TO KNOW HOW TO REMOVE THE ELEMENT OF VARRAYS. THANKS IN ADVANCE.

    Try the below

    DECLARE

    NomTableau TYPE VARRAY (10) IS OF VARCHAR2 (40);

    Sacarray TYPE VARRAY (10) IS OF VARCHAR2 (30);

    I have NUMBER: = 0;

    Nam NomTableau: = TableauNoms;

    PLC sacarray: = sacarray();

    BEGIN

    DECLARE CURSOR test IS

    SELECT name, location of school WHERE class = '10';

    BEGIN

    FOR vl IN test

    LOOP

    i: = i + 1;

    Nam. EXTEND;

    Nam (i): = VL.name;

    PLC. EXTEND;

    PLC (i): = VL.place;

    END LOOP;

    : DISP1: = nam (1);

    : DISP2: = nam (2);

    : DISP3: = nam (3);

    : DISP4: = nam (4);

    : DISP5: = plc (1);

    : DISP6: = plc (2);

    : DISP7: = plc (3);

    : DISP8: = plc (4);

    END;

    END;

    You cannot remove a single element of the VARRAY as the nested table. You can delete whole items or fine trim the VARRAY as below

    Nam. DELETE; ---> It will delete any element of VARRAY

    Nam. TRIM (1); ---> He will cut one of end of the varray--> nam. Trim (2)---> Trim 2 items

  • How to store values with more than 50 KB

    Hi all

    I need to print some records in a single invoice lines line some pre-required data, I went into the loop and they stored in a variable as


    file: = | LINE1. Line2;


    This logic works very well until the characters are less than 32 k, but beyond that, it gives an error, how can I store the values larger than this size? any advice would be very helpful.


    Thanks in advance


    Thank you
    Pratap
    declare
      myClob clob;
      myVar varchar2(1000) := rpad('x',1000,'x');
    begin
      for i in 1..100
      loop
        myClob := myClob || myVar;
      end loop;
      dbms_output.put_line('Lenght of clob is ' || length(myClob));
    end;
    
  • How to store values in excel usinglabview

    I am currently the work of digitization of the resistance of a keithley 2700 DMM. I got the value of the resistance by using the only measure VI. But what I need is whenever I have call keithley analysis based on a signal meter, should be given the value of the resistance. And all of these values should be saved as an excel file after the other, as well as the number of cycles. I enclose my current VI. Here, I had the 2 outputs required, but I couldn't import them into excel one after the other. Please help me. NB: here, I have considered a Boolean switch closed as my meter signal.

    Hi grugh,

    First of all expectations put in your loop.

    See example as reference.

    Let me know if it helps.

  • How to store values by default when a work of recognition processor creates a new document due to the separator page?

    Environment : business Capture 11.1.1.8.0

    Question : How do I keep the default values when a work of recognition processor creates a new document due to the separator page?

    Background :

    1. we have a job to import processor.

    2 failing a metadata to the sender of the email message ID value.

    3 work as expected if it is a single document, with no separator.

    4 but when it is to have several documents with a separator page, My Job of recognition is split into several documents.

    5. in the present case, I am losing by default (SenderEmailId) to all documents created by split.

    In this regard, any help is appreciated.

    MetaLink article describing almost word for Word the question shown here.

    "Sample company Capture recognition processor Script to keep the existing metadata for new Documents (Doc, ID 1918874.1).

  • How programmatically reset value of adf, select multiple checkbox in adf?

    Hi all

    I have to reset the value of the check box selection a lot by programming... I tried with resetvalue() function and giving partial triggers... but it works very well in the box Boolean adf.

    Any help woud be great-Jey

    Hello

    You can try with

    .setValue (null);

    or

    .setValue("");

    Kind regards

    BAYANNA K.

  • How to activate a button only when an item of component tilelist is selected

    Simple question, but it seems quite difficult for me. How to activate a button only when an item in a tilelist currently selected?

    For example, lets say if I have a button named button1, which is disabled by default and a tilelist component called tilelist1 that I should add in brackets the following (the enabled property of the button) code to make sure that the button is only enabled when an item in the tilelist component is currently selected but disabled when no item is selected :-

    enabled = "{}".

    Enabled = "{tilelist1. SelectedItem} ".

    that should do it, it is making an implicit comparison with null (tilelist1.selectedItem == null) which will result in a Boolean value.

    SelectedItem is null when nothing is selected, non-null when something is.

  • How to store files in iCloud drive ONLY (do not use the space on my MACBOOK hard drive?

    How to store files in iCloud drive ONLY (do not use the space on my MACBOOK hard drive?)

    I want to save the file in my iCloud account, but free space in the hard drive of my MACBOOK

    I want to save the file in my iCloud account, but free space in the hard drive of my MACBOOK

    There is no practical way to do it.

    If you do not enable iCloud Drive on your Mac, you can upload files to iCloud by car via the web interface at https://www.icloud.com

    But you can access the files from the web interface and won't icloud drive as drive in the Finder.  You cannot use the Finder to access the files. You need to download it to use.

  • How to make only one item indicator cluster in Labview

    Hi friends,

    In a cluster how to only one item as an indicator. For ex: I joined 1 file t want to do only 2 Boolean LED indication & 2 channels as controls. How to do this.

    Thank you best regards &,.

    Harish. G

    A cluster is an indicator or a control.

    However, you can disable some elements of your cluster by right click control, advanced, enable State or with a property node

    I've set up a small example

  • Mr President, how can I enter two rows at the same time with different default values that only the first line to use see?

    Mr President.

    My worm jdev is 12.2.1

    How to enter two rows at the same time with different default values that only the first line to use see?

    Suppose I have a table with four fields as below

    "DEBIT" VARCHAR2(7) , 
      "DRNAME" VARCHAR2(50),
      "CREDIT" VARCHAR2(7) , 
      "CRNAME" VARCHAR2(50),
    

    Now I want that when I click on a button (create an insert) to create the first line with the default values below

    firstrow.png

    So if I click on the button and then validate the second row with different values is also inserted on commit.

    The value of the second row are like the picture below

    tworows.png

    But the second row should be invisible. It could be achieved by adding vc in the vo.

    The difficult part in my question is therefore, to add the second row with the new default values.

    Because I already added default values in the first row.

    Now how to add second time default values.

    Concerning

    Mr President

    I change the code given by expensive Sameh Nassar and get my results.

    Thanks once again dear Sameh Nassar .

    My code to get my goal is

    First line of code is

        protected void doDML(int operation, TransactionEvent e) {    
    
            if(operation != DML_DELETE)
                 {
                     setAmount(getPurqty().multiply(getUnitpurprice()));
                 } 
    
            if (operation == DML_INSERT )
                       {
                               System.out.println("I am in Insert with vid= " + getVid());
                           insertSecondRowInDatabase(getVid(),getLineitem(),"6010010","SALES TAX PAYABLE",
                            (getPurqty().multiply(getUnitpurprice()).multiply(getStaxrate())).divide(100));      
    
                           }
    
            if(operation == DML_UPDATE)
                              {                                                    
    
                                 System.out.println("I am in Update with vid= " + getVid());
                             updateSecondRowInDatabase(getVid(),
                                 (getPurqty().multiply(getUnitpurprice()).multiply(getStaxrate())).divide(100));      
    
                              }                      
    
            super.doDML(operation, e);
        }
        private void insertSecondRowInDatabase(Object value1, Object value2, Object value3, Object value4, Object value5)
                  {
                    PreparedStatement stat = null;
                    try
                    {
                      String sql = "Insert into vdet (VID,LINEITEM,DEBIT,DRNAME,AMOUNT) values " +
                 "('" + value1 + "','" + value2 + "','" + value3 + "','" + value4 + "','" + value5 + "')";  
    
                      stat = getDBTransaction().createPreparedStatement(sql, 1);
                      stat.executeUpdate();
                    }
                    catch (Exception e)
                    {
                      e.printStackTrace();
                    }
                    finally
                    {
                      try
                      {
                        stat.close();
                      }
                      catch (Exception e)
                      {
                        e.printStackTrace();
                      }
                    }
                  }  
    
                  private void updateSecondRowInDatabase(Object value1, Object value5)
                  {
                    PreparedStatement stat = null;
                    try
                    {
                      String sql = "update vdet set  AMOUNT='"+ value5+"' where VID='" + value1 + "'";                     
    
                      stat = getDBTransaction().createPreparedStatement(sql, 1);  
    
                      stat.executeUpdate();
                    }
                    catch (Exception e)
                    {
                      e.printStackTrace();
                    }
                    finally
                    {
                      try
                      {
                        stat.close();
                      }
                      catch (Exception e)
                      {
                        e.printStackTrace();
                      }
                    }                  
    
                  }
    

    Second line code is inside a bean method

        public void addNewPurchaseVoucher(ActionEvent actionEvent) {
            // Add event code here...
    
            BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();
                   DCIteratorBinding dciter = (DCIteratorBinding) bindings.get("VoucherView1Iterator");
                   RowSetIterator rsi = dciter.getRowSetIterator();
                   Row lastRow = rsi.last();
                   int lastRowIndex = rsi.getRangeIndexOf(lastRow);
                   Row newRow = rsi.createRow();
                   newRow.setNewRowState(Row.STATUS_NEW);
                   rsi.insertRowAtRangeIndex(lastRowIndex +1, newRow);
                   rsi.setCurrentRow(newRow);
    
                   BindingContainer bindings1 = BindingContext.getCurrent().getCurrentBindingsEntry();
                   DCIteratorBinding dciter1 = (DCIteratorBinding) bindings1.get("VdetView1Iterator");
                   RowSetIterator rsi1 = dciter1.getRowSetIterator();
                   Row lastRow1 = rsi1.last();
                   int lastRowIndex1 = rsi1.getRangeIndexOf(lastRow1);
                   Row newRow1 = rsi1.createRow();
                   newRow1.setNewRowState(Row.STATUS_NEW);
                   rsi1.insertRowAtRangeIndex(lastRowIndex1 +1, newRow1);
                   rsi1.setCurrentRow(newRow1);
        }
    

    And final saveUpdate method is

        public void saveUpdateButton(ActionEvent actionEvent) {
            // Add event code here...
    
            BindingContainer bindingsBC = BindingContext.getCurrent().getCurrentBindingsEntry();      
    
                   OperationBinding commit = bindingsBC.getOperationBinding("Commit");
                   commit.execute(); 
    
            OperationBinding operationBinding = BindingContext.getCurrent().getCurrentBindingsEntry().getOperationBinding("Commit");
            operationBinding.execute();
            DCIteratorBinding iter = (DCIteratorBinding) BindingContext.getCurrent().getCurrentBindingsEntry().get("VdetView1Iterator");// write iterator name from pageDef.
            iter.getViewObject().executeQuery();  
    
        }
    

    Thanks for all the cooperation to obtain the desired results.

    Concerning

  • How to store the query string value in the scope of the session in webcenter spaces?

    Hello

    I want to store the query string value (which is given from URL) in the sessionScope variable. According to the value of sessionScope beacause I went some components inside my taskflow. Can someone help me how to store this value in the scope of the session. I use webcenter spaces for my application development.

    Thank you

    Ashok.

    Please see the article below

    How to pass a parameter of argument the query URL to a parameter input workflow? (Doc ID 1545808.1).

  • Hello, I got adobe photoshop elements 12 key, but I need the installation file, how can download this, I can only find items 14 download

    Hello, I got adobe photoshop elements 12 key, but I need the installation file, how can download this, I can only find items 14 download

    Available downloadable Setup files:

    Download and installation help links Adobe

    Help download and installation to Prodesigntools links can be found on the most linked pages.  They are essential; especially steps 1, 2 and 3.  If you click on a link that does not have these listed steps, open a second window by using the link to Lightroom 3 to see these "important Instructions".

  • How to store that value in the variable date?

    Hi Sir,

    I have a request that is


    Select to_char (date ' 1900 - 01 - 01 + 1439 /(24*60), ' DD/MM/YYYY HH24:MI:ss') twice;



    When I run this query, I get this value: 01/01/1900 23:59
    and this value, I'm inserting in a variable that has the date data type.
    Here I put like this:



    v_nshiftmax: = to_char (date ' 1900 - 01 - 01 + 1439 /(24*60), "DD/MM/YYYY HH24:MI:SS");

    While storing get error: not one month valid

    How to store this variable?

    Thank you

    If you are holdiing to variable date why you switch to to_char?

    Just use to_date('1900-01-01','yyyy-mm-dd') + /(24*60) 1439

  • How to judge whether a data store is read only or not?

    Hello

    VI client, when I select the 'Mounting NFS read-only' checkbox during the addition of a storage, the storage will not be listed during VM creation.  I checked the MOB and the SDK web page, but have not found how to judge whether a data store is read only or not.

    Do me a favor please.

    -Akityou

    You should be able to get this information out of the HostMountInfo under mode http://www.vmware.com/support/developer/vc-sdk/visdk25pubs/ReferenceGuide/vim.host.MountInfo.html

    =========================================================================

    William Lam

    VMware vExpert 2009

    Scripts for VMware ESX/ESXi and resources at: http://engineering.ucsb.edu/~duonglt/vmware/

    repository scripts vGhetto

    http://Twitter.com/lamw

    If you find this information useful, please give points to "correct" or "useful".

Maybe you are looking for