Multiple selection query to view the selected line

Hi all

I have a requirements make multiple selection of a region in the table and need to display the values of the selected line in the page.

so I'm able to multiple selection of the table, but all when trying to print the values, it is still only printing selected values of line one not several.

the code I use to print several rows below the selected values.

for (int i = 0; i < fetchedRowCount; i ++) {}
Rowi ABCEOViewRowImpl =
(ABEOViewRowImpl) selectIter.getRowAtRangeIndex (i);

If (rowi! = null) {}
If (Y".equals (rowi.getReprint ())) {" "}
for (int j = 0; j < fetchedRowCount; j ++) {}
String srnum = rowi.getSerialNumber ();

throw new OAException ("after Srno" +)
srnum,
OAException.INFORMATION);
}
}
}
}

where fetchedrowcount - no lines in the region of the table
Here srnum is printing only one value.

Please guide me where to check this problem.

Thank you
Deb

Hi Deb,

Unable to get the requirement. Why the second for loop... ?

Still, the OAException must be thrown exception during the first use that meets the condition.

Please try to use "srnum" in tabular or use it to add all the required values in the for loop and finally throw the exception.

Concerning
Sanujeet

Tags: Oracle Applications

Similar Questions

  • How can I view the new lines when line is inserted in a VO in Popup

    Hi Experts,

    JDEV version 12.1.3.0

    I have a page jsff where I show the data as below. This table is read-only

    image1.jpg

    If I click on the button create.

    I open a pop-up window. During the initial loading of popup I am inserting a line at the VO. The page main jsff and popup VO are inspired by the same iterator. Screenshot below.

    Untitled.jpg

    But however I note when popup open should see the newly single line.

    But its showing an old recordi, first line of the VO.  How can I avoid showing the old line of the pop-up window. The jsff and the popup are inspired by the same iterator.

    Thank you

    Roy

    Hello

    Requirement is not like that. We must show new lines in the table. Done with the visible property of inputText in the transitional attribute value column on 'Y '.

    On insertion, I put transitional attribute as "O".

  • View the last line of a JTextArea wrapped in a get

    I use a JTextArea to permanently display the generated text of asynchronously and sporadically. The JTextArea is encapsulated in a get. When new text is added to the JTextArea I need to always show the last line of text. The only solution I've found so far is to find the length in characters of the text and before the JTextArea #setCaretPosition (). I can't believe that this is preferable, because to find the character length means first to convert the content of the JTextArea in chain!

    Is there a better way to do this?

    Use the javax.swing.text.Utilities class. Method
    mutable public static int getRowStart (JTextComponent c, int OFFS)

    You can pass the length of the document and your JTextArea.

    Or just use textArea.setCaretPosition (textArea.getDocument () .getLength ())

  • How to view the details of the employee in line selection POPup

    Hi I need I show EmployeeDetails in the af with a table query pane

    After the search for details used in the Table, I'll choose a rank I have the detals, then I want to show employee details in a POP how I can do...

    Thank you

    Delphine

    Hi reda

    This requirement, you can use custom selection for af:table listener and who, after having invoked default selectionListener, open a popup that contains details of employees

    If the iterator for table and popup is same then it will show automatically data selected line

    See how to open popup on table selection

    See - Blog of Ashish Awasthi (Jdev/ADF): call ADF Table selection listener, listener of custom for af:table selection

    Thank you

  • Get the "selected lines" value after sql custom query in the database adapter

    We execute a custom query in a database adapter. With other technologies (JDBC, etc.) the result of a query produces not only a game but the number of lines selected results. For example, the output of the script of Oracle SQL Developer will display something like:

    9999 selected lines

    at the end of the output of the script.

    I would like to obtain this value for a BPEL process. Of course, I could run a 2nd interview whose where clause is identical to the first, but select count (*) instead. However, it is not only ineffective but (in rare circumstances in an active database) could be the problem.

    It is not obvious to the novice BPEL how to get the selected value and the result set row in an Invoke. Is this possible?

    Maybe it's not the only solution - but this is how I did in the past.

    After step to invoke the adapter, use a step of the having-right/copy to fill a variable of integer type BPEL using the xpath count function...






    That should affect the number of records returned by the query.

    I hope this helps.

    Rod.

    Published by: Tunnels of Rod on December 15, 2009 13:16

  • View and edit the currently selected line of ADF Table in the form of ADF

    I have an ADF Table read-only and the shape of the ADF, which were created from the same data control.
    I need to be able to edit the selected table in the form line (as in the 'Controls data binding to your JSF page' part of 'Development of RIA Web Applications with Oracle ADF' tutorial). However, I can't figure out how to make :(

    I found the following solution on the Web: #{bindings. DeptView1.currentRow.dataProvider.dname} - but it does not, since "the oracle.jbo.server.ViewRowImpl class does not have the dataProvider.

    Sorry for the newbie question.
    Thanks in advance for any help!

    Hello

    As far as I KNOW, the dataProvider only is not supported on ADF BC, where the error.

    If you have created the table on my own reading of the ADF and the form of the same data control simply refresh the form based on the table selection is displayed recording selected, for which this just add partialTriggers property to the panelFormLayout and set its value to the id of table

    Jean Lou

  • How to use the multiple selection list values in sql query

    Hi all
    In the search form, I have a multiselect llist tell (P3_STATUS) and I want to have a query using this element and fetch documents
    How to do a sql query based on the selection of the value of this element.
    SELECT "W"."START_DT" "Start Date",
           "W"."CAMPAIGN_CODE" "Campaign Name",  
           "W"."MKT_CHANNEL" "Channel",
           "W"."MKT_SUB_CHANNEL" "Sub Channel", 
           "W"."PROMO_CODE" "Promo Code",
           "W"."TRACKING_CODE" "Tracking Code",
           "W"."TFN" "TFN",
           "W"."STATUS" "Status",
           "W"."CAMPAIGN_CODE" "Edit"
           FROM 
             "WC_MKT_CAMPAIGN_DS" "W"
      
           WHERE 
         (MKT_CHANNEL = decode(:P1_CHANNEL,'%null%',MKT_CHANNEL,NULL,MKT_CHANNEL,:P1_CHANNEL))
       AND
    (MKT_SUB_CHANNEL= decode(:P1_SUB_CHANNEL,'%null%',MKT_SUB_CHANNEL,NULL,MKT_SUB_CHANNEL,:P1_SUB_CHANNEL))
    AND *STATUS = decode(.................*
    Please could someone help me on this?

    Thanks in advance
    Robert L

    Try to change your selection of status to

    AND INSTR(':'||:P3_STATUS||':',':'||STATUS||':') > 0
    
  • ADF Table - View column value of the selected line, need help

    Hi all

    I am newbee in ADF and needed to get the value of the column in the selected line in ADF inputTest.
    (I tried to navigate link without success)

    Pls tell me is it possible without coding, that is to say using partialTrigger etc.

    Please indicate the steps to follow.


    Thank you
    Amit

    Hello

    I'm not clear on your condition, where is your inputtext, is it inside the table or just outside the table?

    From my understanding, I realized that you have a table and a text entry next to the table where you want to display the value of a particular column of a selected line. That's what you're looking for (in which case above suggested solution works) or something different?

    Jean Lou

  • Some columns of the values of the selected line returns NULL in the table of the adf.

    Hello..

    My version of jdev 11.1.1.5.0

    I have a vision with some columns. This view is mapped to a table of adf with some of the displayed columns. My task is to get the column values selected line (including the values of the column not displayed).
    But I'm certain values such as null, although there are values present when I run the query from the view.
    My code:
    DCIteratorBinding tableVO = ADFUtils.findIterator ("myVO");
    ViewObject voTableData = tableVO.getViewObject ();
    Line rowSelected = voTableData.getCurrentRow ();


    + / / codeto display column and the values +.
    int x = 0;
    * for (the names of the objects: rowSelected.getAttributeNames ()) {*}

    * for (int i = x; i < rowSelected.getAttributeValues () .length; i ++) {*}
    * System.out.println (x + "." + name + "=" + rowSelected.getAttribute (i)); *
    break;
    *}*
    x ++ ;
    continue;
    *}*


    MY table:
    * < af:table value = "#{bindings.myVO.collectionModel}" *.
    * var = "row" rows = "#{bindings.myVO.rangeSize}" *.
    * EmptyText = "#{Bindings.myVO.Viewable?" "{'No data to display.': 'Access Denied.'}". *
    * fetchSize = "#{Bindings.myVO.rangeSize}" *.
    * rowBandingInterval = "0."
    * filterModel = "#{Bindings.myVO.queryDescriptor}" *.
    * queryListener = "#{Bindings.myVO.processQuery}" *.
    * filterVisible = "true" varStatus = "vs."
    * selectionListener = "#{myBean.method_onRowSelect}" *.
    * rowSelection = "single" id = "t1" styleClass = "AFStretchWidth."
    "* partialTriggers =": sbcClose: sbcOpen: socWarehouse. "
    * inlineStyle = "height: 217px;" / > *.


    Thank you

    Question: the attributes are not null in the DB?
    The attributes are part of the past of the query select?
    And they are part of the binding of the tree?

    Timo

  • Selection multiple question table advanced on the OFA page

    Hello

    I have a table edge on the OA Page. This advanced table, I had added the action of multi selection table.
    For multiple selection, I have attached an Instance of the view and an attribute of the view.

    There are text entry field in the advanced table. If the user makes changes to it, a 'updateDate' event fires.
    Co:
    {if (Event.Equals ("updateDate"))}
    System.out.println ("A");
    String rowReference =
    pageContext.getParameter (OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);

    [Serializable] param = {rowReference};

    am.invokeMethod ("DetailsCheckBox", param);
    }

    Am:
    public void DetailsCheckBox (String rowReference) {}
    System.out.println ("B");
    line oracle.jbo.Row = findRowByRef (rowReference);


    Ivo DetailsVOImpl =
    FindViewObject ("DetailsVO1") (DetailsVOImpl);

    String chkbox = (String) row.getAttribute ("Multiselect");
    System.out.println ("multiselect original:" + chkbox);
    If ((chkbox == null) |) (chkbox.equals ("N"))) {
    ivo.setCurrentRow (row);
    row.setAttribute ("Multiselect", "Y");
    String chkbox1 = (String) row.getAttribute ("Multiselect");

    System.out.println ("multiple selection:" + chkbox1);
    Ivo.Reset ();
    }

    }

    The problem is that if there are 5 lines are displayed in the advanced table and changes to one of the first 4 rows, the box gets checked on the page but if I make the changes to the last row, the box is not checked on the page, even if the statement String chkbox1 = (String) row.getAttribute ("Multiselect"); Returns 'Y' AM.

    Help, please. Its urgency.

    Hello

    We use the following pseudocode of the AOS.

    VO. Reset()
    While (vo.hasNext ())
    {
    your code
    }

    This will solve your problem.

    Thank you
    Kumar

  • Toggle buttons control according to the selected line in the table?

    Hello

    I have used JDev 11.1.1.2.0

    On my main page, it has a query section and view the result to a component of the lookup table and also has functioning as (update/deletion) buttons in the toolbar.

    I want to toggle buttons operating according to some value of the selected line in the table, and I searched on the OTN forum, found more than issues like that, but seemed no found a good solution.

    The table is a unique and has a status column selection, its data type is integer, and I want to activate the buttons when the value of the status field of the selected line is 0 or 1, disable the buttons when the State value is other values.

    Code of the table as:

    < af:table value = "#{bindings." Var VO1.collectionModel}"="row ".
    lines = ' #{bindings. " VO1.rangeSize}.
    emptyText = "#{bindingsVO1.viewable?" '} ". No data to display. ': 'Access Denied. »} »
    fetchSize = "#{bindings." VO1.rangeSize}.
    rowBandingInterval = '0 '.
    filterModel = "#{bindings." VOCriteriaQuery.queryDescriptor}.
    queryListener = ' #{bindings. " VOCriteriaQuery.processQuery}.
    filterVisible = "true" varStatus = "vs."
    selectedRowKeys = ' #{bindings. " VO1.collectionModel.selectedRow}.
    selectionListener = "#{bindings." VO1.collectionModel.makeCurrent}.
    rowSelection = "single" id = "resId1" >

    Operation code buttons like:
    < af:commandToolbarButton text = "Update" id = "ctb2" action = "editDAF" / >

    Any suggestions would be very helpful.

    Thank you
    zeroxin

    Hello

    bind to the attribute in the PageDef file for the status field. Then configure the PartialTriggers property button to point to the ID of the table. Of the disabled button property then points to the status as attribute link

    #{bindings.statusField.inputValue == 'value'}

    Frank

  • Display the values selected in a multiple selection prompt

    Is it possible to display all the values selected from a multiple selection prompt? One who is not in a mini report with a filter = promt tabular. I need in the narrative field.

    I don't have anythign to find at the moment which gives no other alternatives.

    Don't know why you need in the view of the narrative, but outside of what you mentioned (prompt = filter), there is no way to store multiple values in a variable to use in the same report selections. But you know that if you chose the way you mentioned, you could do this:

    (1) to your "mini-report" switch to the display of explanatory text.

    (2) since there is only a single column, type @1 in the narrative field.

    (3) consider the maximum number of values that a user would choose 10. Then in the 'lines to display' set 10.

    (4) in the line separator, put in a comma and press the SPACEBAR (this will add a space after the comma).

    (5) now drag this report to the dashboard and the button report properties, select 'View', then select your narrative point of view.

    HTH,

  • ObjectListField selected lines show white on the Curve 8530

    I was wondering if anyone else has experienced this problem.  I looked through the forums, but couldn't find any information about it.  I use an ObjectListField, and when you scroll through the items, the line of the selected item becomes all white - if you do not see the text in the line.  Only, this seems to happen on the 8530 (on the Simulator and the physical device).  From a user point of view, it's extremely confusing.

    At first, I thought it could have been something that I was doing wrong, I had created a new class that inherited from the ObjectListField where I was Manager the drawListRow() method myself, but I ripped this custom class is instantiated and used an ObjectListField upward, with the same results described above.

    I know I can shoot myself the selected line in the drawListRow() method explicitly, but then I lose the native handling/styling for some other BlackBerry models - such as the nice blue gradient storm, "BOLD", etc...

    Any ideas on that?  Is this a known problem?  Is there one solution other than of coloring the line myself?

    Thank you in advance!

    T

    It seems unlikely that this would be a bug.

    Make sure that you have not replaced a method that you shouldn't have.

    Do you use some kind of custom on the 8530 theme?

  • ADF table selected displayRow does not display the selected line

    Hello

    JDev 11.1.2.4

    I have a table with selection enabled and displayRow property the value selected. In the workflow, I have an ExecuteWithParams activity, and then a method activity that restores the current iterator of the line. Finally the activity view that displays the table.

    Restore the current line with key

    Iterator DCIteratorBinding = ADFUtils.findIterator ("MyIterator");

    iterator.setCurrentRowWithKey (currentKey); currentKey is a string

    The question I have is that the current line is properly restored, but the table does not display the page of "range" of the current line while the displayRow is the selected value. My table has 500 rows, the table displays the top 25 while the current line is the 500th line. I expect the table to display the line 475 to 500 line.

    What I am doing wrong?

    Thank you

    You can save the index lines before executing your method and then set the iterator to this index.

    The technique is described in this blog https://tompeez.wordpress.com/2016/02/12/naviagting-an-aftable-in-pagination-mode-from-a-bean/

    Timo

  • query to view separate lines that have the same values

    Hello

    I have the columns id, addr1, addr2, city and State of coding. I need to know all the coding IDS that have the same addresses and at the same time filter out the same side of the id of the request.

    For example:

    acctid addr1, addr2 City State

    WEF 1 101 101 sd

    1                         101          wef     sd

    WEF 2 101 101 sd

    WEF 3 101 101 sd

    DC 4 102 102 homeless

    From the above data, I want to get filter tier 4 and get lines 1, 2 and 3. How to achieve with a sql query

    Thank you

    Arch

    This has nothing to do with hard... coding is how you test a query without creating the table, so you'd:

    with match_finder AS (SELECT acctid, addr1, addr2, city, State, count (*) OVER (PARTITION BY addr1, addr2, city, province) AS identical_rows)

    OF )

    Select acctid, addr1, addr2, city, province

    of match_finder

    where identical_rows > 1

    /

    and the rest, I'm sure, you can find on your own...

    HTH

Maybe you are looking for