Read table to get next value (Sequence Question)

Is there a function in line with my_seq_no.nextval that can read a value in the previous field and get the next sequence number? I know how to create a sequence, but I thought that there is something like a getnextval function.
Thanks.

Preston,
The problem is that there is no such thing as a previous value in Oracle.
You have to specify some way (like maximum number.. etc..) to get the expected value...
Sometimes , you can see code like....
insert into emp values
(select max(empid) + 1 from emp) new_emp_id,
''XYZ' ename,
from dual;As is evident...the above code takes the maximum value from the table emp and gives you the next emp id.
The problem here is that all the currently logged in users will get the same value for the new empid until someone inserts a record and then.. all the others would have unique constraint errors (if you have the right constraints in place).
Using sequences is the right way to make sure all the concurrent users get their own unique values for the new values.
As for the getnextval, one could always come up with a function which just selects the max(col_name)+1 and returns it... but it has the same problems as the insert...select mentioned above.. So i would rather not provide code for such a thing.. I'd be doing more damage than help. Please use a sequence for your case.

Similar Messages

  • Table to get Characteristics Value

    Hello Everyone,
    I need to fetch State Of Matter(SAP_EHS_1013_001_VALUE) for several Real Substances. Could anyone tell me the table in which i can get the values for all the Specifications in single shot.
    Thanks in advance,
    Vignesh

    Dear Vignesh
    in addition to what has been explained yet:
    EH&S does have a number of standard output variants, which can be used to get all data without additional  programming. To get data you can use (based on hit list) e.g. output variant:
    - Valuation
    - EXCEl
    - SUB_OUTPUT
    Keep in mind that you need to populate correct the interface of BAPI_BUS1077_GETDETAIL; keep in mind that you can have nnumber of sort sequences/data records/value assignments per substance/specification.
    The enumarted output variants provide you the necessary data by default.
    As you did not describe the need of your request: it is clear that you can get the "same" result by using WWI techniques to retrieve the data from the characteristic.
    Hope that this helps
    With best regards
    C.B.
    Edited by: Christoph Bergemann on Nov 8, 2011 6:35 PM
    Edited by: Christoph Bergemann on Nov 9, 2011 8:59 PM

  • GetMaxRows() to get next value

    Hello
    I have a table that has a column of just ID which is just an integer. When i add a new record into the database whats the best way for me to get the next value for ID column. lets say before the insert statement the last row of the table has ID 50. In my insert statement how can i determine that the next value should be 51. i thought of using getMaxRows() and adding one to that everytime i do insert.
    But whenever i do getMaxRows() i just get 0 back. i did something like this
    String max = "Select * from table";
    stmt1 = connection.prepareStatement(max);
    result = stmt1.executeQuery();
    System.out.println("This is max rows"+stmt1.getMaxRows());

    i do think this method will occur some problem...
    think...if u have 50 rows of data...and some day u need to delete data
    ID 49...so the next data ID ur program will produce is ->50...but data ID 50 already exist in database...so maybe ur program will get duplicate of primary key error.
    this is just assumsion.because before that i also think the getMaxRow() can solve my problem...but it doesn't.
    and usually data ID is the primary key... :)
    if u has no primary key u can jus ignore this reply

  • OWHS table not getting any value in PLD

    I am trying to make a pld in which i want to pull the database table owhs and place the warehouse address i am not getting any value in the PLD however there is adress in the ware house field still its not getting me any result
    Please help
    Regards,
    manish

    Hi Manish....
    Even if you get the OWHS table you wont get the address format as you desire. That is complete concatenated address. It will be like city, street, country like that.....
    Regards,
    Rahul

  • Trying to link thru 3 tables to get a value

    I am able to read a starting value {X12HEAD.GS_ID} from my input file. This is equal to a unique value {EDTRDPTNRS.GS_ID} in the EDTRDPTNRS table.
    Once that record is found, I can take the value {EDTRDPTNRS.TPID} and concatenate "_I_VENDOR" to it and find that value in the EDSUBTBL in the field LIST_NAME.
    Once that record is found, I can use the value {EDSUBTBL.LAWSON_VALUE} to find {APVENMAST.VENDOR}. I can then read the value of  {APVENMAST.VENDOR_VNAME} which is what I was looking for all along.
    if ({X12HEAD.GS_ID} = {EDTRDPTNRS.GS_ID}) then
        if (({EDTRDPTNRS.TPID}+ "_I_VENDOR") = {EDSUBTBL.LIST_NAME}) then
            if ({EDSUBTBL.LAWSON_VALUE} = {APVENMAST.VENDOR}) then
                {APVENMAST.VENDOR_VNAME};
    The problem is that this does not return anything. I also don't get any errors. Can somebody help me?

    I understand that I need to use SQL queries to get to the three levels. I tried to get the first level to work using,
    SELECT   "EDTRDPTNRS.TPID"
      FROM   "LOGAN9.EDTRDPTNRS", "JCARROTT.X12HEAD"
    WHERE   (EDTRDPTNRS.EXT_GS_ID = X12HEAD.GS_ID)
    The error message was:
    Error in compiling SQL expression: Database ConnectionError:'SQL Exception: [SQL State:] 42000 [Error Mesage]: ORA-00936:missing expression [Database Vendor Code: 936]'.
    I am trying to get the first answer so I can then use that answer for the next SQL Expression.

  • Please help - Joining three tables and get row values into Column. Please help!

    Hi,
    There is a SourceTable1 (Employee) with Columns like EmployeeID,Name,DOB.
    There is a sourcetable2 (EmployeeCode) with columns like EmployeeID,Code,Order.
    There is a source table 3  #EmployeeRegioncode  and its columns are (EmployeeID , RegionCode , [Order] 
    The target table 'EmployeeDetails' has the following details. EmployeeID,Name,DOB,Code1,Code2,Code3,Code4,regioncode1
    regioncode2 ,regioncode3 ,regioncode4 
    The requirement is , the value of the target table columns the Code1,code2,code3 ,code4,code5 values should
    be column 'Code' from Sourcetable2 where its 'Order' column is accordingly. ie) Code1 value should be the 'Code' value where [Order] column =1, and Code2 value should be the 'Code' value where [Order] =2, and so on.
    Same is the case for Source table 3- 'Region code' column also for the columns  regioncode1
    regioncode2 ,regioncode3 ,regioncode4 
    Here is the DDL and Sample date for your ref.
    IF OBJECT_ID('TEMPDB..#Employee') IS NOT NULL DROP TABLE #Employee;
    IF OBJECT_ID('TEMPDB..#EmployeeCode') IS NOT NULL DROP TABLE #EmployeeCode;
    IF OBJECT_ID('TEMPDB..#EmployeeDetails') IS NOT NULL DROP TABLE #EmployeeDetails;
    ---Source1
    CREATE table #Employee 
    (EmployeeID int, Empname varchar(20), DOB date )
    insert into #Employee VALUES (1000,'Sachin','1975-12-12') 
    insert into #Employee VALUES (1001,'Sara','1996-12-10') 
    insert into #Employee  VALUES (1002,'Arjun','2000-12-12')
    ---Source2
    CREATE table #EmployeeCode 
    (EmployeeID int, Code varchar(10), [Order] int)
    insert into #EmployeeCode VALUES (1000,'AA',1) 
    insert into #EmployeeCode VALUES (1000,'BB',2)   
    insert into #EmployeeCode  VALUES (1000,'CC',3)  
    insert into #EmployeeCode VALUES  (1001,'AAA',1)  
    insert into #EmployeeCode  VALUES  (1001,'BBB',2)  
    insert into #EmployeeCode  VALUES  (1001,'CCC',3)  
    insert into #EmployeeCode  VALUES  (1001,'DDD',4)  
    insert into #EmployeeCode  VALUES  (1002,'AAAA',1)  
    insert into #EmployeeCode  VALUES  (1002,'BBBB',2)  
    insert into #EmployeeCode  VALUES  (1002,'CCCC',3)  
    insert into #EmployeeCode  VALUES  (1002,'DDDD',4)  
    insert into #EmployeeCode  VALUES  (1002,'EEEE',5)  
    ---Source tbl 3
    CREATE table #EmployeeRegioncode 
    (EmployeeID int, RegionCode varchar(10), [Order] int)
    insert into #EmployeeRegioncode VALUES (1000,'xx',1) 
    insert into #EmployeeRegioncode VALUES (1000,'yy',2)   
    insert into #EmployeeRegioncode  VALUES (1000,'zz',3)  
    insert into #EmployeeRegioncode VALUES  (1001,'xx',1)  
    insert into #EmployeeRegioncode  VALUES  (1001,'yy',2)  
    insert into #EmployeeRegioncode  VALUES  (1001,'zz',3)  
    insert into #EmployeeRegioncode  VALUES  (1001,'xy',4)  
    insert into #EmployeeRegioncode  VALUES  (1002,'qq',1)  
    insert into #EmployeeRegioncode  VALUES  (1002,'rr',2)  
    insert into #EmployeeRegioncode  VALUES  (1002,'ss',3)  
    ---Target
    Create table #EmployeeDetails
    (EmployeeID int, Code1 varchar(10), Code2 varchar(10),Code3 varchar(10),Code4 varchar(10),Code5 varchar(10) , regioncode1 varchar(10),
    regioncode2 varchar(10),regioncode3 varchar(10),regioncode4 varchar(10))
    insert into #EmployeeDetails  VALUES (1000,'AA','BB','CC','','','xx','yy','zz','')  
    insert into #EmployeeDetails  VALUES (1001,'AAA','BBB','CCC','DDD','','xx','yy','zz','xy')  
    insert into #EmployeeDetails VALUES (1002,'AAAA','BBBB','CCCC','DDDD','EEEE','qq','rr','ss','')  
    SELECT * FROM  #Employee
    SELECT * FROM  #EmployeeCode
    SELECT * FROM  #EmployeeRegioncode
    SELECT * FROM  #EmployeeDetails
    Can you please help me to get the desired /targetoutput?  I have sql server 2008.
    Your help is greatly appreciated.

    select a.EmployeeID,b.code1,b.code2,b.code3,b.code4,b.code5,c.Reg1,c.Reg2,c.Reg3,c.Reg4 from
    #Employee a
    left outer join
    (select EmployeeID,max(case when [Order] =1 then Code else '' end) code1,
    max(case when [Order] =2 then Code else '' end)code2,
    max(case when [Order] =3 then Code else '' end)code3,
    max(case when [Order] =4 then Code else '' end)code4,
    max(case when [Order] =5 then Code else '' end)code5 from #EmployeeCode group by EmployeeID) b
    on a.EmployeeID=b.EmployeeID
    left outer join
    (select EmployeeID,max(case when [Order] =1 then RegionCode else '' end) Reg1,
    max(case when [Order] =2 then RegionCode else '' end)Reg2,
    max(case when [Order] =3 then RegionCode else '' end)Reg3,
    max(case when [Order] =4 then RegionCode else '' end)Reg4 from #EmployeeRegioncode group by EmployeeID) c
    on a.EmployeeID=c.EmployeeID
    Thanks
    Saravana Kumar C

  • Command button to get next value?

    i am new to j2me
    i have this code which just shows 2x10=20 for now
    Code:
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    public class TestMidlet extends MIDlet {
    private Form form;
    private StringItem testTable1;
    private Command testTable1Command = null;
    public void startApp() {
         Display.getDisplay(this).setCurrent(getValue(2));
    public void pauseApp() {
    public void destroyApp(boolean unconditional) {
    // form.addCommand(getExitCommand());
    //form.setCommandListener(this);
    private int getValue(int val){
    int total=val*10
    return total;
    what i want is add a 'NEXT' button(Command button) in the main display or canvas
    which clicked shows value of (value+1)x10 and so on
    for eg
    on first 'NEXT' click it should show 30(ie 3x10)
    again pressed shows 40 and so on
    i actually want to implement it to a calendar code
    next i press on next on january display calendar of feburary should come
    suppose calendar is being displayed in getValue function
    I want to make concept clear through above simplified example
    thanks

    Thanks for the encouragement; I am going through the tutorials and also own two books, the Easy HTML-DB book and the Pro Oracle Application Express book. I do find it odd that the books and tutorials don't assume one has already created the database and then wants to create an application after that- such as that they all begin with creating an application from a spreadsheet and talk about uploading data, things I would expect to be done via PL/SQL or some other approach (such as pushing from SAS to Oracle). So these tutorials spend a lot of time on the loading of data as opposed to actually creating a front-end application, which is frustrating to me because I've already got my database all loaded and modeled.
    But I will be more specific in questions in the future. If any of you need any SAS help, please ask at the SAS forum (google SAS-L, hosted by Univ. of Georgia).
    Thanks :-)
    -Mary

  • Get next value in a Multi Record Block

    Hi,
    I've a Multi Record block with 2 items like below.
    pos width
    1 7
    8 5
    13 5
    18 2
    ie pos in next item is sum of pos and width of previous item.I've already implemented this.
    The problem is if the user changes width in a particular record,I want to change next records pos automatically.
    To achieve this,I wrote a when-new-record -instance-trigger as follws:
    if :system.cursor_record=1 then
    :pos:=1;
    elsif :system.record_status='changed' then
    :pos:=:pos+:width;
    end if;
    but even Though I change column width of block,:system.record_status still remain 'INSERT'.
    Pls can u pls tell me how can I acheive this?
    Prashanth Deshmukh

    You cannot use Record Status like that.
    You need to create a procedure that loops through your entire block, keeping track of the pos and width of the prior record to calculate the new pos of each record.
    Your procedure would need to do something like this:
    Declare
        v_Pos  pls_integer := 1;
    Begin
      Go_block('B1');
      First_Record;
      Loop
        Exit when :System.record_status='NEW';
        :B1.pos := v_Pos;
        v_Pos := v_Pos + :B1.width;
        Exit when :System.last_record = 'TRUE';
        Next_Record;
      End Loop;
      First_Record;
    End;

  • When I go online to my bank my statments are unable to read as they get overlapped by the questions on the right, If I log in from Internet explorer the full page is shown, This is the same for the Daily Mail Rewards club.

    I use Windows XP professional, When I use Firefox to go to my Barclay bank statements, they are unreadable as the page with the amounts on is partly covered by the Questions on the right of the page, I also have this problem with the Daily Mail rewards club, If I login to my account from Internet Explorer it works fine for both, this is without making any changes to my setup.

    What you are experiencing is 100% related to Malware.
    Sometimes a problem with Firefox may be a result of malware installed on your computer, that you may not be aware of.
    You can try these free programs to scan for malware, which work with your existing antivirus software:
    * [http://www.microsoft.com/security/scanner/default.aspx Microsoft Safety Scanner]
    * [http://www.malwarebytes.org/products/malwarebytes_free/ MalwareBytes' Anti-Malware]
    * [http://support.kaspersky.com/faq/?qid=208283363 TDSSKiller - AntiRootkit Utility]
    * [http://www.surfright.nl/en/hitmanpro/ Hitman Pro]
    * [http://www.eset.com/us/online-scanner/ ESET Online Scanner]
    [http://windows.microsoft.com/MSE Microsoft Security Essentials] is a good permanent antivirus for Windows 7/Vista/XP if you don't already have one.
    Further information can be found in the [[Troubleshoot Firefox issues caused by malware]] article.
    Did this fix your problems? Please report back to us!

  • How to get the values multiple times for the specified element - ABAP IXML.

    Hi all,
             i have requirement to get the values for the specified elements multiple times. eg:., if the element is used in the xml 4 times then i need to get all the 4 values.  here is the sample xml,
    <View mmRelease="6.30" mmVersion="2.0" mmTimestamp="1180099591892" name="Comp_viewtestView" package="sap.com" masterLanguage="en">
    <AbstractView.InboundPlugs>
    <InboundPlug name="ip2">
    <ParameterizedFeature.Parameters>
    <Parameter name="ippara2">
    <Parameter.Type>
    <Core.ForeignReference modelName="DtDictionary" package="com.sap.dictionary" name="binary" type="DtSimpleType"/>
    </Parameter.Type>
    </Parameter>
    </ParameterizedFeature.Parameters>
    </InboundPlug>
    <InboundPlug name="hi">
    <ParameterizedFeature.Parameters>
    <Parameter name="hipara">
    <Parameter.Type>
    <Core.ForeignReference modelName="DtDictionary" package="com.sap.ide.webdynpro.uielementdefinitions" name="Visibility" type="DtSimpleType"/>
    </Parameter.Type>
    </Parameter>
    </ParameterizedFeature.Parameters>
    </InboundPlug>
    Here i need to store the following values in internal table, the element to get the values are,
    (1) InboungPlug name and the respective values of "Parameter name" and "Parameter type" name value.
    The output will be of 2 records & values should be
    Inbound plug name = ip2
    Parameter name    = ippara2
    Parameter type      = binary
    2nd record
    Inbound plug name = hi
    Parameter name    = hipara
    Parameter type      = Visibility
    These 2 records should be in internal table and then i will be passing to database table...
    Can anyone provide me the code for the above......
    Thanks in advance,
    Vishnu.

    I didn't get ur requirement..
    As per my understanding, upload the XML file into an internal table and then loop over the internal table and get the values for ptype and pname..
    XML ABAP  -  may b helpfull
    Edited by: Veeranji Reddy on May 7, 2009 2:10 PM

  • Best way to get sequence.next value in pl-sql/triggers

    Hi,
    I want to know the best practice about to get the sequence.next value in pl-sql procedures / triggers from the below two methods.
    1. SELECT PRINT_BATCH_SEQ.NextVal INTO PSQNO FROM DUAL;
    INSERT INTO TABLE R1TMP VALUES (PSQNO, '12-MAR-06');
    2. INSERT INTO TABLE R1TMP VALUES (PRINT_BATCH_SEQ.NextVal, '12-MAR-06');
    From the above two statements which one is best with respect to performance / parsing /memory usage.
    Kindly give your suggession please.
    Thanks,
    Riaz.

    Hi,
    Thanks for your immediate reply.
    My thought was
    1. when we do like this, at the time of insert the cost of the operation will be more and this will lead some performance issue as bulk insert.
    2. If we get it from dual and send the value as bind variable, then we can avoid the parsing of the sql.
    Please correct me if i am wrong.
    thanks,
    riaz.

  • Compare a column with the another table coulmn(which contains the sequence) and get the value which has higher sequence

    Hi All,
    I have 2 tables 
    table1: col1 sequenceid, col2 code
    table2:col1 studentID , col2 code, col3 joindate
    in table 1 i have values as 
    1 Q
    2 W
    3 E
    4 R
    5 T
    6 Y
    Table2:
    A1 Q 
    1-04-2015
    A1 W
    2-04-2015
    A3 Q 
    1-04-2015
    A2 Q 
    1-04-2015
    A3 W
    2-04-2015
    A2 W
    2-04-2015
    A2  E
    2-04-2015
    A3  E
    2-04-2015
    A1  E
    2-04-2015
    A2  R
    2-04-2015
    Now i want ouput as 
    A3 E
    A2 R
    A1 E
    I want to group the values in table2 based on studentid order by the sequence in the table1 and get the latest which is having higher sequence (Note: the date field cannot be used to order the values)

    from @table2 a inner join @table1 b on a.col2=b.col2 collate database_default)
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • How to get next ID in a table ?

    Hi,
    suppose a table has first column as ID that stores unique ID in this format : P000001,P000002,P000003... and so on.
    How can i get the next value through query ?After getting that ID insert query will be applied .

    hi,
    You can use Oracle Sequence feature.
    e.g.
    CREATE SEQUENCE emp_sequence
    INCREMENT BY 1 -- number added every time
    START WITH 1 -- number starting
    NOMAXVALUE -- no max value
    NOCYCLE -- adding continuously, no loop
    CACHE 10;
    After that, you can use "emp_sequence.CURRVAL" to get the current value and "emp_sequence.NEXTVAL" to get the next value.
    e.g.
    INSERT INTO Mytable VALUES (empseq.nextval, 'LEWIS', 'CLERK', 7902, SYSDATE, 1200, NULL, 20);
    The first field of Mytable is the Sequence type. When inserting, you can use nextval.
    Also you can use "SELECT empseq.currval FROM DUAL;" to get the current value.

  • Generating next value in a custom 2 character sequence

    I am working on a customer project for creating a web portal that needs to write data back to an ancient legacy backend mainframe system.  I have never used sql server sequences before but I believe that is what I will need to use.  
    Each vendor in this application has a char(3) vendor code field.  Each transaction a vendor does is identified by a char(2) transaction code field.  The char(2) transaction code field for the legacy system is what I am trying to generate.  
    This transaction code field is 2 character alpha-numeric sequence.  I need to create a store proc to give me the next available transaction code for that vendor.  The sequence got numbers 0-9 then letters A-Z as follows:
    00,01,02....0A,0B...0Y,0Z,10,12....ZZ
    In the stored proc to get me the next available transaction code for a vender, I need to take the 3 character vendor code as in input parameter, then check the vendor transactions table to see which transaction codes exist and return the next one from the
    sequence to use next.
    Here is a very basic table def. and some sample data:
    CREATE TABLE vendor_trans
    vendor_cd char(3),
    trans_cd char(2)
    INSERT INTO [dbo].[vendor_trans]     ([vendor_cd]     ,[trans_cd])     VALUES     ( 'ABC' ,'00' )
    GO
    INSERT INTO [dbo].[vendor_trans]     ([vendor_cd]     ,[trans_cd])     VALUES     ( 'ABC' ,'01' )
    GO
    INSERT INTO [dbo].[vendor_trans]     ([vendor_cd]     ,[trans_cd])     VALUES     ( 'ABC' ,'02' )
    GO
    INSERT INTO [dbo].[vendor_trans]     ([vendor_cd]     ,[trans_cd])     VALUES     ( 'ABC' ,'04' )
    GO
    INSERT INTO [dbo].[vendor_trans]     ([vendor_cd]     ,[trans_cd])     VALUES     ( 'ABC' ,'0A' )
    GO
    INSERT INTO [dbo].[vendor_trans]     ([vendor_cd]     ,[trans_cd])     VALUES     ( 'ABC' ,'0C' )
    GO

    Just create a scalar function that will give you the next character sequence.
    Then use it on the max transaction code for the given vendor, to get their next code.
    IF EXISTS (SELECT * FROM dbo.sysobjects WHERE ID = OBJECT_ID('dbo.funNextCode') AND XTYPE IN ('FN', 'IF', 'TF'))
    DROP FUNCTION dbo.funNextCode
    GO
    CREATE FUNCTION dbo.funNextCode (@Code char(2))
    RETURNS char(2)
    AS
    BEGIN
    DECLARE @NewCode char(2)
    SELECT @NewCode = CASE WHEN RIGHT(@Code,1) != 'Z'
    THEN LEFT(@Code,1)
    ELSE CHAR(CASE LEFT(@Code,1) WHEN '9' THEN 64
    WHEN 'Z' THEN 47
    ELSE ASCII(LEFT(@Code,1))
    END + 1)
    END
    + CHAR(CASE RIGHT(@Code,1) WHEN '9' THEN 64
    WHEN 'Z' THEN 47
    ELSE ASCII(RIGHT(@Code,1))
    END + 1)
    RETURN @NewCode
    END
    GO
    -- UNIT TEST funNextCode
    DECLARE @TableOfCodes TABLE (idx int IDENTITY(1,1), Code char(2))
    DECLARE @Code char(2) = 'ZZ'
    ,@Count int = 0
    WHILE @Count < ((36 * 36) + 1)
    BEGIN
    SELECT @Code = dbo.funNextCode(@Code)
    INSERT @TableOfCodes SELECT @Code
    SELECT @Count = @Count + 1
    END
    SELECT * FROM @TableOfCodes ORDER BY idx
    --SELECT * FROM @TableOfCodes ORDER BY Code
    -- Using funNextCode with vendors
    DECLARE @VendorTransactions TABLE (VendorCode char(3), TransCode char(2))
    INSERT @VendorTransactions VALUES ('ABC', '00'), ('ABC', '01'), ('ABC', '02')
    ,('ABC', '04'), ('ABC', '0A'), ('ABC', '0C')
    DECLARE @VendorCode char(3)
    ,@LastCode char(2)
    SELECT @VendorCode = 'ABC'
    -- Get the last code for the given vendor
    SELECT @LastCode = MAX(TransCode)
    FROM @VendorTransactions
    WHERE VendorCode = @VendorCode
    -- If no code exists, then set it so funNextCode will generate the starting code as '00'
    SELECT @LastCode = ISNULL(@LastCode, 'ZZ')
    SELECT dbo.funNextCode(@LastCode) as [NextCode]

  • Get textbox values from ADF table

    Hi,
    I have af:table with input Textbox as a single column in which user can enter values.
    I have applied valuechangelistener for textbox using which I can get values entered by user.
    Say I have multiple rows. When valuechangelistener is called, I get only current entered value. Whereas I need all the values entered by user in all the textboxes.
    How I can implement this?

    HI try this:
    1) make binding of your table
    2)make rowSelection="multiple" on table
    3)select multiple rows for which you want data using ctrl.
    4)add below code in method of backing bean on actionlistener of some button say save or edit
    UIXTable table = getSearchResultsTable();
    //getting iterator to iterate over selected row keys
    Iterator selection = table.getSelectedRowKeys().iterator();
    while (selection.hasNext()) {
    Object rowKey = selection.next();
    //setting the rowKey to table one by one
    table.setRowKey(rowKey);
    String strRow=(String) table.getRowData();
    //then you can add this in list or whatever you want
    }

Maybe you are looking for

  • Cannot Start Application on EBS 12.2.4

    Hello, I've a stuck when i want to starting EBS application. database, listener already up and finally i want to start EBS with this command: NB : I remark error statement with RED text. .end std out. .end err out. Executing service control script: /

  • After upgrading to Mountain Lion Quicktime doesn't work

    I have a 2009 macbook pro and just updated to mountain lion and now all my limewire movies that are in AVI format wont play on quicktime but they will play on FLV. I didnt have this problem before i upgraded. any help would be great!

  • Connecting through Router

    Firstly, I am not a Mac user but my friend is. For some reason (after a trip) she is not able to connect to the internet through the same router she has been connecting with for over 2 years. I fixed a similar situation on my two PCs at home by ipcon

  • Saved document to Word and reopened it in a strange text!

    Does anyone know how to get a document a saved in word...which the next time I opened it came up as random shapes and such...back to normal?? I swear I have tried everything. I never saved it on to anything but the hard drive of the same specific com

  • Windows Search Output in UNC format

    When performing a Windows Search on a Networked Mapped Drive, the correct results are given, but the path to the folder is in UNC format.  How can I change this so that the path results given appear with the mapped drive letter?   Example:  Doing a s