Table - Storing data in a AbstractTableModel for a renderer

I have a class which extends AbstractTableModel in which I am storing more than just the data which is displayed in each cell (i.e. metadata and other data which is specific to the cells are stored in private arrays).
I also have a class which extends DefaultTableCellRenderer which colorises the cells. There are several tables and they all use the same class to do the rendering however I would like it if I could retreive the data from the TableModel class to decide on the color of a cell . If I have:
private class calTableModel extends AbstractTableModel{
          public calTableModel() {
....Usual stuff
public int AnotherMethod(){...}
and I try this
private class CustomTableCellRenderer extends DefaultTableCellRenderer
          public Component getTableCellRendererComponent
          (JTable table, Object value, boolean isSelected,
          boolean hasFocus, int row, int column)
table.getModel().AnotherMethod()
then I get a cannot resolve symbol error.
How do I extend the interface as well as the class so I can call my other methods in this way?
Many thanks in advance.

You have to cast to your tableModel:private class CustomTableCellRenderer extends DefaultTableCellRenderer
public Component getTableCellRendererComponent
(JTable table, Object value, boolean isSelected,
boolean hasFocus, int row, int column)
((calTableModel )table.getModel()).AnotherMethod(); // cast to calTableModel

Similar Messages

  • What are the tables storing data of tcode FB60

    Hi Friends
    Can anybody tell me in which tables transaction data for transaction code FB60 are stored.
    Thanks for your support.
    Regards
    KTK

    Hi,
    Tables are probably :
    BKFP ( Accounting Document Header )
    BSEG ( Accounting Document Segment )
    <b>!</b> both contains a lots of data !
    Hope this helps,
    Erwan

  • Which table stored  description for field name

    hi,
    for example,
    field name is  LIFNR , description (vendor number),
    which table stored this description (vendor number)  for that field name(LIFNR) ?

    1. From table DD03L, give your tablename and get all of its field names and corresponding data element names. 
    2. From table DD03T, get the description of each data element you have got in step 1. 
    3. Then Use Function Module DDIF_FIELDINFO_GET 
    DD02L : ALL SAP TABLE NAMES
    DD02T : DESCRIPTION OF TABLE NAMES
    DD03L : FIELDS IN A TABLE.
    Check the below link for more information.
    http://www.sap-img.com/abap/how-to-get-the-field-descriptions-of-a-table.htm
    Thanks,
    Balaji

  • R/3 tables and data sources

    hi guys,
                         i am trying to find r/3 tables for plant maintainance data sources
    and project system data sources
    i am trying it out in help.sap.com
    i am able to find r/3 tables information for 60% of data sources only
    how can i find the exact information of r/3 tables with respect to data sources
    i have seen help link for this application components throughly
    please suggest me
    i will assign points

    Hi Selva,
    I typically try this:
    Goto ROOSOURCE -> Give the datasource name  and find out what type of datasource it is. If it is based on view/table then use the table/view. If it is based on function module then you would need to look at the code and find out from which tables the data is extracted.
    For fn module:Goto se37 -> Give the fn module name -> Click the "find" button -> give the text as "select". Select the radio button "Main program". It would list all the select statements in the fn module. In teh select statement you can find the name of the table.
    Hope this helps.
    Bye
    Dinesh

  • The table for storing data for infocube and ODS

    Hi all:
        could you please tell me how to find the table for storing data for infocube and ODS?
    thank you very much!

    Hi Jingying Sony,
    To find tables for any infoprvider go to SE11.
    In database table field enter the following
    Cube -
    Has fact table and dimension table
    For customized cube - ie cube names not starting with ' 0 '
    Uncompressed Fact table - /BIC/F<infocubename>
    Compressed fact table - /BIC/E<infocubename>
    Dimension table - /BIC/D<infocubename>
    For standard cube - ie cube names  starting with ' 0 '
    Uncompressed Fact table - /BI0/F<infocubename>
    Compressed fact table - /BI0/E<infocubename>
    Dimension table - /BI0/D<infocubename>
    Click on display.
    For DSO,
    For standard DSO active table- /BI0/A<DSO name>00.
    You use 40 for new table.
    Click on display.
    For customized DSO use- /BIC/A<DSO name>00.
    An easier way is in the database table field, write the name of the cube/DSO preceeded and followed by ' * ' sign. Then press F4 . It shall give you the names of the available table for that info provider.
    Double click on the name and choose display.
    Hope this helps,
    Best regards,
    Sunmit.

  • Error when executing statement for table/stored proc  DB2 - Data Truncation

    Hi,
      I have one call sp in XI with n parameters int and two parameters out.
       well, to implement the interface gives the following error
    com.sap.aii.af.ra.ms.api.DeliveryException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'SPSAPAR9' (structure 'Statement'): java.sql.SQLException: The number of parameter values set or registered does not match the number of parameters
    Thanks for your help
    Ximena
    Edited by: Ximena Gonzalez on Feb 19, 2008 11:50 AM
    Edited by: Ximena Gonzalez on Feb 20, 2008 12:17 PM

    My Error is change
    Error while parsing or executing XML-SQL document: Error processing request in sax parser: Error when executing statement for table/stored proc. 'SAPPRG.SPSAPAR9' (structure 'Statement'): java.sql.DataTruncation: Data truncation
    but de change DT SP
    <?xml version="1.0" encoding="UTF-8" ?>
    <ns1:AlistReqDet2_MT xmlns:ns1="urn:proxl:tmuc:proxl01:AlistReqItems">
    <Statement>
    <SPSAPAR9 action="EXECUTE">
      <table>SAPPRG.SPSAPAR9</table>
      <ISAPNU1 isInput="TRUE" type="STRING">0080000353</ISAPNU1>
      <ISAPEM1 isInput="TRUE" type="STRING">'LU'</ISAPEM1>
      <ISAPC05 isInput="TRUE" type="STRING">15353</ISAPC05>
      <ISAPSEC isInput="TRUE" type="STRING">10</ISAPSEC>
      <ISAPLOT isInput="TRUE" type="STRING">'lats'</ISAPLOT>
      <ISAPCA1 isInput="TRUE" type="STRING">10</ISAPCA1>
      <ISAPCA2 isInput="TRUE" type="STRING">10</ISAPCA2>
      <ISAPKIL isInput="TRUE" type="STRING">10</ISAPKIL>
      <ISAPES1 isInput="TRUE" type="STRING">'T'</ISAPES1>
      <ISAPSW isOutput="TRUE" type="STRING" />
      </SPSAPAR9>
      </Statement>
      </ns1:AlistReqDet2_MT>

  • Error when executing statement for table/stored proc

    Hi All,
          I am getting this error when executing IDOC to JDBC (Stored Procedure) Scenario.
         In my stored procedure I have three insert statements to insert rows in to 3 tables.
        This stored procedure is working fine for two insert statements i.e, 
             For this I have created data type for stored procedure with 10 elements and executed the scenario and was successfully running.
        when I added 3rd insert statement to stored procedure ie., when i added 5 more elements to the datatype (totally 15 elements) it starts giving the bellow error in Message Monitoring.
    <i><b>Exception caught by adapter framework: Error processing request in sax parser: Error when executing statement for table/stored proc. 'COGRP_TMP_PROC_1' (structure 'Statements'): java.sql.SQLException: General error</b></i>
    <i><b>Delivery of the message to the application using connection JDBC_http://sap.com/xi/XI/System failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'COGRP_TMP_PROC_1' (structure 'Statements'): java.sql.SQLException: General error</b></i>
       Note:- I have run the stored procedure  with three insert statements in Sql Server, and also by calling an external program also, and was working fine.
    <i><b> Note : Is there any structure needs to be follow when working with IDOC to Stored procedure.</b></i>
    I am struck up with the error, can any body resolve this issue.
    Thanks in Advance,
    Murthy

    Hi narasimha,
                      This seems to be any error due to incorrect query formation.In your receiver jdbc channel set the parameter logSQLstatement = true.you can find this parameter in the advanced mode. Using this parameter you will be able to see the sql query which is generated at runtime in the audit log in RWB.
    Regards,
    Pragati

  • File to JDBC :Error when executing statement for table/stored proc.

    Hi,
    I am getting following error when i am trying to insert data into z-table using JDBC recr adapter.
    Error while parsing or executing XML-SQL document: Error processing request in sax parser: Error when executing statement for table/stored proc. 'ZTEST' (structure 'STATEMENT'): java.sql.SQLException: <u>[Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Invalid object name '<b>ZTEST</b>'.</u>
    But the database table name 'ZTEST' exists in the system.
    XML structure:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_RECR xmlns:ns0="http://urn:srini/FileToJDBC">
       <STATEMENT>
          <TEST action="INSERT">
             <table>ZTEST</table>
             <access>
                <ROLLNO>123</ROLLNO>
                <FIRSTNAME>ABC</FIRSTNAME>
                <LASTNAME>XYZ</LASTNAME>
             </access>
          </TEST>
       </STATEMENT>
    </ns0:MT_RECR>
    Regards,
    Srinivas

    Hi,
    I have changed my MT str but still getting the same error.Is it possible to insert/ update a z-table using JDBC adapter.
    XML str:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_RECR xmlns:ns0="http://urn:srini/FileToJDBC">
       <STATEMENT>
          <ZTEST action="INSERT">
             <access>
                <ROLLNO>123</ROLLNO>
                <FIRSTNAME>abc</FIRSTNAME>
                <LASTNAME>XYZ</LASTNAME>
             </access>
          </ZTEST>
       </STATEMENT>
    </ns0:MT_RECR>
    Regards,
    Srinivas

  • Error when executing statement for table/stored proc.  : ORA-00911

    Hi All,
    I am posting IDOC->XI->JDBC, approx 5000 Idocs.
    But few messages are giving following error in XI-_SXMB_MONI
    Can any one guide me what is the cause of error? I check whole Idoc data I am not able to see bad character? can any once guide me what are the bad character in XML to post data in oracle? so that i can search in XML and how to avoide this error.
    "com.sap.aii.af.ra.ms.api.MessagingException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'HRP1001' (structure 'INSERT_PAD34'): java.sql.SQLException: ORA-00911: invalid character"

    > I am talking about following IDOC.<ZRMD_A06> ->
    > <E1PLOGI SEGMENT="1">-> <E1PITYP SEGMENT="1"> ->
    > <E1PAD34 SEGMENT="1"> -><PROZT>0.00 #</PROZT>.
    > Can we remove this # during message mapping in XI??
    sure you can remove it using Replace function or by writing UDF.
    as I am seing # is last character..<b>so remove # with " " (single space) and then use the TRIM fucntion.</b>
    Thanks
    Farooq.
    *<b>Rewards points if you find it useful*</b>

  • 0CO_OM_CCA_4 - Data in r/3 for verification (Transaction or tables in r/3)

    Hello I loaded to BI using 0co_om_cca_4 data source.  I would like to know how to verify the data in r/3 for this data source?  I have seen so many postings regarding this, but was unable to use any of them.  Do you know which transaction to use for verifying the data in r/3?  Some people listed multiple tables, but I don't know logic the extractor uses for connecting all those tables.
    Thanks.

    Hi Sam,
    for Cost Centers: Statistical Key Figures (0CO_OM_CCA_4) orgin table is COSR.
    [http://help.sap.com/saphelp_nw70/helpdata/EN/4d/fcaba947fa5d42b4ef5f7769f87939/frameset.htm]
    Regards
    Daya Sagar

  • How to get the data from pcl2 cluster for TCRT table.

    Hi frndz,
    How to get the data from pcl2 cluster for tcrt table for us payroll.
    Thanks in advance.
    Harisumanth.Ch

    PL take a look at the sample Program EXAMPLE_PNP_GET_PAYROLL in your system. There are numerous other ways to read payroll results.. Pl use the search forum option & you sure will get a lot of hits..
    ~Suresh

  • Why files in Lightroom mobile and files in the creative cloud not the same? idea-  one place(stored date) for all application ??????

    Why files in Lightroom mobile and files in the creative cloud not the same? idea- one place(stored date) for all application ??????

    Lightroom Mobile is not a cloud storage service. You shouldn't treat it as a way of backing up your files. You are merely storing Smart Previews of your files in the cloud space, high-quality JPEGs of your files regardless of their original format on your desktop. The point is that they are there so you can continue editing them in a Lightroom-like environment even while away from your desktop/laptop computer. The files in Lightroom Mobile can only be used in Lightroom Mobile.
    This is very different from what is offered by the Creative Cloud storage, which can be used to synchronize your files between any device (that can support the individual files).
    The vast difference in how each service works and its intended use is why they are separate.

  • What data type is used for storing password,

    What data type is used for storing pass word in oracle db, i mean if user inputs some thing from forms it should be in Encrypted form in db, please any help??
    Thank you
    Hina

    Data type is VARCHAR2:
    SQL> desc dba_users;
    Name                                      Null?    Type
    USERNAME                                  NOT NULL VARCHAR2(30)
    USER_ID                                   NOT NULL NUMBER
    PASSWORD                                           VARCHAR2(30)
    ACCOUNT_STATUS                            NOT NULL VARCHAR2(32)
    LOCK_DATE                                          DATE
    EXPIRY_DATE                                        DATE
    DEFAULT_TABLESPACE                        NOT NULL VARCHAR2(30)
    TEMPORARY_TABLESPACE                      NOT NULL VARCHAR2(30)
    CREATED                                   NOT NULL DATE
    PROFILE                                   NOT NULL VARCHAR2(30)
    INITIAL_RSRC_CONSUMER_GROUP                        VARCHAR2(30)
    EXTERNAL_NAME                                      VARCHAR2(4000)
    PASSWORD_VERSIONS                                  VARCHAR2(8)
    EDITIONS_ENABLED                                   VARCHAR2(1)
    AUTHENTICATION_TYPE                                VARCHAR2(8)You can use SQL function ORA_HASH to hash password: http://download.oracle.com/docs/cd/E11882_01/server.112/e17118/functions124.htm#SQLRF06313.

  • Tables for Basic end date and work center for operation

    Hi!
    I need table name to fetch the basic end date of a maintenance order and maintenance work centers with respect to each operation in maintenance order.
    Regards,
    VM
    Edited by: V M on Jul 20, 2010 7:22 AM
    Edited by: V M on Jul 20, 2010 7:35 AM

    Hi VM,
    Input is Order Number (AUFNR).
    You can find the Basic End date of Order in Table AFKO, filed is GLTRP.
    For work center in Operations, you can use the Table AUFPL from AFKO.
    Pass this AUFPL in AFVC and get the ARBID.
    Then pass this ARBID to CRHD Table as OBJID, and get the work Center (ARBPL)
    Regards,
    MLN Prasad

  • Which table holds data for plant, soldto party and shipto party? Help!

    Hi Experts,
             Which table holds data for plant, soldto party and shipto party?
             Basically I want get palnt and associated soldto party and shipto party.
             Kindly help!
    Thanks
    Gopal

    Hi
    You have to link VBAK and VBAP tables.
    regards
    Srinivas

Maybe you are looking for

  • Payment Run Control Totals

    Dear SAP Friends, After doing the payment run for more than one company codes, payment methods, vendors. In which table and field I could find the total of all payments to send the control total file to Bank. We are creating EDI820 file for all the p

  • Can Panther run Intel iMac?

    I have a 20" flat screen Intel-based iMac. It came with Leopard and runs great (10.5.6). This computer replaces an older crt iMac which had a maximum OS capability of OS 10.3.9. I use Vectorworks 10 Mechanical cad software, published by Nemetschek. I

  • PO Approval Workflow process

    Does anyone know if it is possible to programmitacally kick off the PO Approval process from a PL\SQL Procedure or any other mechanism available(BPEL,ESB,etc..)? I am not sure if this is even possible. If so, what would I need to use and what data wo

  • Revenue at fixed exchange rate and Tax at current exchange rate.

    Hello, We have a requirement wherein a foreign currency sales order is negotiated at fixed exchange rate.  At the time of billing while revenue should be booked at negotiated exchange rate, tax(mwst) should be calculated at current exchange rate. Is

  • PS cc Output module  not loading

    i have downloaded it twice and still isn't working can anyone advise?