How do I get the separate elements of a table in a bean method?

Hey everyone, how are you?

I use Jdeveloper 12.1.2.0.0.

I have a bean method that gets the items on a table-adf and I need the separate elements (of a given attribute) this table to highlight in the other table.

For example: my table elements:

ID name Tecnolgy

1 oracle ADF

2 oracle Jdeveloper

3 Microsoft Visual Studio

And I need the separate names in this table:

Oracle; Microsoft

So I highlighted them in another table.

Normally I use an iterator and I will one by one and highlight what I want (as you can see, with a large table it can take a long time) and I wanted only to get the separate elements.

My method of beans as something like this:

DCIteratorBinding conIter = ADFUtils.findIterator ("VFactSalesNewView1Iterator");

Line r [] = new Row [conIter.getAllRowsInRange () .length];

r = conIter.getAllRowsInRange ();

for (int i = 0; i < conIter.getAllRowsInRange () .length; i ++)

{

long productsInt = (Long) r [i] .getAttribute ("FkProduct");

...

matchEmFactSalesProducts (r [i]);

..

}

I was wondering if it was possible to put a query and return the items in the request as lines (as I do with the iterator) or another possibility here.

The request for my first table (the one in the example) is the following:

SELECT VFactSalesNew.N_SALES,

VFactSalesNew.QUANTITY,

VFactSalesNew.ID_ANO,

VFactSalesNew.QUARTER

OF V_FACT_SALES_NEW VFactSalesNew

WHERE

((nvl(:var_dimCoin,'0') = '0' OR FK_COIN IN (select * from THE (select cast (in_list(:var_dimCoin) as mytableType) double) a)))

and the table I emphasize only has a select * from tableX;

Any ideas?

Kind regards

Frederico.

Hi Frederico,

Hope you are well. Your VFactSalesNew table is filtered by any chance? Approach, you could do is to try to create a new VO with the following query:

SELECT DISTINCT (yourTable.NAME)

From yourTable

But if your table is filtered, then I recommend you create a method in your implementation ViewObject that returns a LIST and there you iterate over the result set. In all cases, you will need to browse the whole list to get distinct values.

Concerning

Tags: Java

