How to extract the values of the line full in the bean to support using the primary key

Hello

I have a table that has columns as plant_name, business planner email id and identification of email resident engineer. Here, Plant_name is the primary key.

Now, I have this plant's name slipped and dropped like selectonechoice (drop) on page jsff. In this user can select any name of 1 plant drop down.

Right now, I can go get plant in backing bean name, but I can't understand how business plan for extraction and identification of email of the engineer resident in this key primary-plant_name at the bean to support.

Please let me know if anyone has an idea in this regard.

JDeveloper version 11.1.1.6.0

Thanks in advance.

Sneha

Sneha211 wrote:

On the jsff page

required = "#{bindings." Plant.hints.Mandatory}.

shortDesc = "#{bindings." Plant.hints.ToolTip}.

ID = "soc1" unselectedLabel = "- Select -"

autoSubmit = 'true '.

Binding = "#{backingBeanScope.backingbean.plantbean}" > "

ID = "si1" / >

In backing bean

DCBindingContainer = lBindingContainer

(DCBindingContainer) BindingContext.getCurrent () .getCurrentBindingsEntry ();

DCIteratorBinding lBinding = lBindingContainer.findIteratorBinding("SupplierVO1Iterator");

NewRow row = lBinding.getCurrentRow ();

String aamplant1 = (String) newRow.getAttribute ("Plant");

Hi Sneha, you've written code for it

you have found the current line and the primary key then this line, then why you not not using this same rank to get the other attributes?

NewRow row = lBinding.getCurrentRow ();

String aamplant1 = (String) newRow.getAttribute ("Plant");

String businessPalnner = (String) newRow.getAttribute ("business_planner"); Returns the value of the same line

Engineer in String = (String) newRow.getAttribute ("engineer");


OR if your condition is like that-

you have a primary key field value, but you do not have the corresponding line, then you can get that line and it's attribute by using the primary key value

See - http://adfgouravtkiet.blogspot.in/2012/10/filtering-of-data-from-vo.html

Hope it helps

-Ashish

Tags: Java

