Getting a value from all the selected lines in the method of the AM

Hi all

I use JDev 11.1.1.4.0

I have a table with the selection of several lines. In my module application I want to call a stored procedure with the parameter whose value depends on the selected line in the table.
For the only selection I can make fallow:
    public void wypiszId() {
        ViewObject vo = findViewObject("ProcsklView1");
        String st = vo.getCurrentRow().getAttribute("IdProcskl").toString();
        System.out.println(st);
How can I deal with multiple selection?

Kind regards
Wojtek.

Hello

VO/iterator will hold only selected line at a time. Thus, for multi table enabled selection, the last selected line would be the selected line (vo / Iterator). In order to obtain all the selected lines, you must obtain support bean by linking the Table of the ADF.

Check out this blog on this goal.

http://blogs.Oracle.com/aramamoo/2010/12/getting_all_selected_rows_in_adf_table_with_multiple_rows_selection_enabled.html

Arun-

Tags: Java

Similar Questions

  • What privileges granted to select from all the PDB files

    Why the two selected does not return the same result? Or if you want the broader question - what privileges granted to select from all the PDB files.


    I want to leave common user that I created to select and see all of the synonyms of all PDB files.


    conn / as sysdba

    create user c##nir identified by c##nir container=all;

    grant connect,dba,resource to c##nir container=all;
    grant select on cdb_synonyms to c##nir container=all;

    select CON_ID  from cdb_synonyms  group by CON_ID;

      CON_ID
    ----------
      
    1
      
    4
      
    11
      
    10
      
    14
      
    5
      
    8
      
    13
      
    3
      
    7
      
    15
      
    6
      
    12
      
    9

    conn c
    ##nir/c##nir

    select CON_ID  from cdb_synonyms  group by CON_ID;

      CON_ID
    ----------
      
    1

    select CON_ID  from containers(dba_synonyms)  group by CON_ID
      
    *
    ERROR at line
    1:
    ORA-00942
    : table or view does not exist

    You must use the CONTAINER_DATA clause:

    ALTER USER ##nir set container_data = container c all = current;

    After running the above command, try to select again to cdb_synonyms and you will see the data of all containers.

    Read more in my Post of Blog

  • I get error 201, despite all the advice, I found so far

    I get error 201, despite all the advice, I found so far. I'm using 64-bit Windows of 8.1. Thank you.

    If you already tried all the steps:

    Download the direct installation file and install Adobe Creative Cloud app.

    Step 1:

    Click on the link below and open Photoshop Elements download link.

    Do not close the page, just keep it open.

    Download Photoshop Elements products | 10, 11, 12, 13

    Step 2:

    Click on the link below and download zip file of cloud creative direct Installer:

    http://trials2.Adobe.com/AdobeProducts/KCCC/1/Win32/ACCCx3_0_0_74.zip

    Once the downloaded Zip file, right-click on it and select the option extract all and extract the content and try to install the Adobe Creative Cloud app and check.

  • How can I get my contacts and all the other stuff I had on the old email?

    Original title: I changed my email because they said my old email was invalid... How can I get my contacts and all the other stuff I had on the old email? They said, it has been deleted

    If my email isn't valid how I used it?

    Hello

    1. which email account you are referring to?

    2. What is the version of Windows installed on the computer? For example, Windows 7, Vista

    Please answer these questions and provide additional information so that we can better guide you.

  • How to get a list of all the pipes in a ThinApp

    I have a simple program to list all files in a folder.  I use it to get a list of named pipes by the way
    \\.\pipe\*as the argument, but it does not work if I Pack the program as a fine application.  I get the error code 3 (ERROR_PATH_NOT_FOUND).  I tried to use CreateFile on
    \\.\pipe\but he also failed when running as a ThinApp. Are their ways to get a list of all the pipes in a ThinApp?  Here is the source code.

    #include <windows.h>
    #include <tchar.h>
    #include <stdio.h>
    
    #include "stdafx.h"
    
    int main(int argc, char* argv[])
    {
       WIN32_FIND_DATA FindFileData;
       HANDLE hFind;
    
       if( argc != 2 )
       {
              _tprintf(TEXT("Usage: %s [target_file]\n"), argv[0]);
              return -1;
       }
    
       _tprintf (TEXT("Target file is %s\n"), argv[1]);
    
       hFind = FindFirstFile(argv[1], &FindFileData);
       if (hFind == INVALID_HANDLE_VALUE) 
       {
              printf ("FindFirstFile failed (%d)\n", GetLastError());
              return -1;
       } 
       else 
       {
              _tprintf (TEXT("The first file found is %s\n"), 
                   FindFileData.cFileName);
    
              BOOL nextFile = FindNextFile(hFind, &FindFileData);
    
              while (nextFile)
              {
                   _tprintf (TEXT("The next file found is %s\n"), 
                             FindFileData.cFileName);
    
                   nextFile = FindNextFile(hFind, &FindFileData);
              }
    
              FindClose(hFind);
       }
    
       return 0;
    }
    

    OK, so what about the original example of FindFirstFile, if I try with 4.6 it does not work for me. I use 6 VC to create the application and then add it to the cmd project and then rebuild. I tried these combinations:

    App.exe \\.\pipe\* (this works)

    App.exe \\.\pipe\ (this does not work, in native mode as it does not work)

    App.exe //./pipe/* (this works)

    App.exe //./pipe/ (this does not work, in native mode as it does not work)

    can you tell me about the results you get when you try the above?

    Thank you.

  • How to get a collection of all the dictionaries and the keys to an annotation

    Is it possible to get a collection of all the dictionaries and dictionary key associated with a particular annotation without make queries that require specific keys (CosDictGet(), CosDictGetKey(), etc.)?

    IOW, I want to "GetAllDictionaries (PDAnnot)", then for each dictionary, 'GetAllDictionaryKeys (dictionary).

    If the answer is 'no', then please provide some details.

    Thank you

    Bill

    Sorry - CosObjEnum()

  • [ADF, JDev12.1.3] SelectOneChoiche created from VO instance with 3 fields: how to retrieve the value of all the fields of the selected element?

    Hallo,

    I defined a VO with 3 fields (A, B and C) and I would like to create a SelectOneChoiche that shows only the field as options from this instance of VO.

    In a managed bean, I need to retrieve the values for all areas (A, B and C) of the item selected by the user.

    I started dragging the entire VO instance to UI to create a SelectOneChoiche (in which I have chosen to show only the to field).

    Then, I created a for the SOC ValueChangeListener read the values A, B and C of the selected element, but the only thing I've done is to get the displayed value:

    System.out.println((String) ((RichSelectOneChoice) FacesUtils.findComponent("MySoc")).getValue());
    

    You kindly help me?

    Thank you

    Federico

    Federico, sorry I didn't see your answer.

    As you use 12.1.3 you can do this more easily than the code that I posted before. You can use

    {} public void onCountrySelection (ValueChangeEvent valueChangeEvent)

    FacesContext will involve = FacesContext.getCurrentInstance ();

    Make sure that the selection change is processed and the current link lov line has the new selected line

    valueChangeEvent.getComponent () .processUpdates (contxt);

    BindingContext lBindingContext = BindingContext.getCurrent ();

    BindingContainer lBindingContainer = lBindingContext.getCurrentBindingsEntry ();

    List JUCtrlListBinding = lBindingContainer.get ("CountryId") (JUCtrlListBinding);

    the newindex in not necessary, but ok let's get it (must be equal to the CountryId, the pharmacokinetics of the binding of the lov

    String newindex = (String) valueChangeEvent.getNewValue ();

    get the selected value in the list that is the selected line of the binding of the lov

    Line lFromList = list.getSelectedValue () (line);

    now, we can get the attributes of the line of lov

    String s = (String) lFromList.getAttribute ("CountryId");

    System.out.println ("CountryId:" + s);

    String s2 = (String) lFromList.getAttribute ("CountryName");

    System.out.println ("CountryName:" + s2);

    BigDecimal s3 = lFromList.getAttribute("RegionId") (BigDecimal);

    System.out.println ("RegionId:" + s3.toString ());

    }

    The form that I use is based on the location of the HR DB schema table. The CountryId is configured in the view object to display a lov based on the campagneVoir. This view contains thre CountryId, CountryName and RegionId attributes.

    If you want to get to the attributes of an action listener you can use this code

    {} public void onGetSelectedCountryLov (ActionEvent actionEvent)

    BindingContext lBindingContext = BindingContext.getCurrent ();

    BindingContainer lBindingContainer = lBindingContext.getCurrentBindingsEntry ();

    List JUCtrlListBinding = lBindingContainer.get ("CountryId") (JUCtrlListBinding);

    get the selected value in the list that is the selected line of the binding of the lov

    Line lFromList = list.getSelectedValue () (line);

    now, we can get the attributes of the line of lov

    String s = (String) lFromList.getAttribute ("CountryId");

    System.out.println ("CountryId:" + s);

    String s2 = (String) lFromList.getAttribute ("CountryName");

    System.out.println ("CountryName:" + s2);

    BigDecimal s3 = lFromList.getAttribute("RegionId") (BigDecimal);

    System.out.println ("RegionId:" + s3.toString ());

    }

    You must add the valueChangeListener and at least add the lines

    FacesContext will involve = FacesContext.getCurrentInstance ();

    Make sure that the selection change is processed and the current link lov line has the new selected line

    valueChangeEvent.getComponent () .processUpdates (contxt);

    to ensure that the selected line is available when you click the button.

    And set autosubmit'= true for the field in the UI that displays the LOV.

    Timo

  • Get an AIArtHandle for all the selected items in the doc

    I'm doing what someone does in this other thread about the export in PNG.

    reference: http://forums.Adobe.com/thread/320685

    We have several layers (some off and locked).

    I would like to pass all the selected items to the Action of Image Optimization as a group rather than optimize each.  I use AIMatchingArt Suite to retrieve items selected, but it points to an array of AIArtHandles... any ideas?

    That's how I ended up doing and it works.  (In addition to the other code which has been referenced in the original post).

    I don't know if it would work better with an ArtSet, but it works.  Perhaps, if the images I'm flattening were somewhat more complicated, I would run in the duplication you mentioned.

    result = sAIActionManager-> PlayActionEvent (kAISelectAllAction, kDialogOff, NULL);

    result = sAIMatchingArt-> GetSelectedArt (store, & County);

    If {(result)

    Store = NULL;

    Count = 0;

    } else {}

    result = sAILayer-> InsertLayer (NULL, kPlaceAboveAll, & newLayer);

    If (newLayer &! result)

    {

    sAILayer-> SetLayerVisible (newLayer, true); See the layer

    sAILayer-> SetLayerIsTemplate (newLayer, false); Mark as NOT a model layer get exported

    sAILayer-> SetLayerEditable (newLayer, true);

    result = sAIArt-> NewArt (kGroupArt, kPlaceAboveAll, Nile, &group);)

    for (index = 0; (result == kNoErr) & (index< count="" );="" index++="" )="">

    Art AIArtHandle = (* store) [index];

    Copy of AIArtHandle;

    Add the art group

    result = sAIArt-> DuplicateArt (kPlaceInsideOnBottom, group, ©);)

    }

    }

    }

  • The value of all the permissions from third parties to an Application

    How to put all third paty permissions to an application through programitically. I saw ApplicationPermissions class. What I don't know which field gives the permissions of all.

    I want to set the permissions of the application like this picture below but programmatically.

    Give suggession is it possible or not?

    I do not see the image.

    You must set all the permissions separately with http://www.blackberry.com/developers/docs/7.0.0api/net/rim/device/api/applicationcontrol/Application...
    a subset of database this is allowed when the application is "approved" (on new devices).

    use a BES to control on a higher level permissions, there are however no other APIs on the device.

  • Getting a value from selectonechoice

    Hello

    I use Jdeveloper 11.1.1.6

    My requirement is as below

    I have a component selected only one option, which displays a list of values.

    The user selects a value from the list of value and clicks the command button, and then the input field should be updated with the

    the value that is selected in the list.

    To do this, I wrote the code (no components company involved / only ADF faces) below

    I am able to get the list of values and post it on my page. For the rest of the game, I am not able to guess.

    I put selectoncechoice partialtriggers for buttons and the text in field

    All I need is the java code for getting the selected value and by attaching it to the text field.

    Can you help or guide me on this...

    Bean:

    The list < SelectItem > tempList.

    {} public void settempList (list < SelectItem > tempList)

    this.tempList = tempList;

    }

    public list < SelectItem > gettempList() {}

    If (tempList == null) {}

    tempList = new ArrayList < SelectItem > ();

    tempList.add (new SelectItem ("t1", "Item 1"));

    tempList.add (new SelectItem ("t2", "Item 2"));

    }

    Return tempList.

    }

    USER INTERFACE:

    <? XML version = "1.0" encoding = "UTF - 8"? >

    " < = xmlns:jsp jsp:root ' http://Java.Sun.com/JSP/page "version ="2.1"xmlns:f =" " http://Java.Sun.com/JSF/core "

    ' xmlns:af = ' http://xmlns.Oracle.com/ADF/faces/rich "> "

    < jsp:directive.page contentType = text/html"; Charset = UTF - 8 "/ >

    < f: view >

    < af:document title = "listPage.jspx" id = "d1" > "

    < af:form id = "f1" >

    < af:panelGroupLayout id = "pgl1" layout = "vertical" halign = "center" >

    < af:spacer width = "10" height = "10" id = "s1" / >

    < af:selectOneChoice label = "Custom List" id = "soc1" contentStyle = "make weight:" BOLD "; color: Green; ">

    < f: selectItems value = "#{Valuesbean.tempList}" id = "si1" / > "

    < / af:selectOneChoice >

    < af:outputText value = "Output text" id = "ot1' partialTriggers ="soc1"/ >

    < af:commandButton text = "Change" id = "ot1' partialTriggers ="soc1"/ >

    < / af:panelGroupLayout >

    < / af:form >

    < / af:document >

    < / f: view >

    < / jsp:root >

    Hello

    If you see:

    You must set a value for the selectOneChoice component. You add a new variable in your beans to use it to store your selectedItem. Then your output text should also reference the same attribute in its value field.

    Try to add in your bean:

    String mySelection;

    public String getMySelection() {}

    return mySelection;

    }

    {} public void setMySelection (String, string)

    mySelection = string;

    }

    value = "#{ValuesBean.mySelection}" label = "Custom List" id = "soc1" contentStyle = "make weight:"BOLD"; color: Green; » >

    and value = "#{ValuesBean.mySelection}" id = "ot1' partialTriggers ="soc1"/ >"

  • How can I get a value from a function from pl/sql by OADBTransaction

    Hi all
    Hope you will be fine.
    as we know, we can get a sequence by this code value:
    Super.Create (AttributeList);
    Transaction OADBTransaction = getOADBTransaction();

    Vendor ID is obtained from the table sequence
    Number supplierId = transaction.getSequenceValue ("FWK_TBX_SUPPLIERS_S");

    My question is how can I get a value in a variable to a pl/sql function:
    the function is defined as follows:
    ******
    create or replace function getNextTrans return varchar2
    is
    Team varchar2 (20);
    Start
    SELECT "CASH". TO_CHAR (SYSDATE, 'DDMMYYYY') | GP_CASH_TRX_SEQ. NEXTVAL FROM DUAL;
    return team;
    end;
    /

    Hey Dina,

    Reference http://www.oraclearea51.com/oracle-technical-articles/oa-framework/229-calling-database-procedures-and-function-from-oaf.html

    Kind regards
    GYAN

  • Change the value of all the keyframes (Animation-tween)

    Hello

    There is the posibility to change a value in all selected keyframes?

    I have two boxes:

    Left with a rotation animation,

    Right with animation of position.

    I know with the white arrow, I can select the 'path' and change the position.

    But how can I change the position of an object without animation of position?

    Thank you!

    keyframes-position.jpg

    I don't really understand what you're showing. In your layer of mc-Hello, I see four key frames. When you first highlight the 'Hello' layer shows a zoom with no change in position effect. You try to move the 'Hello' zooms in from the central location to the upper right corner?

    If that's what you want to achieve, you must select all instances of edits to move the entire animation. A simple way to do it is to slide the selection around the entire animation tool once you select Edit several images. The way you select in your example, you are only selecting one instance to a keyframe and spend only one.

  • Get more value from my table records

    Hi Experts,
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    
    
    SQL> WITH T AS
      2  (
      3  SELECT  1 ID,'1OIKL' VAL,1 FLAG FROM DUAL UNION ALL
      4  SELECT 2,'9IUY',0 FROM DUAL UNION ALL
      5  SELECT 3,'9IUK',0 FROM DUAL UNION ALL
      6  SELECT 4,'9IUS',0 FROM DUAL UNION ALL
      7  SELECT 1,'1OIKL',0 FLAG FROM DUAL
      8  )SELECT * FROM T;
    
            ID VAL         FLAG
    ---------- ----- ----------
             1 1OIKL          1
             2 9IUY           0
             3 9IUK           0
             4 9IUS           0
             1 1OIKL          0
    
    SQL>
    I need the unique output like VAL result with the biggest FLAG
            ID VAL         FLAG
    ---------- ----- ----------
             1 1OIKL          1
             2 9IUY           0
             3 9IUK           0
             4 9IUS           0
    SQL>
    Thank you

    Published by: DB-user11904889, March 24, 2010 15:51
    Code field included in the values of the table

    Try:

    SQL> create table T AS
      2  SELECT 1 PK, 1 ID,'1OIKL' VAL,1 FLAG FROM DUAL UNION ALL
      3  SELECT 2,2,'9IUY',0 FROM DUAL UNION ALL
      4  SELECT 3,3,'9IUK',0 FROM DUAL UNION ALL
      5  SELECT 4,4,'9IUS',0 FROM DUAL UNION ALL
      6  SELECT 5,1,'1OIKL',0 FLAG FROM DUAL;
    
    Table created.
    
    SQL> select * from t;
    
            PK         ID VAL         FLAG
    ---------- ---------- ----- ----------
             1          1 1OIKL          1
             2          2 9IUY           0
             3          3 9IUK           0
             4          4 9IUS           0
             5          1 1OIKL          0
    
    5 rows selected.
    
    SQL> delete from t t1
      2  where exists ( select null
      3                 from   t t2
      4                 where  t1.val = t2.val
      5                 and    t1.flag < t2.flag
      6               );
    
    1 row deleted.
    
    SQL> select * from t;
    
            PK         ID VAL         FLAG
    ---------- ---------- ----- ----------
             1          1 1OIKL          1
             2          2 9IUY           0
             3          3 9IUK           0
             4          4 9IUS           0
    
    4 rows selected.
    
  • SQL query to a / columns of values for all the rows that are returned by default

    Hello everyone.
    I was looking for help to make an SQL query that can be achieved if all goes well-

    I want that all the rank values in a particular column of a set of rows returned by default for a specified string. For example, consider the SQL below:

    Select date, start_time, building and room
    of star.events

    Consider this example output of the query above-

    Start_time date room
    2009-07-01 9: 00 AB 99
    2009-02-03 7:11 ED
    2009-01-03 8:23 FF
    2009-03-04 4 am SD 29

    How can I change my statement default SQL column space to say ' 57 "regardless of what the actual database values are showing this instead?

    Start_time date room
    01/07/2009 9:57 AB
    2009-02-03 7:57 ED
    03/01/2009 8:57 FF
    2009-03-04 4 am JJ 57

    Any direction/suggestions would be much appreciated.
    Thank you!

    Hello

    SELECT DATE,
           start_time,
           building,
           57 as room
    FROM   star.events;
    

    Kind regards

  • How do you find the average value of all the data between two points on a single channel

    I'm tring to calculate the average value of all data points in a single field between two distinct points

    I rasthaus an illustration.

    Hi smoothdurban,

    I thought you wanted to specify the area of interest with the sliders of the band.  If you rather automatically define the area of interest based on thresholds, etc., we cannot see the interactive nature of the example I sent.

    What are the criteria used to determine the start and end of the region of interest lines?

    I would be able to type this out for you if you sent a representative data set ([email protected])

    Brad Turpin

    Tiara Product Support Engineer

    National Instruments

Maybe you are looking for