Question about table row key

Hi,
There is a table named mytable in the JSF page. After I retrieve rows from database and execute the method on one of the rows: System.out.println(mytable.getRowKey());
the following message is printed on the Jdev console:
[oracle.jbo.Key[rrpm BK 9712 2 AAAHdMAAWAAAAfZAAG ]]
That is a composite row key. Now I want to get part of the row key like BK.
How can I get that?
Thanks
Stephen

Krithika,
Thanks for the reply.
To get part of the row key using the substring method is not practical because the length of each part of the row key may change row by row.
Any other idea to get part of a table row key precisely?
Thanks
Stephen

Similar Messages

  • A question about the XS key

    Hi,
    I have a quick question about the XS key used for Logic. Now, the XS key is a small piece of hardware and it is very susceptible to being misplaced or lost.
    If someone were to lose the XS key, how would one be able to obtain another XS Key? Would that person need to buy Logic all over again? Or can they make a special order to get another one based on proof of ownership of Logic?
    it's just a small question.
    thanks
    -Justin

    There have been threads about this recently if you search for them.
    I think someone said they got theirs replaced for about $80.

  • Quick question about Quicktime media keys.......

    I had a question about encoding video and media keys. It seems to me that the only codec that allows you to encode it with a media key is Sorenson (Sorenson 3 I think). Why are they the only ones that are enabling that in their codecs? Is it kind of a dying technology or practice? I've experimented with Sorenson 3 and Sorenson Squeeze trials and, even though it looks ok, it simply doesn't stack up to others like Apple's H.264 or open-source x264 or even Xvid. I guess I wish there were a way to be able to use media key options with all the new H.264 codecs. Is it possible to do that, either with Xcode or AppleScript? Any help would be greatly appreciated!!

    QuickTime has supported 'media keys" since version 3 but you can only add them using the third party software.
    You would be better served by contacting Sorenson and asking them about their support for newer codecs.

  • Question about table compression

    I administer several 10g databases, and have been asked to compress tables in several tablespaces. I am unfamiliar with using compression. I have read some Oracle documentation on the ALTER TABLE... MOVE COMPRESSION command, but still have several questions. Can anyone recommend a good white paper, or other documentation on how best to compress tables with existing data? Thank you in advance for your guidance!

    Basically, I have questions about how to select which tables will benefit from compression. I also read somewhere that, once a table has been compressed, new updates to the compressed data will not be compressed and so I will need to re-compress the tables periodically.
    I also needed to know if the ALTER TABLE statement will compress the existing data or just future inserted data. Through further research I found that by using the MOVE clause, it will compress the existing data. I will also need to rebuild the indexes once the ALTER TABLE statement is complete.
    Thank you for your help and encouragement!

  • Question about table DR$FND_LOBS_CTX$I

    All,
    I have questions about this table 'DR$FND_LOBS_CTX$I'
    1. What's the purpose of this table?
    2. Can we purge this table? How?
    3. Is there any harmful if purge this table?
    Thanks,
    Jackie

    I have questions about this table 'DR$FND_LOBS_CTX$I'
    1. What's the purpose of this table?There is no description about this table in MOS or eTRM -- http://etrm.oracle.com/pls/et1211d9/etrm_pnav.show_object?c_name=DR$FND_LOBS_CTX$I&c_owner=APPLSYS&c_type=TABLE
    You may also check the code in $FND_TOP/sql/aflobbld.sql
    2. Can we purge this table? How?
    3. Is there any harmful if purge this table?Please see these docs/links.
    FND_LOBS_CTX Is Having Huge Size, How To Reduce The Size Of The Index [ID 396803.1]
    http://oracle-apps-dba.blogspot.com/2008/07/how-to-enable-fndhelp-search-by.html
    If you could not find complete answers to your questions, I would suggest you log a SR.
    Thanks,
    Hussein

  • Question about Table Locks

    Hi All,
    Is there any Oracle defined table/place from where we can know the details about Tables that have been locked in the current session?
    Thank you.

    Hi ,
    To know which all objects are locked, you can use the below query :-
    COLUMN owner FORMAT A20
    COLUMN username FORMAT A20
    COLUMN object_owner FORMAT A20
    COLUMN object_name FORMAT A30
    COLUMN locked_mode FORMAT A15
    SELECT b.session_id AS sid,
           NVL(b.oracle_username, '(oracle)') AS username,
           a.owner AS object_owner,
           a.object_name,
           Decode(b.locked_mode, 0, 'None',
                                 1, 'Null (NULL)',
                                 2, 'Row-S (SS)',
                                 3, 'Row-X (SX)',
                                 4, 'Share (S)',
                                 5, 'S/Row-X (SSX)',
                                 6, 'Exclusive (X)',
                                 b.locked_mode) locked_mode,
           b.os_user_name
    FROM   dba_objects a,
           v$locked_object b
    WHERE  a.object_id = b.object_id
    ORDER BY 1, 2, 3, 4;Anand

  • Question about setting Rows to "All" for defualt Interactive Report

    I have a default report with 2 user requirements that I have some questions about.
    1. The report in the data sould be 90 days old.
    2. The report show "All" rows.
    First to set the date I have this page process:
    apex_util.ir_clear(p_page_id => 2);
    apex_util.ir_filter(p_page_id=>2,
    p_report_column=>'REQUISITION_DATE',
    p_operator_abbr=>'GTE',
    p_filter_value=>SYSDATE - 90);
    I also set the rows to "All" and save the report to be the default. However I think when the "apex_util.ir_clear(p_page_id => 2)" is executed it clears someting and my report opens with rows set to "15".
    Any ideas on this or even a better way to do it?

    the following link may help...
    It says that the ir_clear "Clears any report filters including default filters"
    apex_util.ir_* documentation - where to find them?
    Gus..

  • Simple question about table structure and HR in BW

    i need to following data from HR:
    current FTE, employee number, cost place
    i dont think the current FTE is stored per employee. Therefor is would need a list that contains:
    mutation start date, mutation end date, FTE, employee, cost place
    i think cost place is a custom field.
    my question : what tables names and field names do i need?
    Thanks in advanced

    Hi,
    For Head Count you can use 0HR_PA_0 datasource and the other Employee details like start date and end date you can get them from employee master data and FTE can be calculated from the Emloyee Master Data and Head count data.
    Hope this helps...
    Thanks,

  • Question about tables – alternating fills

    Apologies, but I new to the world of Tables and, as an exercise only, I am trying to create following:
    I have a to create a table 21 columns wide (they're very narrow) and nine rows deep
    I want theTOP ROW ONLY to have an alternating fill of 50% black; the first column being white then 50%; then white and so on.
    Producing the alternating fill is (obviously) very easy, but I am struggling to limit it to the top row only.
    Can anyone advise on the best approach

    Actually it is not working. I copied the text of the script, inserted into Adobe Extended Script Tool, saved it as *.jsx and added into InDesign User Scripts.
    I create a table and ran the script and it returned an error
    It might be missing something in the script.
    Here it is what I took from that post:
    app.doScript(function() {
      // Put Swatch names in here, many as you like:
      var rowFills = [
        "Blue",
        "None",
        "Black"
      // Put Percentages in here, again many as you like:
      var rowTints = [
        50,
        0,
        25
      table = app.selection[0];
      if (table.hasOwnProperty("baseline")) table = table.parent;
      if (table instanceof Cell) table = table.parent;
      if (table instanceof Column) table = table.parent;
      if (table instanceof Row) table = table.parent;
      if (table instanceof Table)
        var startAt = table.headerRowCount;
        var numRows = table.rows.length-startAt-table.footerRowCount;
        for (r=0; r<numRows; r++)
          table.rows[startAt+r].fillColor = app.activeDocument.swatches.item(rowFills[r % rowFills.length]);
          table.rows[startAt+r].fillTint = rowTints[r % rowTints.length];
      } else
        alert ("Yeah, come to think of it you were actually nowhere near a table, werentya?");
        exit();
    }, ScriptLanguage.JAVASCRIPT, undefined, UndoModes.ENTIRE_SCRIPT, "Alternate Table Fills");
    Anyway, thank you for idea.

  • Question about table strucuture

    Hello Gurus,
           I have following two questions:
        (1) how can I know what is the key field for a table ?
        (2) in SE80, when I display the structure of a table, there are component type and data type , why does here have two different types? ( apparently, there values are differenct)
    thanks very much!

    Hi,
        1) Go to t.code 'SE11'
            enter the table name and display.
             there the key checkbox is enabled.this the primary key field.
            If the checkbox is not enabled then it is a non key field.
      2) In structure,
             Component type refers the data element.
              Datatype refers type of the field that is wheather it is char,int etc.,
    Thank u,
    Manjula Devi.D

  • Question about Tables:  Urgent

    Hi, I'm trying to create a table inside BW.  The objective is to create this table so that an Oracle Administrator can "Push" or "drop" data into this table in BW.  I'm currently using 2004s, so I am having quite a hard time....  What are the sequence of steps required in creating this table with the end goal of activating it so that it can be "seen" and used...  How do I activate the table?  Do I need to generate a datasource for this?  If I do, what are the sequence of steps that I need to do for this?  Much thanks....
    - Beleaguered B.I.

    Philips:
    A. Assuming that I have successfully created a table in B.I. 7, how will I check to
    ensure that the table that I just created exists in the system? What are the
    sequence of steps to doing this check? Will the administrator on the Oracle
    side (see original question) be able to "see" this table?
    When you activate the table, go to transaction Se16 and put your tablename and press f8, if the table is not active, you will get a mesage. This is a initial check.
    When you create a transparant table in SAP, SAP creates automatically created a table in the database underlying. Thats why it is called transparent table.
    YES. youur administrator can see the table with a SQL statement desc TABLE in the database layer.
    B. Assuming that I successfully created a DataSource, how can i check to ensure
    that the DataSource is indeed active and is in the System? What are the
    sequence of steps to achieving this?
    The last step in creating data source is to save / generate. Once generated, you can see the data source in RSA3. Run RSA3 and give the data source name and press f8, you will see the result.,
    C. Is there a particular methodology or standard as to how I should create a table?
    Can you point me out to a documentation or link to a "HOW TO" in creating
    tables? Where exactly in the BI 7 system are the tables store.
    To create a table you need something called developer key which is a long string of numbers. Check with your basis administrators and they will generate the key for you.
    Once you have this, decide the structure of your table and we will take it from there.
    Ravi Thothadri

  • Question about Tables in iWeb

    Having read previous posts, I understand that tables can be made one of two ways for use in iWeb: (1) Create them in Pages or Keynote and paste them in or (2) create HTML code and use the HTML snippit widget.
    The problem I see with the first method is that the table, based upon my experimentation, are seen in iWeb as a graphic. So there's no real way to control something like print size, for instance.
    The problem with the second method is that an HTML snippit cannot be inserted within a textbox. So if a person's browser is rending text differently than I have set up a page in iWeb, text could potentially overlap the table.
    Therefore, to put a table in the middle of text, it would seem preferable to create the table in Pages or Keynote.
    So here's my question, assuming the above is correct--is there any way for a table pasted from Pages or Keynote to be treated as any other way than a graphic? I'm still concerned about text size in the graphic not matching text size on the page with all the various browsers and browser settings. I realize that this method won't create overlapping text, but it would seem that there's great potential for the table to not match the body text.

    I know that iWeb creates them in HTML. I am a little more familiar with web pages than what I my post probably let you believe. I guess what I was curious about was the way in which Apple archives the news and turns it into an RSS feed. I've tried playing around with Safari, and viewing other RSS feeds, but I have not come across a way to print multiple RSS feeds at once.
    I guess what I am trying to get around is printing all of the pages individually, since as you could imagine that would equate to a ton of paper since I would be working about 3-4 days per week x 32 weeks (8 months). So you are talking about 96-128 pages of entries.
    Could you recommend any shortcuts for trying to do what I am trying to do, even if it doesn't involve iWeb? (I do have access to another domain with PHP scripting and a mySQL database if you have suggestions)

  • CS2......Questions about tables

    Can you choose to delete the rows or colums you want for a table you've made in In Design or by default, it will delete the bottom ones and the one at your right.
    I know I can do it in Quark, but I'm thinking about leaving quark for In Design and I have a lot of table to redo....it's a catalogue.
    Thanks for youy help!

    Of course you can, and if you've got alternating rows and fills, the
    table will automatically adjust.
    Just select the row and right click. From the contextual menu choose
    delete > row.
    Bob

  • A question about table model

    I created a table model and use JTable to display content of a database's table with that model.
    The problem is: when I update a data to data1 in a cell (first column) and hightlight another cell (second column), all cells of first column change content to data1. What 's the problem with my table model?
    import java.util.Vector;
    import java.sql.*;
    import javax.swing.table.AbstractTableModel;
    public class CommonTableModel extends AbstractTableModel {
    String[] columnNames;
    Vector          rows, newRow;
    ResultSetMetaData metaData;
    private boolean editable;
    public CommonTableModel(ResultSet rs, boolean editable) {
    this.editable = editable;
    try {
    metaData = rs.getMetaData();
    int numberOfColumns = metaData.getColumnCount();
    columnNames = new String[numberOfColumns];
    for(int column = 0; column < numberOfColumns; column++) {
    columnNames[column] = metaData.getColumnName(column+1);
    rows = new Vector();
    newRow = new Vector();
    while (rs.next()) {
    for (int i = 1; i <= getColumnCount(); i++) {
         newRow.addElement(rs.getObject(i));
    rows.addElement(newRow);
    } catch (SQLException ex) { System.err.println(ex);}
    public int getColumnCount() { return columnNames.length; }
    public int getRowCount() { return rows.size();}
    public String getColumnName(int column) { return columnNames[column];}
    public Object getValueAt(int row, int column) {
         newRow = (Vector)rows.elementAt(row);
         return newRow.elementAt(column);
    public Class getColumnClass(int column) {
         return getValueAt(0, column).getClass();
    public boolean isCellEditable(int row, int column) {
         if (column == 0) { return false; }
         return editable;
    public void setValueAt(Object value, int row, int column) {
         newRow = (Vector)(rows.elementAt(row));
         newRow.setElementAt(value, column);
         fireTableCellUpdated(row, column);
    }

    Try this :
    rows = new Vector();
    //newRow = new Vector();
    while (rs.next()) {
        newRow = new Vector(); // it must be here
        for (int i = 1; i <= getColumnCount(); i++) {
            newRow.addElement(rs.getObject(i));
        rows.addElement(newRow);
    }Denis

  • Question about Table Function inside a Package

    Hi … I am new in PL/SQL, I am trying to use a table function to create depending on a value passed to it (I am using 10g). Everything works great but the moment I add a parameter everything explode, I am creating it on a package.
    SQL that work
    CREATE OR REPLACE PACKAGE BODY financial_reports AS
    FUNCTION Fund_Amount
    RETURN financial_reports.Fund_Amount_Table
    pipelined parallel_enable IS
    cur_row financial_reports.Fund_Amount_Record;
    BEGIN
    FOR cur_row IN
    SELECT
    to_number(substr(bu5.usrdata, 1, 1)) As SECTION_ID
    ,to_number(substr(bu5.usrdata, 2, 1)) As SUB_SECTION_ID
    ,to_number(substr(bu5.usrdata, 4, 2)) AS LINE_NUMBER
    ,to_number(substr(bu5.usrdata, 7, 2)) As FUND_ID
    ,sum(be.amt) AS AMOUNT
    FROM
    linc.budgetdb_usr5@stjohnsfp bu5
    JOIN linc.budgetdb_event@stjohnsfp be ON
    bu5.keyvalue = be.acctno
    WHERE
    bu5.keyvalue like '__-__-__-____-____-_____'
    AND bu5.usrdata like '__-__-__'
    AND bu5.fieldnum = 1
    AND bu5.ispecname = 'GLMST'
    AND to_number(substr(bu5.usrdata, 7, 2)) = 1
    GROUP BY
    bu5.usrdata
    ORDER BY
    bu5.usrdata
    LOOP
    PIPE ROW(cur_row);
    END LOOP;
    END Fund_Amount;
    END financial_reports;
    SQL that do not work …
    CREATE OR REPLACE PACKAGE BODY financial_reports AS
    FUNCTION Fund_Amount (Fund_Id IN NUMBER)
    RETURN financial_reports.Fund_Amount_Table
    pipelined parallel_enable IS
    cur_row financial_reports.Fund_Amount_Record;
    fund_id_int NUMBER;
    BEGIN
    fund_id_int := Fund_Id;
    FOR cur_row IN
    SELECT
    to_number(substr(bu5.usrdata, 1, 1)) As SECTION_ID
    ,to_number(substr(bu5.usrdata, 2, 1)) As SUB_SECTION_ID
    ,to_number(substr(bu5.usrdata, 4, 2)) AS LINE_NUMBER
    ,to_number(substr(bu5.usrdata, 7, 2)) As FUND_ID
    ,sum(be.amt) AS AMOUNT
    FROM
    linc.budgetdb_usr5@stjohnsfp bu5
    JOIN linc.budgetdb_event@stjohnsfp be ON
    bu5.keyvalue = be.acctno
    WHERE
    bu5.keyvalue like '__-__-__-____-____-_____'
    AND bu5.usrdata like '__-__-__'
    AND bu5.fieldnum = 1
    AND bu5.ispecname = 'GLMST'
    AND to_number(substr(bu5.usrdata, 7, 2)) = fund_id_int
    GROUP BY
    bu5.usrdata
    ORDER BY
    bu5.usrdata
    LOOP
    PIPE ROW(cur_row);
    END LOOP;
    END Fund_Amount;
    END financial_reports;
    Error … (This works without the parameter)
    Error starting at line 43 in command:
    select * from table(financial_reports.Fund_Amount(1) )
    Error at Command Line:1 Column:14
    Error report:
    SQL Error: ORA-22905: cannot access rows from a non-nested table item
    Any help would be greatly appreciated

    try renaming your parameter so as not to confuse with what you are using in your column " to_number(substr(bu5.usrdata, 7, 2)) AS FUND_ID":
    CREATE OR REPLACE PACKAGE BODY financial_reports AS
      FUNCTION Fund_Amount (pFund_Id IN NUMBER)
        RETURN financial_reports.Fund_Amount_Table
        pipelined parallel_enable IS
        cur_row financial_reports.Fund_Amount_Record;
        fund_id_int NUMBER;
      BEGIN
        fund_id_int := pFund_Id;
        FOR cur_row IN ( SELECT to_number(substr(bu5.usrdata, 1, 1)) As SECTION_ID,
                                to_number(substr(bu5.usrdata, 2, 1)) As SUB_SECTION_ID,
                                to_number(substr(bu5.usrdata, 4, 2)) AS LINE_NUMBER,
                                to_number(substr(bu5.usrdata, 7, 2)) As FUND_ID,
                                sum(be.amt) AS AMOUNT
                           FROM linc.budgetdb_usr5@stjohnsfp bu5
                                  JOIN linc.budgetdb_event@stjohnsfp be ON bu5.keyvalue = be.acctno
                          WHERE bu5.keyvalue like '__-__-__-____-____-_____'
                            AND bu5.usrdata like '__-__-__'
                            AND bu5.fieldnum = 1
                            AND bu5.ispecname = 'GLMST'
                            AND to_number(substr(bu5.usrdata, 7, 2)) = fund_id_int
                         GROUP BY bu5.usrdata
                         ORDER BY bu5.usrdata ) LOOP
          PIPE ROW(cur_row);
        END LOOP;
      END Fund_Amount;
    END financial_reports;

Maybe you are looking for

  • Can't copy files to an external hard-drive - help??

    Hi all, My problem originally stems from the never-ending issue of using external hard-drives with a Mac (this is a huge downside to owning a Mac by the way, so if TPTB are reading this they need to fix it!).  My Toshiba hard-drive was being used as

  • I need to use a Windows program

    First time Macbook owner and I have been using Microsft Windows Picture viewer to crop and adjust my photos for the last 8+ years.  Its gonna take sometime to get use to iPhoto as it is more complex than what I am use to working with.  Is there anywa

  • No sync between Financial Report Studio repository and planning

    Hi, I have a problem in Hyperion Planning 11.1.3 when I am trying to open reports that are either in Explorer or in a task list linked by a smartcut. An error (#2108) occured saying that the object I am trying to open is not in the repository. I am u

  • How does camera work?

    Just got ipad2 for Christmas. Totally love it but am a little computer challenged. Can't figure out the camera. Not photo booth but just to take a pic. Yes, I'm an idiot.

  • Search some data in choise list .

    Hi experts, I have created one dashboard prompt in OBIEE 11.1.1.6g, and I am facing one issue that when I make use of 'SQL Results' in Choice List Values Area to union some values, I click search button and input start value, it will only filter one