Select multiple lines in the double table

It is possible to select several rows in double table uses a single select statement.

for example, I want to

column_name
---------------------
1
2
3
4

Published by: vidya.ramachandra on December 14, 2009 08:24

Use PLUG IN and LEVEL

SQL> select level
  2  from   dual
  3  connect by level <= 10;

     LEVEL
----------
         1
         2
         3
         4
         5
         6
         7
         8
         9
        10

Edit
And: Welcome to the forum ;)

Published by: hoek on December 14, 2009 17:29

Tags: Database

Similar Questions

  • view multiple lines in the advanced table

    Hi all

    I have a requirement. I created advancedtable. When the page loads, to display 4 rows at a time. Can anyone please help how to achieve this req

    Kind regards
    Murali

    Hello

    Write the code below in AM that will create 5 blank lines in the advanced table.

    xxVOImpl voImpl = getxxLineVO1();
    voImpl.setWhereClause ("1 = 2");
    voImpl.executeQuery ();
    for (int i = 1; i)<=5>
    {
    Line = voImpl.createRow ();
    voImpl.insertRow (row);
    row.setNewRowState (Row.STATUS_INITIALIZED);
    row.setAttribute ("column1", i);
    row.setAttribute ("column2", "XYZ");
    }

    Kind regards
    Mary

  • Submitting a form by creating multiple lines in the DB table

    Hi all

    I created a new Apex application and have created a table with columns - USER_ID, ADDRESS, TELEPHONE, CREATEDON etc.

    I want to read the USER_ID of the user and complete this field on the form and fill in the CREATEDON field with the date system. These two fields are hidden on the form.

    Now, when the user fills his address and phone on the form and click on send, 3 identical rows are inserted into the DB table. The values of user and date system are set correctly.

    To set the UserID field, I inserted a $APP_USER. in the default value of the form section. I am not able to understand why the Apex is to insert several lines even when you click the submit button once.

    Help, please.

    The problem is solved now. I noticed that add default values for the form fields added process duplicate. That's why the form has been processed three times. Remove the additional process solved the problem.

  • How to insert multiple lines to the DB table

    I create processes in BPM Studio 10 g.

    I write below the code snippet to insert data in the database.
    However, it does not work.

    In the flow of the screen, the user can key in several rows of data. I try to add the to_char (element.purpose), but the Studio does not allow me to do.

    I think the code is wrong, but I don't know how to change it.

    ----------------code in PBL------------------------------------------------------------------------------
    for each item in BPMObject.group1
    do

    Insert in DBM. SOADEMO. SZ_TABLE (id, amount, purpose, result)
    values (element.id, element.amount, element.purpose, element.result)

    end

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

    ID, amount: decimal
    Purpose, result: String

    DBM: Module
    A group is under a BPMObject but not inherit a table.

    Hello

    It seems that you do not use a variable in the statement "for each.

    Right now you have:

    for each item in BPMObject.group1...

    You can add a new instance variable called 'bpmObject' which is of the type "BPMObject". You must use this variable in the job call the interactive component fills the table of the group. Then, you would change your logic to reflect this change by making it to read:

    for each item in bpmObject.group1...

    Hope this helps,
    Dan

  • Restore the value of the selected line in the editable Table.

    Hello, I use Jdeveloper 11.1.2.1.0.

    My problem is:
    1. Select a line in the editable table.
    2. change the value inside elements of the af:inputText of columns.
    3. tap on restore.
    4. the values of the selected line remains the same.

    If I select another line, before the restore, the restore will work as expected.

    I want to when you press the button cancel the values of the selected row to be rollback-ed as well.

    Set the immediate on all the inputTextFields in the table and it worked.

    Thank you.

  • How to add multiple lines when the button is clicked

    How to add multiple lines when the click on button now is just add a row .plz give me idea how... waiting for answer

    / public final class screen extends MyScreen
    {
    /**
    * Creates a new object of MyScreen
    */
    ObjectChoiceField obj1 obj2, obj3, obj4.
    Table of String() = {'101 ', ' 102'};
    String of shadow [] = {"Shade1", "Shade2"};
    Rolls of string [] = {'101 ', ' 102'};
    String cutting [] = {"100-150", "150-200"};
    Chain of selectedindex1, selectedindex2, selectedindex3, selectedindex4;
    LabelField lbl1 lbl2, lbl3, lbl4;
        
    GFM LinedGridFieldManager;
    HFM HorizontalFieldManager, hfm1, hfm2 hfm3;
    VerticalFieldManager vfmMain;
        
    public MyScreen()
    {
        
    Set the displayed title of the screen
    hfm1 = new HorizontalFieldManager (HorizontalFieldManager.NO_VERTICAL_SCROLL |) HorizontalFieldManager.NO_VERTICAL_SCROLLBAR);
    hfm2 = new HorizontalFieldManager (HorizontalFieldManager.NO_VERTICAL_SCROLL |) HorizontalFieldManager.NO_VERTICAL_SCROLLBAR);
    hfm3 = new HorizontalFieldManager (HorizontalFieldManager.NO_VERTICAL_SCROLL |) HorizontalFieldManager.NO_VERTICAL_SCROLLBAR);
    HFM = new HorizontalFieldManager (HorizontalFieldManager.FIELD_RIGHT);
    vfmMain = new VerticalFieldManager (Manager.NO_VERTICAL_SCROLL |) Manager.NO_HORIZONTAL_SCROLLBAR);
            
    obj1 = new ObjectChoiceField ("", graph, 0, FIELD_LEFT);
    obj2 = new ObjectChoiceField ("", blind, 0, FIELD_LEFT);
    Obj3 = new ObjectChoiceField ("", rolls, 0, FIELD_LEFT);
    Obj4 = new ObjectChoiceField ("", cuts, 0, FIELD_LEFT);
            
    LBL1 = new LabelField("");
    LBL2 = new LabelField("");
    lbl3 = new LabelField("");
    lbl4 = new LabelField("");
            
    ButtonField btnAdd = new ButtonField ("ADD", FIELD_RIGHT);
            
    GFM = new LinedGridFieldManager (4, LinedGridFieldManager.VERTICAL_SCROLL);
            
    hfm1.setMargin (20, 0, 10, 0);
    hfm1. Add (new LabelField ("Chart"));
    hfm1. Add (obj1);
    hfm1. Add (new LabelField ("Shade"));
    hfm1. Add (obj2);
            
    hfm2. Add (new LabelField ("Rolls"));
    hfm2. Add (Obj3);
    hfm2. Add (new LabelField ("Cuts"));
    hfm2. Add (Obj4);
    HFM. Add (btnAdd);
            
    GFM. Add (new LabelField ("Chart"));
    GFM. Add (new LabelField ("Shade"));
    GFM. Add (new LabelField ("Rolls"));
    GFM. Add (new LabelField ("Cuts"));
            
    vfmMain.add (hfm1);
    vfmMain.add (hfm2);
    vfmMain.add (hfm3);
    vfmMain.add (hfm);
    vfmMain.add (new SeparatorField());
    vfmMain.add (gfm);
    Add (vfmMain);
            
    btnAdd.setChangeListener (new FieldChangeListener()
    {
    ' Public Sub fieldChanged (field field, int context) {}
    TODO self-generating method stub
    selectedindex1 = chart [obj1.getSelectedIndex ()];
    selectedindex2 = shade [obj2.getSelectedIndex ()];
    selectedindex3 = rolls [obj3.getSelectedIndex ()];
    selectedindex4 = cuts [obj4.getSelectedIndex ()];
                    
    While (LBL1. GetText(). Equals("") | LBL2. GetText(). Equals("") | lbl3. GetText(). Equals("") | lbl4. GetText(). Equals(""))
    {
    LBL1. SetText (selectedindex1);
    LBL2. SetText (selectedindex2);
    lbl3. SetText (selectedindex3);
    lbl4. SetText (selectedindex4);
                    
    GFM. Add (LBL1);
    GFM. Add (LBL2);
    GFM. Add (lbl3);
    GFM. Add (lbl4);
                    
    }
    }
    });
    }
    }

    Hi Piya,

    I run your code, and according to your logic that it works correctly.

    It's adding that line only once because according to your logic that one line can be added to MDT, if you do not want to add line on each click on the button, follow these steps:

    selectedindex1 = chart [obj1.getSelectedIndex ()];
    selectedindex2 = shade [obj2.getSelectedIndex ()];
    selectedindex3 = rolls [obj3.getSelectedIndex ()];
    selectedindex4 = cuts [obj4.getSelectedIndex ()];

    Lbl1 LabelField = new LabelField("");
    Lbl2 LabelField = new LabelField("");
    LabelField lbl3 = new LabelField("");
    LabelField lbl4 = new LabelField("");
    If (LBL1. GetText(). Equals("") | LBL2. GetText(). Equals("") | lbl3. GetText(). Equals("") | lbl4. GetText(). Equals(""))
    {
    LBL1. SetText (selectedindex1);
    LBL2. SetText (selectedindex2);
    lbl3. SetText (selectedindex3);
    lbl4. SetText (selectedindex4);
                    
    GFM. Add (LBL1);
    GFM. Add (LBL2);
    GFM. Add (lbl3);
    GFM. Add (lbl4);
                    
    }

  • Selection of lines with the range Paging VO

    Hello

    JDev 11.1.2.4

    I created a VO based on an OA. I added a transitional attribute in the original Version, this attribute is named Selelected of type Boolean initialized to false (default value Expression: false-Expression of Refresh value: false). That VO appears as an af:table. The attribute is displayed as selectBooleanCheckbox. The VO is set with an access mode of range Paging and a size of 28.

    < af:selectBooleanCheckbox value = "#{row.bindings.Selected.inputValue} '"

    label = "#{bindings." VwRhdPortfolioTranWrkSend11.hints.Selected.label}.

    required = "#{bindings." VwRhdPortfolioTranWrkSend11.hints.Selected.mandatory}.

    shortDesc = "#{bindings." VwRhdPortfolioTranWrkSend11.hints.Selected.tooltip}"id ="it1' autoSubmit = 'true '.

    valueChangeListener = "#{pageFlowScope.portfolioTransferBean.onWorkSelection}" >

    < f: validator binding="#{row.bindings.Selected.validator}"/ >

    < / af:selectBooleanCheckbox >

    The table shows the 25 lines. The user clicks one of the checkbox to select a line. The valueChangeListener is called with the new value (auto submit = true) as expected. Then the user scroll down for another "page" in the table, new lines are displayed. Then it scrolls to the first page. The previous selected checkbox is reset as not selected. The selection is lost.

    Is this expected behavior? If so how do you get a selection of lines with a VO of range paging.

    Thank you

    Try to create the transitional attribute in OT instead of VO.

    See you soon

    AJ

  • making line for the current line on the expansion table

    Hello

    I use JDeveloper 11.1.1.5.0

    I have a table with facet detailstamp enabled. Each line is to have an arrow icon to expand this line.

    My problem is that line expand action seem to work independently with the selection of rows in the table. When I develop a line, it does not only rank as current. I tried with the code below to make the line of the current table, but could not do.
        public void makeCurrentRow(RowDisclosureEvent rowDisclosureEvent) {
            usersTable = (RichTable)(rowDisclosureEvent.getSource());        //usersTable is the binding of the table on the page
            RowKeySet discloseRowKeySet = usersTable.getDisclosedRowKeys();
            usersTable.setSelectedRowKeys(discloseRowKeySet);
    
            AdfFacesContext.getCurrentInstance().addPartialTarget(usersTable);
        }
    Please let me how can know I do the table row under the current name on the expansion of this line.

    Kind regards
    Fox

    I implemented a sample here http://tompeez.wordpress.com/2013/04/12/make-disclosed-row-the-current-row-when-using-a-detail-facet-of-a-table/

    Timo

  • How to select multiple cells at the same time?

    Hello

    How to select multiple cells at the same time? What is the keyboard shortcut?

    Thank you to.

    Flo, a french guy.

    Hold down the CMD key when you select the cells.

  • How to select multiple messages in the messaging application in Windows RT?

    How to select multiple messages in the messaging application in Windows RT?

    For contact:

    1) press the first mail

    (2) then drag the 2nd mail left or right a little bit.

    Repeat 2) for all other mails you want to select. You can use the same way to deselect.

    For the mouse:

    Use the ctrl and shift keys, like the Windows desktop version

    I don't know if there is a way to make the selection of the beach of 'shift' by touch only.

  • Impossible to select multiple items in the list box

    I use Acrobat 9.0 Standard.

    I added a list box in the PDF format and I want to give people the ability to select multiple items in the drop-down list. In properties, on the Options tab, I chose 'multiple choice '. But I am unable to make multiple selections despite this. It still only allows me to make a choice.

    Any ideas? Is there some other step I'm missing?

    I need help with this ASAP for my business - any suggestions are appreciated!

    Thank you

    It should do that if you hold down the SHIFT key.

  • Obtaining error APP-FND-00874: Routine FDFBDF found no line in the FND_DESCRIPTIVE_FLEXS table

    I wrote a stored procedure in our custom schema.  I have granted rights of running APPS to it.   When put in a concurrent program I get this message and it will not even start running. I'm under the it the purchase of Super user


    APP-FND-00874: Routine FDFBDF found no line in the FND_DESCRIPTIVE_FLEXS table


    So I created 2 exactly stored procedures as below but different name.  I put one in our custom schema and the other in the scheme of the APPS and I still get the same error message.


    create or replace

    PROCEDURE TESTPROCEDURE1 (errbuf OUT VARCHAR2, OUT VARCHAR2 retcode) HAVE

    BEGIN

    NULL;

    END TESTPROCEDURE1;

    Was that there was a control on behalf of the simultaneous request character and, possibly, the short name.   It was not visible until I stuck in another application.

    Thank you for all your help.

  • How to add new features to the line in the nested table advace?

    Hello

    I want to create a new line in the nested table advance.

    Help, please.

    Thank you

    Hello

    Use the code below to add a line in the nested Table.

    If (PageContext.GetParameter ("addRows")! = null) {}

    OAAdvancedTableBean sectionsTable = (OAAdvancedTableBean) webBean.findChildRecursive ("AdvTblRN");

    OAInnerDataObjectEnumerator sectionsEnum = new OAInnerDataObjectEnumerator (pageContext, sectionsTable);

    {while (sectionsEnum.hasMoreElements ())}

    Set of rows sectionsRowSet = sectionsEnum.nextElement () (set of lines);

    for (int i = 0; i)< 1;="">

    NewRow = sectionsRowSet.createRow ((OARow)) OARow;

    sectionsRowSet.insertRowAtRangeIndex (sectionsRowSet.getRowCount (), newRow);

    }

    }

    Thank you

    Dilip

  • Line in the ADF Table color

    Is it possible to alternate the color of the lines of the ADF table? Do I have to use a skin?

    Code example would be much appreciated.

    Thank you, Mitch

    Read about the line of the bands here:
    http://download.Oracle.com/docs/CD/E12839_01/apirefs.1111/e12419/tagdoc/af_table.html
    Basically, you can use the rowBandingInterval attribute.

  • Add lines to the slot table with apex_item.checkbox form?

    Hello

    I created a data manipulation process to add a line in a tabular presentation. The problem is that I have a few boxes and when I click on the button to call the procedure for adding line is not
    create one of the only text fields. Is anyway for me to create the checkboxes in this way?

    Thanks in advance!

    Hello

    Take a look on Re: Add a line in the detail table when the checkbox is enabled on a table of master report clone an entire line so it should include check boxes. Just make sure that ypu run updateInputs() or something similar to make sure that all the boxes have unique attributes "name".

    Andy

Maybe you are looking for

  • Notifications that disappear

    Similar to my other question, anyone who has the experience of the notifications disappear, where a notification is displayed briefly on the iPhone lock screen, but disappears, leaving the other notifications that have been previously showing always

  • Projector only

    My projector only screen inadvertently and not including any LCD screen more. How can I change the computer screen? Thank you.

  • Lost CD/DVD player

    My computer OS is Vista, and I had a defective CD/DVD drive replaced by the shop I bought. It worked when I brought home, but now, in 'my computer', it shows that drive d is now a disk that I don't have in my computer. I rarely used the CD/DVD drive

  • When I try to "uninstall or change" a program of this message permanently appears 'Please wait until that the current program is finished uninstalling or change'

    I can't uninstall anything. It is permanently blocked with the message "Please wait until that the current program is finished uninstalling or changing" appearing if I try to uninstall any program.

  • In Windows 8.1 user passwords

    A few months ago, I upgraded to Windows XP 8.1, really a large no. I worked this area"IT" since the end of the 1960s when there was only cards punched to indicate to the computer. I managed through the Google search to find a solution to remove the p