Similar Questions

  • How to generate the primary key element and move to another page?

    How to make the primary key value to another page in a table?

    Form on T_ITEMS 2.png

    Hello

    I am a beginner in the apex,

    Please, now I want to add the primary key to page 1 for item id in page 2...

    Notice:

    Before, I created (process of pl/sql in the rendering of page @ after the header section) to get the id of secuance.

    BEGIN
    :P17_ID := seq_t_items_id.NEXTVAL;
    END;
    
    
    

    primary key is generated for the element ID of page 1... BUT When I update 'page 1' I see error and solved when shut down my browser and open it again...

    Please help me to...

    1. Generate a primary key (article id @ page 1)... without refresh error. ?
    2. Pass him (item_id) on page 2

    Thank you all for...

    Sorry I'm beginner in apex,

    I don't know how Pass value of the item_id TO page 1 page 2 "in the form ID", turn to the first PHOTO... .
    Help me..

    Thank you

  • How to find the primary key columns in the tables in MS Access using SQL queries

    How to find the primary key columns in the tables in MS Access using SQL queries

    Hello

    This is the forum for Windows Vista programs related issues.

    For better assistance, please try instead the Forums in SQL Server .

    Thank you! Vincenzo Di Russo - Microsoft MVP Windows Internet Explorer, Windows Desktop Experience & security - since 2003. ~ ~ ~ My MVP profile: https://mvp.support.microsoft.com/profile/Vincenzo

  • Shape of the apex - how to get the primary key value manually?

    Hello

    Whenever I create form by using wizard Apex, he asks me to specify the trigger/sequence/pl/sql function to fill the primary key value.

    However, if I want to specify primary key myself (ie. undetermined generated automatically), how I can clarify that?

    Thanx

    Hello

    You mean by yourself: by hand or by a pl/sql?

    If you say by trigger, the system does not take on what number is sent. If you can give it "manually".

    May I ask what is the reason for this?

    See you soon,.

    Arnaud

  • How to get the primary key of the node selected in af:tree

    Hi all

    I use JDeveloper 11.1.1.5.0.

    I want to get the primary key of the node selected in the af:tree element. I wrote the code below in SelectionListener:
        public void drzewkoRwaSelectionListener(SelectionEvent evt) {
            RichTree tree = (RichTree)evt.getSource();
            TreeModel model = (TreeModel)tree.getValue();
            RowKeySet rowKeySet = evt.getAddedSet();
            Object key = rowKeySet.iterator().next();
            
            model.setRowKey(key);
       
            System.out.println(rowKeySet);
            System.out.println(rowKeySet.size());
    The result looks like this:
    [[oracle.jbo.Key[5 ], oracle.jbo.Key[6 ], oracle.jbo.Key[12 ],oracle.jbo.Key[14 ]]]]
    1
    I need the values of the last 2 nodes:
    1: oracle.jbo.Key [14]
    2: oracle.jbo.Key [12]

    How can I get?

    Kind regards
    Wojtek.

    Hello

    Try this code:

    {} public void drzewkoRwaSelectionListener (evt SelectionEvent)
    RichTree tree = (RichTree) evt.getSource ();
    Model TreeModel (TreeModel) = tree.getValue ();
    RowKeySet rowKeySet = evt.getAddedSet ();
    Key of the object = rowKeySet.iterator () .next ();

    model.setRowKey (key);

    System.out.println (rowKeySet);
    System.out.println (rowKeySet.Size ());

    Object [] keys = rowKeySet.toArray ();
    List (list) = keys [0];
    Keys = list.toArray ();
    * //from the table keys, you can get according to the value you want using as: [2], [3] key *.

  • How to add the primary key for the table with the existing data?

    The table is already busy data. There was no primary key before, so for each column, there are some duplicate values.

    I want to add a new column, which should be of the integer data type and can automatically incremented, from 001. I tried with Oracle SQL Developer, but it says "ORA-01758: table must be empty to add mandatory (NOT NULL) column. How can I do? Thank you!

    Hello

    Look for the [ALTER TABLE | http://download.oracle.com/docs/cd/B28359_01/server.111/b28286/statements_3001.htm#sthref4803] command to find out how to add a column (step (1)) and a (step (3)) constraint to an existing table.

    For the step (2):

    CREATE SEQUENCE  employee_id_seq
    START WITH  1
    ;
    
    UPDATE  employee
    SET     id  = employee_id_seq.NEXTVAL;
    

    When you create a sequence, START WITH 1 is the default value, so that the line is not really necessary above... I've included just to show how you could start with any number you have chosen.

  • Database offline: how to configure the primary key storage options?

    I want to model a large database that has its primary keys in their own table space. I don't see primary key storage Options as I do for the index and the properties of the table. JDeveloper supports storage options capture for primary keys? I use JDeveloper 11 g 11.1.1.0.0.

    Published by: flszen on October 17, 2008 13:42

    Hello

    I entered an enhancement request for this

    Thank you very much

    Susan
    http://www.susanduncan.blogspot.com

  • How to identify the primary key relationship, key and forien

    Hello

    I wanted to know for a given table, how to identify if there is no child table. I could get details of the constraint in ALL_CONSTRAINTS or DBA_CONSTRAINTS, but I will not be able to determine who his children tables.
    If there is no other available table, it's possible to identify the parent and child tables so please please let me know.

    I know that we can check through creation of Table (DDL) script, but I need to understand programmatically. Is sort available?

    Thanks in advance.

    Kind regards
    SK

    SK says:
    Hello

    I wanted to know for a given table, how to identify if there is no child table. I could get details of the constraint in ALL_CONSTRAINTS or DBA_CONSTRAINTS, but I will not be able to determine who his children tables.
    If there is no other available table, it's possible to identify the parent and child tables so please please let me know.

    I know that we can check through creation of Table (DDL) script, but I need to understand programmatically. Is sort available?

    use

    query using R_CONSTRAINT_NAME where CONSTRAINT_TYPE = 'R '.

    SQL> desc user_constraints
     Name                            Null?    Type
     ----------------------------------------- -------- ----------------------------
     OWNER                                  VARCHAR2(30)
     CONSTRAINT_NAME                  NOT NULL VARCHAR2(30)
     CONSTRAINT_TYPE                        VARCHAR2(1)
     TABLE_NAME                       NOT NULL VARCHAR2(30)
     SEARCH_CONDITION                        LONG
     R_OWNER                             VARCHAR2(30)
     R_CONSTRAINT_NAME                        VARCHAR2(30)
     DELETE_RULE                             VARCHAR2(9)
     STATUS                              VARCHAR2(8)
     DEFERRABLE                             VARCHAR2(14)
     DEFERRED                             VARCHAR2(9)
     VALIDATED                             VARCHAR2(13)
     GENERATED                             VARCHAR2(14)
     BAD                                  VARCHAR2(3)
     RELY                                  VARCHAR2(4)
     LAST_CHANGE                             DATE
     INDEX_OWNER                             VARCHAR2(30)
     INDEX_NAME                             VARCHAR2(30)
     INVALID                             VARCHAR2(7)
     VIEW_RELATED                             VARCHAR2(14)
    
    SQL> 
    
  • How to extract the values of XMLTYPE column,

    SQL > create table temporary global xmtype_tab (xmlfile xmltype);

    SQL > select * from all_directories;

    SYS RESTOREDIR/home / / dbimptask /.

    insert into xmtype_tab values (xmltype (dbms_xslprocessor.read2clob ('RESTOREDIR ','LAS_SETUP.xml ')));

    1 line of creation.

    SQL > select * from xmtype_tab;

    XMLFILE
    --------------------------------------------------------------------------------
    <? XML version = "1.0"? >
    rowset <>
    < ROW >
    < DATA_CAPTURE_ON > 1 < / DATA_CAPTURE_ON >


    How to extract the values inside each tag?


    XML file has the following data...


    rowset <>
    < ROW >
    < DATA_CAPTURE_ON > 1 < / DATA_CAPTURE_ON >
    < > 9600 BAUD_RATE < / BAUD_RATE >
    < ACK_TIMEOUT > 1 < / ACK_TIMEOUT >
    < TUBE_TRAVEL_LIMIT > 4 < / TUBE_TRAVEL_LIMIT >
    < SEND_SID_TIMEOUT > 1 < / SEND_SID_TIMEOUT >
    < INDEX_Q_TIMEOUT > 2 < / INDEX_Q_TIMEOUT >
    < HW_HANDSHAKING > 1 < / HW_HANDSHAKING >
    < / ROW >
    < / LINES > ';

    I use the Oracle 10.2.0.3 version...

    Why does this work?

    You are missing the tag of the ROWSET:

    select extractvalue (xmlfile, '/ROWSET/ROW/BAUD_RATE') baud_rate
      from xmltype_tab
     where existsnode (xmlfile, '/ROWSET/ROW/BAUD_RATE') = 1;
    
  • Need urgent help! In my Vision Application, how to extract the parameters of the geometric model specified curve was generated by the template editor OR?

    I have an application of machine vision, in which the geometric pattern match technique was used to find the target in the images of type variant.

    as we know, we do a geometric model by model OR editor in the editor we can adjust the parameters of the curve specified settings to get the desired curves and we derive the custom box to ignore during the match. then we save the use of the same model in our application of vision.

    Now my question is coming. When I program my request for the geometric game. I have specified the parameters of the curve for the entrance of the IMAQ Advanced Setup learn ringtone 2, of course, I have to adjust this identical to the model, but I don't know how we extract the geometric model. I tried all the methods, for example, I can read data custom, IMAQ get characteristics of the geometric model(it's just for the basic functionality? so is there even a VI based edge?), even at anasys PNG file formats! But I can't read the info of the geometric model by myself!

    It is also illogical to adjust the CURVE SETTINGS manually again for the " IMAQ Advanced Setup Learn Pattern 2" after that I already have in the template editor OR!

    Hello

    Why do you need to specify the curve settings once again, if you have already built a model using the template editor? You don't need to use "IMAQ Advanced Setup learn geometric model 2 VI" to find games (see the attached example).

    You can wire the 'curve settings' control to 'IMAQ configuration geometrical game model 2 VI', but the values are not used if wire you a Boolean true to the node "use learning curve settings" (it's like that by default). To prove it, I enclose a small program with pre-created model (using the template editor) for a geometrical alignment. The model and the test of three images are also included.

    Try changing the settings of the curve with the 'use know curve settings' enabled, and you will see the corresponding score remains the same. Disable the Boolean control, then try to change the curve settings.

    Also take a look at the detailed help for "IMAQ configuration geometrical game model 2 VI", specifically the "learning curve parameters of use."

    I hope this helps.

    Best regards

    K

  • How to extract the signal from the waveform of my power level designated?

    Hi all

    How can I extract the signal of the waveform accroding to the power level? I read the Trigger & Gate .vi, but this vi retrieves the signal duration. I want to extract the signal depending on the power level.

    As shown in the following figures, the signal I want to deal with is between 130000 to 140000, if I Zoom, I can see the useful signal is between 135400 to 138200. The question is how to extract the signal in the area?

    I tried the sub_NoiseEst_And_Chop_Shell.vi in the example of Packet_based_link also, but this Subvi seems to be a bit slow. Can someone give me the best advice? Thanks in advance!

    I'm working on something similar, but have not had time to fully develop.

    My idea was to use an envelope detector (low pass filter) and then use a detection of energy VI on the envelope.

    Here is where I left

  • I downloaded a free trial of Adobe Creative cloud and dreamweaver CC. I am not able to download a .psd to see how to extract the HTML and CSS.

    I downloaded a free trial of Adobe Creative cloud and dreamweaver CC. I am not able to download a .psd to see how to extract the HTML and CSS.

    Download button is disabled. What is the case for a free trial?

    Hey girijamg,

    I asked that you try to open a page because snippet Panel will be disabled until there is a html page is open in DW.

    Excerpt from Panel will be ready for the job that after any html page is open in DW.

    Hope it makes sense.

    Lalita

  • How to refer to the primary key column of newly inserted rows of tabular form

    Hello

    I use APEX 4.2.0.00.27 with Oracle DB 11.2.0.3.0.

    I work with a tabular presentation wizard-created for insert and update a table using the integrated SRM process (sequence 10).  I'm trying to use a process of anonymous block of PL/SQL (sequence 30) to make another manipulation of table after the records were inserted or updated.  The manual process is associated with my tabular form and I use the variables of name of column binding in my program block.

    My (rsn_test) table has 3 columns: test_id (number), test_nbr (number), test_id2 (number).  Test_id column is identified as the primary key and the type of the source already exists a sequence rsn_test_seq.  Column test_id2 gets its default value 0 to a hidden page element.

    I would use my manual process for updating the value of the test_id2 column.  If it's 0 then I want to put the value of the column test_id.  If it is any other value, then it must remain at this value.  My logic works very well for an existing line, but I'm running into a problem with the newly added lines.  The new lines get inserted, but the test_id2 column remains the default value 0.  I can tell the debugger that the SRM process is triggered first and inserts the line, then my manual dealing with fires.  The problem seems to be that the connection variable: TEST_ID for the primary key column remains NULL after insertion.  I don't know how to get the value of the column test_id of my newly created line to use in my PL/SQL block to my update.

    Process of PL/SQL:

    DECLARE
    BEGIN
       :P7_SHOW := NULL;
       :P7_SHOW := NVL(:TEST_ID2,555) || ' and ' || NVL(:TEST_ID,787) || ' and ' || NVL(:TEST_NBR,9999);
       IF :TEST_ID2 = 0 AND :TEST_ID IS NOT NULL THEN
          UPDATE rsn_test
             SET test_id2 = :TEST_ID
           WHERE test_id = :TEST_ID;
       ELSE
          :TEST_ID2 := :TEST_ID2;
       END IF;
    END;
    
    

    Excerpt from the debugger:

    0.01625 0.00010 Processes - point: ON_SUBMIT_BEFORE_COMPUTATION
    0.01635 0.00008 Branch point: Before Computation
    0.01643 0.00003 Process point: AFTER_SUBMIT
    0.01646 0.00022 Tabs: Perform Branching for Tab Requests
    0.01668 0.00008 Branch point: Before Validation
    0.01676 0.00024 Validations:
    0.01700 0.00135 Perform basic and predefined validations:
    0.01835 0.00020 Perform custom validations:
    0.01855 0.00049 ...Validation "TEST_NBR must be numeric" - Type: ITEM_IS_NUMERIC
    0.01904 0.00007 ......Skip for row 1 because row hasn't changed
    0.01911 0.00016 ......Skip for row 2 because row hasn't changed
    0.01927 0.00012 ...Validation "TEST_ID2 must be numeric" - Type: ITEM_IS_NUMERIC
    0.01939 0.00007 ......Skip for row 1 because row hasn't changed
    0.01945 0.00018 ......Skip for row 2 because row hasn't changed
    0.01964 0.00005 Branch point: Before Processing
    0.01968 0.00004 Processes - point: AFTER_SUBMIT
    0.01972 0.00588 ...Process "ApplyMRU" - Type: MULTI_ROW_UPDATE
    0.02560 0.00154 ...Execute Statement: declare function x return varchar2 is begin begin for c1 in ( select "RSN_TEST_SEQ".nextval pk from sys.dual ) loop return c1.pk; end loop; end; return null; end; begin wwv_flow.g_value := x; end;
    0.02714 0.00140 ......Row 3: insert into "APPPCSRSN"."RSN_TEST" ( "TEST_ID", "TEST_NBR", "TEST_ID2") values ( :b1, :b2, :b3)
    0.02854 0.00011 ...Process "ApplyMRD" - Type: MULTI_ROW_DELETE
    0.02865 0.00004 ......Skip because condition or authorization evaluates to FALSE
    0.02869 0.00015 ...Process "Process Submit" - Type: PLSQL
    0.02884 0.00007 ......Skip for row 1 because row hasn't changed
    0.02891 0.00012 ......Skip for row 2 because row hasn't changed
    0.02903 0.00012 ......Process row 3
    0.02915 0.00429 ...Execute Statement: begin DECLARE BEGIN :P7_SHOW := NULL; :P7_SHOW := NVL(:TEST_ID2,555) || ' and ' || NVL(:TEST_ID,787) || ' and ' || NVL(:TEST_NBR,9999); IF :TEST_ID2 = 0 AND :TEST_ID IS NOT NULL THEN UPDATE rsn_test SET test_id2 = :TEST_NBR WHERE test_id = :TEST_ID; ELSE :TEST_ID2 := :TEST_ID2; END IF; END; end;
    0.03344 0.00013 ...Session State: Saved Item "P7_SHOW" New Value="0 and 787 and 1300"
    0.03356 0.00004 Branch point: After Processing
    0.03360 0.00048 ...Evaluating Branch: "AFTER_PROCESSING" Type: REDIRECT_URL Button: (No Button Pressed) Condition: (Unconditional)
    0.03407 0.00013 Redirecting to f?p=290:7:8717971109610:::::&success_msg=0%20row(s)%20updated%2C%201%20row(s)%20inserted.Success%2FEBD244168556408CBA714E3974918C09%2F
    0.03420 0.00012 Stop APEX Engine detected
    0.03432 0.00007 Stop APEX Engine detected
    0.03439 - Final commit
    
    

    Any suggestions?

    I have run tests on

    https://apex.Oracle.com/pls/apex/f?p=83488:1 demo/demo

    to see your problem.

    I have 2 solution for your problem.
    I add trial NOT tabular just usual block of PL/SQL

    BEGIN
    I'm IN (SELECT TEST_ID FROM RSN_TEST WHERE TEST_ID2 = 0)
    LOOP
          UPDATE RSN_TEST
             SET test_id2 = TEST_ID
           WHERE test_id = i.TEST_ID;
      END LOOP;
    END;

    and works very well, you can see in the sample.

    The other solution is to show new generated TEST_ID

    Adding a sequence as a default value for a column in a table field

    And to execute your procedure.

    I get how is with the good luck of time.

    By

  • G530 - how to fix the Novo key features?

    Hello guys!

    Some time ago I completely changed partitions configuration on my laptop, because I wanted to have two systems - Windows 7 (the default) and Ubuntu. Previously, I had an image of the LENOVO_PART (partition Lenovo recovery) by Paragon and burned on DVDs. Its contain images (a recovery key 7) OKR - mbr, boot partition and system (with default settings) file that contains information about the partition sizes and sectors. I deleted all the partitions and create new partitions.

    Now I want to restore the original scores, so I restored the partition recovery DVDs, and I put his ID 12 (PTEDIT32) and rebuilt the other partitions on the accuracy of a sector.

    Now, I have the following partitions: 1 - start (default is unnamed), 2 - system (default is unnamed), 3 - Lenovo, 4 - LENOVO_PART. Unfortunately the Lenovo System Restore does not start once I pressed the Novo key, so I put the active recovery partition and I can't restore the original mbr, boot, and system. Everything would be fine, but the Novo key doesn't work, then press start the normal system of Windows 7, not the recovery system.

    Could someone tell me how could fix the Novo key without the Lenovo service features?

    BTW, sorry for my bad English

    It should work properly. It seems that there is something wrong with the a key.

    at this point, I suggest you call lenovo support line and ship your laptop.

  • generate a numerical value to use as the primary key

    Can someone correct me, in an interview that the question was asked.

    How not one generates a numeric value to use as the primary key?

    Years

    We can get it using the sequence. For example:

    CREATE SEQUENCE cust_seq

    START BY
    1000

    INCREMENT OF
    1

    NOCACHE

    NOCYCLE;

    Hi Shu,

    sequence would be my choice and 12 c new type called identity.

Maybe you are looking for

  • How to stop an e-mail address to unwanted

    I have an e-mail address that is in a filter and the filter is supposed to work upstream of the junk e-mail filter. However, every single email from this email address goes into the spam folder. How can I get Thunderbird to:1. respect the filter that

  • Satellite Pro U400 - 13A: key FN and the "zoom" feature

    I hit the button FN + space to zoom.My appear now shows a small desktop computer with a 'black space' border around it.I hit the FN + space to return to 'normal', but I'm still left with a small desktop display. How to restore the desktop computer to

  • Dell Inspiron 9400 keeps droping my connection wrleless. Who can help?

    How can I fix my dell 9400 who keeps dropping my WiFi connection.   Sort 3 different browsers and all have the same prob.   Thanks Al

  • I get an error code 643 during the installation of Windows updates.

    Security updates will not download.  Tried all the "fix - its" from the microsoft support site.  Downloaded microsoft security definitions.  A virus scan.  Nothing works. Are still unable to update.   Error code is Ox643, tried all the "fixes" for th

  • Encrypt the password weblogic in the config.xml file

    Hi friends,I get the below error. while trying to start the administration server.< 17 November 2015 14:18:09 IST > < opinion > < Log Management > < BEA-170019 > < server log file /u01/app/orawls/product/fmw11g/user_projects/domains/ClassicDomain/ser