Similar Questions

  • Old laptop broke, lost CD to install it, but have the serial number, how do I get the PS Elements on my new computer laptop?

    Hello

    My old laptop was able to break on me, so I had to get a new one. Initially, I bought a tablet of bamboo comes with Adobe Photoshop Elements 5.0 (it happened quite earlier, in fact). I searched the CD install on my new laptop, but I failed to find it and after going through my room throughout the whole garage and cellar, I came to the conclusion that it's probably lost for good. It seems too have registered my product before, but I don't remember my old Adobe ID or password or anything. Also, I had to change emails because my old one hacked, so the email associated with all that was my former Adobe ID is now useless for me. However, I still have my serial number of the product, and I want to know if there is any way I can get possibly the items on my new laptop without having to pay for it. I was actually very happy with Elements 5.0, I don't really care get the version update unless necessary somehow. Is there a way this can possibly be done? Any help is appreciated at all very well.

    Also, my old laptop is a Toshiba PC laptop, and now I have a laptop Dell PC, so no Mac for me. Not sure if this is relevant, just thought I should probably include just in case.

    Thank you!

    Unfortunately, the oldest available version of Photoshop Elements is version 7.  I don't know of any resource to download version 5.

    If it is doubtful that the former of a version would work on a new machine.

  • How do I get the geometric limits of a Table

    I searched the DOM and the forum and cannot find information on obtaining of the geometric boundaries of a table. How can I achieve this? Kurtis

    Hi Kurtis

    Get the width of tables and height and the horizontal and vertical it is containing the character set and you should be able to calculate offsets.

    Trevor

  • How do I get the output of a function table

    Hi all

    Kindly share your idea.


    I need the outputs of a function table only.

    Database version: oracle 10.1.0.2.0

    login_details:

    login_id branch_code

    admin 1
    Admin1 2
    Test 1
    user 1

    I need output for the query function below.

    Select login_id from login_details where branch_code = '1';

    If I create a function:


    FUNCTION to CREATE or REPLACE fn_get_login (pvBranch varchar2)
    IS BACK SYS_REFCURSOR
    REF_TEST SYS_REFCURSOR;
    BEGIN
    OPEN FOR REF_TEST
    Login_id SELECT FROM login_details WHERE branch_code = pvBranch;
    RETURN REF_TEST;

    END;
    /


    Select * from login_master where login_id in (select fn_get_login('01') from double);


    and get

    ORA-00932: inconsistent data types: expected - got CURSER

    Edited by: 887268 October 8, 2012 12:25

    You cannot use a Ref cursor in a table, because it isn't a result set of data, it's just a pointer to a request for enforcement.

    {: identifier of the thread = 886365}

    A ref cursor must be used if you want to refer the request to an external application.

    Transfer data back to a function is to use a pipeline for example function

    SQL> CREATE OR REPLACE TYPE num_descript AS OBJECT(num number, descript varchar2(30))
      2  /
    
    Type created.
    
    SQL>
    SQL> CREATE OR REPLACE TYPE tbl_num_descript AS TABLE OF num_descript
      2  /
    
    Type created.
    
    SQL>
    SQL>
    SQL> CREATE OR REPLACE PACKAGE reftest AS
      2    FUNCTION pipedata(p_choice number) RETURN tbl_num_descript PIPELINED;
      3  END;
      4  /
    
    Package created.
    
    SQL>
    SQL> CREATE OR REPLACE PACKAGE BODY reftest AS
      2    FUNCTION pipedata(p_choice number) RETURN tbl_num_descript PIPELINED IS
      3      v_obj num_descript := num_descript(NULL,NULL);
      4      v_rc  sys_refcursor;
      5    BEGIN
      6      IF p_choice = 1 THEN
      7        OPEN v_rc FOR SELECT empno as num, ename as descript FROM emp;
      8      ELSIF p_choice = 2 THEN
      9        OPEN v_rc FOR SELECT deptno as num, dname as descript FROM dept;
     10      END IF;
     11      LOOP
     12        FETCH v_rc INTO v_obj.num, v_obj.descript;
     13        EXIT WHEN v_rc%NOTFOUND;
     14        PIPE ROW(v_obj);
     15      END LOOP;
     16      CLOSE v_rc;
     17      RETURN;
     18    END;
     19  END;
     20  /
    
    Package body created.
    
    SQL> select * from table(reftest.pipedata(1));
    
           NUM DESCRIPT
    ---------- ------------------------------
          7369 SMITH
          7499 ALLEN
          7521 WARD
          7566 JONES
          7654 MARTIN
          7698 BLAKE
          7782 CLARK
          7788 SCOTT
          7839 KING
          7844 TURNER
          7876 ADAMS
          7900 JAMES
          7902 FORD
          7934 MILLER
    
    14 rows selected.
    
    SQL> select * from table(reftest.pipedata(2));
    
           NUM DESCRIPT
    ---------- ------------------------------
            10 ACCOUNTING
            20 RESEARCH
            30 SALES
            40 OPERATIONS
    
    SQL>
    

    but of course, it is wise to just use pure SQL that in order to mix the PL/SQL in queries in the form of best performance features.

    Perhaps explain what problem you are trying to solve when trying to use a function, and we can advise you on the best options.

  • How can I get the digital power meter?

    How can I get the digital power meter?

    I use a method similar to the example below to measure the market factor using the inputs of a multifunction data acquisition meter.  If the duty cycle is 0% or 100% for a given period, DAQ reading times out and returns an error.  In this case, I would get the digital state of the counter of entry so I can put as cycle to 0% or 100%.  I want to do it without knowing the digital port and line the entrance of counter... for example I would like to continue referencing DAQ/ctrX since I already have this information.

    The application uses an M series: PXI-6229 DAQ and LabVIEW 2011 to make a system customized for VeriStand.

    https://decibel.NI.com/content/docs/doc-12396

    For the moment I wired the block diagram to add a case structure to check the meter ID and string constants to set the identifier of digital input, as they share the physical connection.  As much as I can say that makes the specific code for the PXI-6229 (or any DAQ with only two counters that share connections with p2.1 and p) 1.4

    I have attached the VI sub.

    When the device is used with a different data acquisition, I can add the connection and/or separate control.  Looks like at least one will be necessary given that the meter can only detect the edges... I think it was the piece of information I needed.

    Thanks for your help!

  • How can I get the Windows Fax and Scan program to scan mutiple page to a file rather than to each page into a separate file?

    How can I get the Windows Fax and Scan program to scan mutiple page to a file rather than to each page into a separate file?

    You don't, so use the scanning software provided by your device manufacturer, assuming that you have installed the unknown device with their installation cd or the download direct the full version of this site to the

  • I bought Photoshop Element online 19/01/2015 and have AD015439775 number, but not the serial number.  How can I get the serial number, please?

    I bought Photoshop Element online 19/01/2015 and have AD015439775 number, but not the serial number.  How can I get the serial number, please?

    Using redemption code

    Mylenium

  • I just bought Elements 8 online. How can I get the exercise files? Thank you!

    I just bought Elements 8 online. How can I get the exercise files? Thank you!

    Do you mean the exercise files that are given with PSE8 box?

  • How I would get the background of the body element to open the browser window wide

    How I would get the background of the body element to open wide the browser window? I've heard that using an HTML tag or CSS rule that I can put across a background which is placed in the body element without using javascript is that true?

    You could, but why, (she also would work properly, as it is)?

    This size not your background image and that only the window correspond to your design, not your design to adapt to the window. If you want your design to fit a window much easier and not javascript dependent way would be to use page css liquid layouts, (as I said earlier, the background image will not develop unless you use values of %).

    For liquid layouts testing - http://www.adobe.com/devnet/dreamweaver/articles/bk_dwcs4_mastering_css.html

    PZ

  • How can I get the value of the element checked a box to tick LOV?

    Hi all

    I need to insert rows into a table when a checkbox element is checked.
    The checkbox element is a LOV in a form.
    -----------------------
    Select the DESCRIPCIÓN display_value, ID_DOCUMENTO return_value
    of DOCUMENT
    order by 1
    ------------------------------

    Source
    ------------------------------
    DECLARE
    CURSOR C_REG_DOC IS SELECT ID_DOCUMENTO FROM REGISTRO_DOCUMENTO WHERE ID_REGISTRO =: P6_ID_REGISTRO;
    v_id_documento documento.id_documento%TYPE;
    v_results VARCHAR2 (50);
    Boolean v_first_loop: = true;
    BEGIN
    for this loop C_REG_DOC
    If v_first_loop then
    v_results: = it.ID_DOCUMENTO;
    v_first_loop: = false;
    on the other
    v_results: = v_results |': ' | it.ID_DOCUMENTO;
    end if;
    end loop;
    Return v_results;
    END;
    --------------------------

    I need to create a process to insert rows in a relational table, but I do not know how...
    ------------------
    FOR *? *
    LOOP
    INSERT INTO registro_documento (id_reg_documento, id_registro, id_documento)
    VALUES(null,:P4_ID_REGISTRO,???);
    END LOOP;
    ---------------

    How can I get the value of the active element (id_documento) to insert it?

    Thank you!

    Alex

    Hello:

    You can use the apex_util.string_to_table function to retrieve the values of the LOV as shown in the example

    declare
    arr wwv_flow_global.vc_arr2;
    begin
    arr:= apex_util.string_to_table(:P_CHECKBOX_LOV_ITEM)
    for x in arr.first..arr.last loop
    // insert statement
    iNSERT INTO registro_documento( arr(i) ,.........id_reg_documento,id_registro,id_documento)
    end loop;
    end;
    

    CITY

  • How do you get the help of a Page element to display text?

    How do you get the help of a Page element to display text? We entered our text in the help text of our Page element part. However, when you place the cursor of the mouse on the Page element, any help text is displayed? Any comment is appreciated. Thank you.

    How do you get the help of a Page element to display text?

    .. .a page element...

    Is there a link for the point label? Otherwise, change the model of wording of article to use the model named "Necessary with assistance" or "optional with assistance.

    When you place the cursor of the mouse on the Page element, any help text displayed?

    If there is a link, you must click on the link.

    Scott

  • Gmail button (in internet explorer) keeps having moved to the right in my taskbar when I wasn't staying on the left (that's why I first open). How can I get the taskbar buttons to stop randomly to reorganize and stay in order?

    Gmail button (in internet explorer) keeps having moved to the right in my taskbar when I want to keep it on the left (that's why I first open).  How can I get the taskbar buttons to stop randomly to reorganize and stay in order?  I'm talking about the buttons on list of my open applications and documents in Windows Vista.  The bar tasks are "locked", but the button of the window open with gmail in internet explore reappears suddenly in the good moments apparently random.

    It is in the middle part of the taskbar (what I found online so far is on the start menu, the quick launch area or area/system tray of notification, the location of the taskbar in full, either about grouping taskbar - I disabled because I would like to separate).  Can anyone help?  I don't understand why this is happening (or why microsoft would never do).

    Lock the taskbar that it prevents to be moved elsewhere on the office and maintains the different sections where they are - it does not block the tabs showing what is open where they were when they were opened.  There is no control for this function.  Maybe if you uncheck similar taskbar buttons group it will help, but I honestly don't know (and fear he won't make any difference - it may even make things worse).  This also happens to me and I was unable to find an answer.  I think that there are more than just random, but I can't telll you why he moves the legs periodically (sometimes it works fine all day and other days it happens almost immediately).  But still, there is no control for this function, so there is no way to tell him to keep a specific order or to lock an established order, once it has been created.  I suspect that it happens because the notification area icons appear and hide and new programs open and close and which changes the amount of space available and so he rearranges things so that they match and apparently does not always consider the original sequence in which the elements have been added.  Maybe if you remove the Quick Launch toolbar and then add again, the order will reset (but that I know not - probably not in the original sequence, which I doubt is logged nowhere - it did not work when I tried it).

    Unfortunately, I don't have a solution to this problem (and I spend a little time looking for even before myselff posed the question) and do not believe that there is a.  It is also unfortunate that you can't move them so they can be put back in the right order if they change.  I don't think that there is nothing wrong with your system or that it is something that can be repaired or fixed - it's just the way it is and we just have to live with it.  I don't know any 3rd party software that controls the order of tabs open in the taskbar program (but you can check out Bing, Gooogle,www.tucows.comand www.download.com to see if I'm wrong on this - here n "t all when I looked trying to solve this problem for my own system).

    I'm sorry it wasn't what you wanted to hear, but it's like that.  I don't know if it's different in Windows 7.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • I use 3.6. How can I get the update to look like this? I really don't want to use IE or MSN but if that's all that I have, then let me know. Thank you

    I use 3.6 because I like how it spans my toolbars instead of just me giving bookmarks in the corner and firefox solitaire in the opposite corner. I know that I can open the bookmarks bar, but it's not the same. I want that the file, editing, display, history, bookmarks, tools, help toolbar throughout. How can I get the new firefox to do this

    This should duplicate the image you posted what you look for Firefox 5 in (this application should be BLOCKED) double wire.

    Menu bar

    • Right click on a blank space at the end of the tab bar, click on 'Menu Bar' to place a check mark
    • Checked menu bar = bar menus; Firefox button
    • Unchecked menu bar = bar menus; The Firefox button
    • Other methods of doing the same thing:
      • Click the Firefox button > Options, click on menu bar
      • Quickly activate/disable Menu bar, power: ALT + V + T + M

    Tabs on top

    • Right click on a blank space at the end of the tab bar, click "Tabs at the top" to remove the check mark
    • Tabs on top checked = tabs at the top toolbars
    • Tabs on top unchecked = tabs below the toolbars
    • Other methods of doing the same thing:
      • Click the Firefox button > Options, click on the tabs on top
      • Toggle Quick tabs on top on / off: ALT + V + T + T

    Separate the Reload / Stop button and the position of the Home button

    • Open the Customize; do one of the following:

      • Right click on the empty space at the end of the tab bar, choose "Customize".
      • Click the Firefox button > Options > toolbars
      • If you use the menu bar, click View > Toobars, click Customize
      • Quick open window customize: ATL + V + T + C
    • the buttons Reload and Stop appears distinct between the URL/address bar and the search bar. When the window customize is open, do one of the following categories, to separate the buttons:
      • Drag the button to the left of the Reload button
      • Drag a 'space' between the Reload and Stop buttons
      • Drag one or two buttons anywhere on the separated by a 'space' or another icon Navigation bar or reverse the order of Stop-Reload to keep them separated
    • Drag the button to the right of the search bar
    • Click "Done" in the bottom right of the window customize when you are finished.

    Color backward/forward, home, the buttons Stop and reload

    If this answer solved your problem, please click 'Solved It' next to this response when connected to the forum.

    Not related to your question, but...

    You must update some plug-ins:

  • How can I get the ePrint android app to print on the correct printer?

    My home network is a HP OfficeJet Pro 8500 A909 connected to the network wired (not wireless), and which is NOT active ePrint (I understand it does not support ePrint).

    The network also has a HP OfficeJet 7500 has yet once connected to the network by wire (not wireless) and what ePrint IS activated.

    Both printers are on my network 192.168.1.x behind a router, but not a proxy with separate IP addresses.

    If I send a print by the 7500 ePrint a email address, he goes out on the printer correct (7500).

    But If I print using the HP ePrint home & Biz Android app that shows to the 7500 a print out immediately on the 8500 - the incorrect printer. The app shows the type of printer as 8500, although she still bears the name of 7500 a correct.

    So I have 3 questions:

    1. How could I get the ePrint initiated by app printed to reach the 7500 a?

    I like the idea that it is possible to reach the 8500 and 7500 a remotely (when I discovered ePrint after buying the 7500 a I checked if the 8500 supported that to find it does not work). But, if I wanted to keep accidental remote printing to the 8500 then...

    1. How can I print on the 8500 email? (Remember, emailed still prints go to the 7500).
    2. How can I add the 7500 a the ePrint application so that I can print to the 7500 a still without disturbing the current app ePrint printer that prints to the 8500?

    Thanks for the tips you may have.

    Kevin

    Hi, I would like to try and answer your questions to the best of my ability:

    1. How could I get the ePrint initiated by app printed to reach the 7500 a?

    With the printed file you want displayed in the app, you must see the details of the printer at the bottom of the screen on your device. If the printer you want to print to is not presented, you can press the arrow to the right of the name of the printer and then select the printer at the top of the next screen. It will automatically search and find printers available on your network. Choose the printer you wish to print and it will update the printer selected at the time of printing. I've included a few screen shots of what it will look like

    1. How can I print on the 8500 email? (Remember, emailed still prints go to the 7500).

    Unfortunately, it is not possible to print on the 8500 email. The printer must have the ability of ePrint in order to be able to do this.

    1. How can I add the 7500 a the ePrint application so that I can print to the 7500 a still without disturbing the current app ePrint printer that prints to the 8500?

    See the answer to the first question

    If this does not solve your problem you can try to install the HP Home Network Diagnostic Utility tool to check that nothing is wrong with your network printers

  • How now to get the Mac version?

    Hello

    We are on Mac.

    We have downloaded the version of Photoshop Elements to try it, then via the link, we ordered without realizing that the relationship was bad and we bought the version of Windows.

    How now to get the Mac version?

    Thanks for your help,

    Hello

    Please see: -.

    Exchange a product for a different version of the language or platform

Maybe you are looking for