DB Adapter does not show selectable tables

HI guys,
in the wizard I am unable to see the tables which I need to use for database adapter.
But I do have access to those tables, and able to select from them in SQL worksheet from with in Jdev.
I dont own the tables, but my user id have readable access to those tables.
Any help is appreciated.
P.S. If I didnt explain it properly, plz let me know. It really creates lot of access issues if I can only create DB adapter on My owned tables.
:)

Hi there,
please make sure that the DB Connection you have created in JDev points to the expected database. It is generally safest to have the user name match the schema you are importing tables from, but the scenario you mention is perfectly fine too.
One tricky thing in the import tables dialogue is that it initially shows you tables from the user/schema you logged in as. There is an easily overlooked drop down at the top that allows you to query the tables belonging to other visible schemas.
Also once you enter your search criteria make sure you hit enter or click on the auto query check box to get the results.
Thanks
Steve

Similar Messages

  • Database Adapter Wizard does not show accessible table

    HI guys,
    in the wizard I am unable to see the tables which I need to use for database adapter.
    But I do have access to those tables, and able to select from them in SQL worksheet from with in Jdev.
    I dont own the tables, but my user id have readable access to those tables.
    Any help is appreciated.
    P.S. If I didnt explain it properly, plz let me know. It really creates lot of access issues if I can only create DB adapter on My owned tables.
    :)

    Hi there,
    please see the answer to your duplicate post on the BPEL forum:
    DB Adapter does not show selectable tables
    In general BPEL forum gets a lot more traffic but I will try to address questions on both equally.
    Thanks
    Steve

  • PI sheet does not show the table of materials to be consumed.

    Hello,
    Weu2019re trying to customize the pi-sheet on SAP 4.7 (SAP-APPL Release 470) and weu2019re having some problems.
    On transaction O12C (Define Process Instruction Categories), weu2019ve created an Instruction Category for Material Consumption using Type of the process data request equal to Repeated process data request. Doing this, when we create a Process Order, the PI sheet does not show the table of materials to be consumed.
    If we use Type of the process data request equal to Simple process data request instead of Repeated process data request, the PI Sheet works well (The table of materials to be consumed are showing).
    Thanks in advance.

    Hi,
    Is the issue resolved...? If yes then how...
    If not, then can you please elaborate more on the process instructions charateristics you have used. Just list first ten characteristic and there values.
    Regards
    Neeraj

  • Newly added field does not show in table genarator.

    Hi,
         I have added one more field to my custom table.
    When I make new entries in table maintanance, the new field does not show up.
    Thank U for Ur time.
    Cheers,
    Sam

    hai sam raj,
    first activate your database table .
    if any error occurs better you go to
    se14(database utility) -
    >give table name in object and select the table check box and click the edit push button.
    and then click activate and adjust pushbutton.
    surely you ll get some idea.
    reward points if those idea helps.
    thanks,
    velu.

  • BOE 3.0 Designer does not show the table browser

    Hi,
    I am using BOE 3.0. I was able to view the table browser a few days back. After I changed the license key, the designer stopped showing me the table browser. I am logging into Designer with Administrator previleges. Although the Administrator has "Full control", but when I click on "Insert->Tables" in designer it does not do anything, not even display the table browser. I have created Oracle client connection and tested it. The server is responding, but the insert-> tables does not work.
    Any help would be appreciated.
    Thanks,
    SUS.

    1. When you invoke table browser using Insert->Tables do you see progress bar below the designer (task Bar)
    Sus: Yes I can see the progress bar. It exists for a few seconds and then disapperas,but does not do anything.
    2. Can you try invoking Table browser by double clicking on Universe designer pane.
    Sus: Yes I tried, but nothing happened. I mean I could not see the table browser
    3. Can you check if Designer can connect to your DB.
    Sus: Yes the designer is able to connect to the DB. I tested the connection and got the message "Server is responding". In fact when I am using the quick design wizard I can able to see the tables from my DB.
    4. How many tables do you have in DB, IF there are lot many table then it might table time to load those tables
    Sus: Currently my DB contains almost 40(20 tables and 20 views). I don't think it is concern. I worked with DB which contains more than this and that time I did not face this issue.
    5. Can you strategies tab in parameters (File->Parameters). What is the strategy for Tables. Try using built-in strategy.
    Sus: Yes it is built-in for tables. It is the default one and I did not change it.
    Is there a limit set to insert tables in designer?
    -Sus

  • Creating new ODBC connection does not show the tables

    Post Author: reemjacob
    CA Forum: Data Connectivity and SQL
    Hello
    I am creating a new ODBC Connection to SQL Server in Database Expert. Once I created the ODBC when I expand the Database I should be seeing the tables, views and stored procedures. But instead I am only seeing stored procedures. When I right click on the DB and go to options I see that Tables, Views and Stored Procedures are checked. How can I correct this so that I see the Tables and Views?
    Regards
    Reem

    Not an Oracle proble. Not an instant driver problem.
    If the ODBC tool and driver you use, fail to construct the proper SQL to interrogate the very rich Oracle data dictionary.. what is Oracle suppose to do? Fix the software from those vendors for the user? Not going to happen. Get Oracle Raptor instead and use a proper Oracle client.
    Simple test. Run the following SQLs via your ODBC connection.
    To see all your objects in your schema (i.e. the one you logged into via ODBC):
    SELECT * FROM user_objects
    To see a list of schemas:
    SELECT username FROM all_users ORDER BY 1
    To view other schemas' contents:
    SELECT * FROM all_objects
    Also note that historically ODBC has delivered poor performance. I recall many performance tests I've done during the 90's that showed ODBC up to 3x slower and generating more than 4x the network traffic, than native connections. Not too mention using ODBC introduces an additional software layer, which means more moving parts, more complexity, and more failures.
    I have not touched ODBC with the proverbial 10ft pole since - and today, I have even less need to use a clunky software layer like ODBC. And should I be forced to, it will be passthru all the way.

  • SQL Developer 3.1.07 does not show a Tables entry under the Navigator

    Installed SQL Developer 3.1.07. Under my Connections window, I log into the SYSTEM account. There is NO tables entry. SYSTEM has access to all tables in the database. It's the same behavior for other database users as well.
    I re-installed SQL Developer 3.0.04 and a Tables entry DOES appear for the same SYSTEM user connected to the same database.

    Hi J,
    I was under the impression that regardless of the Java version that my environment variables are setup to use,
    the installation of SQL Developer (when you install with a JDK), that the JDK version installed with SQL Developer
    is the one that is used.Exactly correct, unless you decide to override it in the conf file. I needed to be certain you did not.
    Anyway, trying to resolve the problem, let's go back to a possibility that something went wrong with the migration of your preference settings. Here is an old thread discussing a missing Tables node in the Connection view (sometimes called the navigator tree):
    Table node missing from navigator tree in 3.0.04
    The poster had to rename the system directory containing these settings, then ignore the offer to migrate settings upon starting up SQL Developer again. If you never migrated settings in the first place, then I'm not sure what more to say -- probably would require additional research here in the forum. But if you did migrate settings, then try the following:
    1. Export your connections (Connections node | right-click | Export Connections...)
    2. Exit SQL Developer
    3. Rename the directory to something else
    4. Restart SQL Developer
    5. Import your connections
    That directory on my Windows 7 machine for the current production release is something like:
    C:\Users\<username>\AppData\Roaming\SQL Developer\system3.1.07.42
    Hope this helps,
    Gary

  • Profit center report does not show selection criteria

    Hi,
    The SAP Business One software misses a functionality :
    When creating a financial report, you can enter surtain selection criteria in order to shift the data, and in order to get only the relevant data. This is possible in all reports. Also, in the result of all reports, those selection criteria are shown. In that case you actually know what the data is all about.
    This is not the case with the profit center report. When you run the report with e.g a date selection, these dates are not printed on the actual report. When a second person views the report, he/she has no clue as to what the data consists of, they are unaware of the selection criteria.
    The only solution is to export this to excel, or run Chrystal reports. But this should be entered into the standard report !!
    Hopefully, you can help me out.
    Kind regards,
    Bas Stortenbeek
    b1 Consulting
    [email protected]
    0043-664 833 8913

    Hi
    If you see the screen shot I attached, it has the text "(new)" against the Folder name...
    All new gl reports are under such a folder to differentiate... You cant deactivate any reports from the Standard Menu... You can just control it by authrization....
    You can also ask your BASIS guy to display only the authorized trans on the user screen so that they are not able to see the std set of transactions
    Br, Ajay M

  • Plz. help,table does not show value for one field

    hi all,
    i have a really strange problem , i have a string field in access database that contains the date and time value,this field for some strange reason does not show in my table created through html,
    i tried all combination(arranging the fields) ,renaming it w/o help, it shows the value using out.println(but then why is it not showing me in the table???)
    plz. help ASAP.
    the code is as under
    <HTML>
    <HEAD><TITLE> LOGGED IN ok</TITLE> </HEAD>
    <BODY bgcolor = "yellow">
    <%@ page import = "java.sql.*" %>
         <%! // declaring variables
    String s = "";
    java.sql.ResultSet rs=null,rs1=null,rs2=null;
    java.sql.Connection con;
    java.sql.Statement stmt,stmt1;
    String empId = "",compid ="",calltype ="",probheader="",probdescription ="",probcomment ="",priority ="",a="";
    %>
    Following are the pending complaints ..
         <TABLE BORDER=1 CELLSPACING=0 CELLPADDING=0 width="100%">
         <TR>
         <TD> ComplainD </TD>
    <TD> ComplainId </TD>     
    <TD> ProbHeader </TD>     
    <!--
    <TD> ProblemDescription </TD>     
    <TD> Problem Comments </TD>     
    -->
    </TR>
         <%
         try
         Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
         java.sql.Connection con = java.sql.DriverManager.getConnection("jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};" +"DBQ=c:/vishal/HelpDesk.mdb;DriverID=22;READONLY=false","","");
         //java.sql.Connection con = java.sql.DriverManager.getConnection("jdbc:odbc:Portal");
              java.sql.Statement stmt = con.createStatement(java.sql.ResultSet.TYPE_SCROLL_INSENSITIVE,java.sql.ResultSet.CONCUR_READ_ONLY);
              s = "select * from Complains";
         java.sql.ResultSet rs = stmt.executeQuery(s);               
                        while(rs.next())
                        //getting data from database
                                                           empId = rs.getString("EmpId");                    // out.print(" " + empId);
              compid = rs.getString("ComplainId");
              // out.print(" " + compid);
              calltype = rs.getString("CallType");
              // out.print(" " + calltype);
                        a = rs.getString("Complaindate"); //problem with this field
    out.print(a); // prints value
              %>               
                        <TR>      
                        <TD> <%=compid %> </TD>
                        <TD> <%=calltype %> </TD>     
                        <TD <%=a %> </TD>
                                       </TR>
    <%
                        }//while loop          
         %>
         </TABLE>     
         <%                
         }//try
              catch(Exception ep)
              out.println(ep);
              System.exit(1);
    %>
    </BODY>
    </HTML>
    value in database is as follows :-
    Complaindate
    5/18/2003 1:30:27 PM
    5/18/2003 7:32:43 PM
    5/18/2003 7:34:02 PM
    5/18/2003 7:49:19 PM
    5/18/2003 7:50:27 PM
    5/18/2003 10:49:42 PM
    5/18/2003 10:58:24 PM
    thanking u ,plz ask if any further clarifications

    Hi
    I am seeing nothing wrong with ur code..
    what about "view source" result.....plz check with that...
    whether u r getting all the trs and tds...
    revert back on this Issue..
    Mars Amutha

  • Internal table field does not show data.

    hello experts,
    I am currently modifying a code in a report where it shows PO's and it amount, downpayment, Invoice, GR, payment and balance. Now the problem is, some of the PO amount(it gets the amount from ekpo-netwr) does not show on the report output. the field is t_amount-netwr. I really need help on this one guys. Thanks and take care!
    PERFORM process_with_budat.
    FORM process_with_budat.
      DELETE t_pohistory WHERE hist_type <> 'A'
                           AND hist_type <> 'E'
                           AND hist_type <> 'Q'.
      LOOP AT t_account.
        DELETE it_dtl WHERE ebeln = t_account-ebeln
                        AND psphi IS initial.
        DELETE t_ekpo WHERE ebeln = t_account-ebeln
                        AND ebelp = t_account-po_item.
        t_proj-ebelp = t_account-po_item.
        SELECT SINGLE psphi FROM prps INTO t_proj-psphi
              WHERE posid = t_account-wbs_elem_e.
        CHECK sy-subrc = 0.
        LOOP AT t_pohistory WHERE po_item = t_account-po_item
                              AND ebeln   = t_account-ebeln.
          t_amount-ebeln = t_account-ebeln.
          t_amount-psphi = t_proj-psphi.
          ON CHANGE OF t_pohistory-po_item.
            CLEAR v_netwr.
            SELECT SINGLE netwr FROM ekpo INTO v_netwr
                  WHERE ebeln = t_account-ebeln
                    AND ebelp = t_account-po_item.
            t_amount-netwr = v_netwr.
          ENDON.
          IF v_ebeln IS INITIAL AND v_ebelp IS INITIAL.
            CLEAR v_netwr.
            SELECT SINGLE netwr FROM ekpo INTO v_netwr
                  WHERE ebeln = t_account-ebeln
                    AND ebelp = t_account-po_item.
            t_amount-netwr = v_netwr.
            v_ebeln = t_account-ebeln.
            v_ebelp = t_account-po_item.
          ELSEIF v_ebeln <> t_account-ebeln AND
                 v_ebelp <> t_account-po_item.
            CLEAR v_netwr.
            SELECT SINGLE netwr FROM ekpo INTO v_netwr
                  WHERE ebeln = t_account-ebeln
                    AND ebelp = t_account-po_item.
            t_amount-netwr = v_netwr.
            v_ebeln = t_account-ebeln.
            v_ebelp = t_account-po_item.
          ELSEIF v_ebeln = t_account-ebeln AND
                 v_ebelp <> t_account-po_item.
            CLEAR v_netwr.
            SELECT SINGLE netwr FROM ekpo INTO v_netwr
                  WHERE ebeln = t_account-ebeln
                    AND ebelp = t_account-po_item.
            t_amount-netwr = v_netwr.
            v_ebeln = t_account-ebeln.
            v_ebelp = t_account-po_item.
          ENDIF.
          CHECK NOT t_amount-psphi IS INITIAL.
          if t_pohistory-pstng_date LE pa_augdt.
         IF t_pohistory-pstng_date IN so_augdt.
            IF t_pohistory-db_cr_ind = 'H'.
              t_pohistory-val_loccur = - t_pohistory-val_loccur.
              t_pohistory-val_forcur = - t_pohistory-val_forcur.
              t_pohistory-cl_val_loc = - t_pohistory-cl_val_loc.
            ENDIF.
            IF t_pohistory-hist_type = 'A'.
              IF t_pohistory-currency <> 'PHP'.
                t_amount-dpamt = t_amount-dpamt + t_pohistory-val_forcur.
              ELSE.
                t_amount-dpamt = t_amount-dpamt + t_pohistory-val_loccur.
              ENDIF.
            ELSEIF t_pohistory-hist_type = 'E'.
              IF t_pohistory-currency <> 'PHP'.
                t_amount-gramt = t_amount-gramt + t_pohistory-val_forcur.
              ELSE.
        t_amount-gramt = t_amount-gramt + t_pohistory-val_loccur.
              ENDIF.
            ELSEIF t_pohistory-hist_type = 'Q'.
              IF t_pohistory-currency <> 'PHP'.
           t_amount-iramt = t_amount-iramt + t_pohistory-val_forcur.
              ELSE.
                t_amount-iramt = t_amount-iramt + t_pohistory-val_loccur.
              ENDIF.
            ENDIF.
            IF t_pohistory-currency <> 'PHP'.
              IF t_pohistory-val_loccur = 0 OR
                 t_pohistory-val_forcur = 0.
                t_amount-tramt = t_amount-iramt.
               t_amount-tramt = t_amount-dpamt.
              ELSE.
                t_amount-tramt = t_amount-iramt.
              ENDIF.
            ELSE.
              t_amount-tramt = t_amount-iramt.
             t_amount-tramt = t_pohistory-cl_val_loc + t_amount-dpamt.
            ENDIF.
            IF NOT t_pohistory-cl_val_loc IS INITIAL.
              CONCATENATE t_pohistory-mat_doc t_pohistory-doc_year
                    INTO bkpf-awkey.
             SELECT SINGLE * FROM bkpf
                   WHERE awkey = bkpf-awkey.
    *AVH - removed wrbtr and dmbtr from selection
              SELECT augdt augbl shkzg FROM bsak
                    INTO (bsak-augdt,bsak-augbl,bsak-shkzg)
                    WHERE bukrs = bkpf-bukrs
                      AND gjahr = bkpf-gjahr
                      AND belnr = bkpf-belnr.
    *AVH
                if not bsak-augbl is initial.
                  select belnr gjahr from bsak
                   into (bsak-belnr, bsak-gjahr)
                    where bukrs = bkpf-bukrs
                     and belnr = bkpf-belnr
                     and gjahr = bkpf-gjahr.
                    select awkey from bkpf
                     into v_bkpf_aw
                     where bukrs = 'GLOB'
                       and belnr = bsak-belnr
                       and gjahr = bsak-gjahr.
                      w_len = strlen( v_bkpf_aw ).
                      w_off = w_len - 4.
                      v_awkey_1 = v_bkpf_aw+0(10).
                      v_awkey_2 = v_bkpf_aw+w_off(4).
                      select single dmbtr wrbtr from ekbe
                        into (ekbe-dmbtr, ekbe-wrbtr)
                       where belnr = v_awkey_1
                         and gjahr = v_awkey_2.
    *AVH - Changed all bsak-wrbtr to ekbe-wrbtr and dmbtr to ekbe-dmbtr.
                      IF bsak-shkzg = 'H'.
                        ekbe-dmbtr = - ekbe-dmbtr.
                        ekbe-wrbtr = - ekbe-wrbtr.
                      ENDIF.
                      IF t_pohistory-currency <> 'PHP'.
                        IF bsak-augdt GT pa_augdt.
                 IF bsak-augdt IN so_augdt.
                          t_amount-tramt = t_amount-tramt + ekbe-wrbtr.
                        ENDIF.
                      ELSE.
                        IF bsak-augdt GT pa_augdt.
                 IF bsak-augdt IN so_augdt.
                          t_amount-tramt = t_amount-tramt + ekbe-dmbtr.
                        ENDIF.
                      ENDIF.
                    endselect.
                   endselect.
                  endselect.
                endif.
              ENDSELECT.
            ENDIF.
            IF t_account-distr_perc <> 0.
              t_amount-dpamt = ( t_account-distr_perc *
                                 t_amount-dpamt ) / 100.
              t_amount-gramt = ( t_account-distr_perc *
                                 t_amount-gramt ) / 100.
              t_amount-iramt = ( t_account-distr_perc *
                                 t_amount-iramt ) / 100.
              t_amount-tramt = ( t_account-distr_perc *
                                 t_amount-tramt ) / 100.
            ENDIF.
          ENDIF.
          IF t_amount-tramt < 0.
            t_amount-tramt = 0.
          ENDIF.
          t_amount-tramt = t_amount-iramt.
          t_amount-blamt = t_amount-netwr - t_amount-tramt.
          COLLECT t_amount. CLEAR t_amount.
          APPEND t_proj.
        ENDLOOP.
        IF sy-subrc <> 0.
          CLEAR v_netwr.
          SELECT SINGLE netwr FROM ekpo INTO v_netwr
                WHERE ebeln = t_account-ebeln
                  AND ebelp = t_account-po_item.
          t_amount-ebeln = t_account-ebeln.
          t_amount-psphi = t_proj-psphi.
          t_amount-tramt = t_amount-iramt.
          t_amount-blamt = t_amount-netwr - t_amount-tramt.
          COLLECT t_amount. CLEAR t_amount.
          APPEND t_proj.
        ENDIF.
      ENDLOOP.
    endform.
    **This is where it transfers the data**
    LOOP AT t_amount.
        it_dtl-netwr = t_amount-netwr.
        it_dtl-dpamt = t_amount-dpamt.
        it_dtl-gramt = t_amount-gramt.
        it_dtl-iramt = t_amount-iramt.
        it_dtl-tramt = t_amount-tramt.
        it_dtl-blamt = t_amount-blamt.
        MODIFY it_dtl TRANSPORTING netwr dpamt gramt
                                   iramt tramt blamt
              WHERE ebeln = t_amount-ebeln
                AND psphi = t_amount-psphi.
        CLEAR it_dtl.
      ENDLOOP.

    hi ,
    just place the code and check for a particular po if its there inthe ekpo table then it has to get it for ur select single query .
    but ur logic is build on if --- endif.check this option first of all.
    if in the debugging u see the value then as u say in the report output u r not able to see the value then the problem will be space alignment also.
    check the value in debugging and let us know first of all . okay
    vijay.
    IF v_ebeln IS INITIAL AND v_ebelp IS INITIAL.
    CLEAR v_netwr.
    SELECT SINGLE netwr FROM ekpo INTO v_netwr
    WHERE ebeln = t_account-ebeln
    AND ebelp = t_account-po_item.
    break-point.
    t_amount-netwr = v_netwr.
    v_ebeln = t_account-ebeln.
    v_ebelp = t_account-po_item.
    ELSEIF v_ebeln <> t_account-ebeln AND
    v_ebelp <> t_account-po_item.
    CLEAR v_netwr.
    SELECT SINGLE netwr FROM ekpo INTO v_netwr
    WHERE ebeln = t_account-ebeln
    AND ebelp = t_account-po_item.
    break-point.
    t_amount-netwr = v_netwr.
    v_ebeln = t_account-ebeln.
    v_ebelp = t_account-po_item.
    ELSEIF v_ebeln = t_account-ebeln AND
    v_ebelp <> t_account-po_item.
    CLEAR v_netwr.
    SELECT SINGLE netwr FROM ekpo INTO v_netwr
    WHERE ebeln = t_account-ebeln
    AND ebelp = t_account-po_item.
    break-point.
    t_amount-netwr = v_netwr.

  • Trying to upgrade from OS9 to 10.2.3, get as far as "select a Destination"  the installation stalls and does not show any destination disks

    I have a Power Mac G4, it has OS 9.  Imam trying to upgrade to OS 10.2.3 (Jaguar).  It is going smoothly until I get to the "Select Destination"  screen.  It stalls there and does not show any disks to choose from.
    Any ideas?
    Thanks. Abe Oliver

    Hello Abe,
    If it's a Digital Audio or earlier, you need to install a Firmware update first...
    As explained in "Mac OS X 10.2 Welcome and Install Manuals" and "Mac OS X Welcome and Install Manuals", you may need to update the firmware on your Macintosh computer prior to installing Mac OS X 10.2 or later. The following table lists the firmware updates that are available for Apple products that can update to Mac OS X 10.2 or later.
    http://support.apple.com/kb/HT1395?viewlocale=en_US
    Power Mac G4
    Firmware Update
    Download Document No.
    Power Mac G4 (Mirrored Drive Doors 2003)
    no update needed
    Power Mac G4 (FW 800)
    no update needed
    Power Mac G4 (Mirrored Drive Doors)
    no update needed
    Power Mac G4 (QuickSilver 2002)
    no update needed
    Power Mac G4 (QuickSilver)
    no update needed
    Power Mac G4 (Digital Audio)
    Power Mac G4 Firmware Update 4.2.8
    120068
    Power Mac G4 (Gigabit Ethernet)
    Power Mac G4 Firmware Update 4.2.8
    120068
    Power Mac G4 (AGP Graphics)
    Power Mac G4 Firmware Update 4.2.8
    120068
    Power Mac G4 (PCI Graphics)
    no update needed
    Power Mac G4 Cube
    Power Mac G4 Cube Firmware Update 4.1.9
    75129

  • JTable Problem (table does not show rows and columns)

    Hi All,
    What the table is suppose to do.
    - Load information from a database
    - put all the values in the first column
    - in the second column put combobox (cell editor with numbers 1-12)
    - the 3rd column put another combobox for something else
    - the 4th column uses checkbox as an edit
    The number of rows of the table should be equal to the number of
    record from
    the database. If not given it default to 20 (poor but ok for this)
    The number of columns is 4.
    But the table does not show any rows or
    column when I put it inside a
    JScrollPane (Otherwise it works).
    Please help,
    thanks in advance.
    public class SubjectTable extends JTable {
    * Comment for <code>serialVersionUID</code>
    private static final long serialVersionUID = 1L;
    /** combo for the list of classes */
    protected JComboBox classCombo;
    /** combo for the list of subjects */
    protected JComboBox subjectsCombo;
    /** combo for the list of grade */
    protected JComboBox gradeCombo;
    boolean canResize = false;
    boolean canReorder = false;
    boolean canSelectRow = false;
    boolean canSelectCell = true;
    boolean canSelectColumn = true;
    // the row height of the table
    int rowHeight = 22;
    // the height of the table
    int height = 200;
    // the width of the table
    int width = 300;
    // the size of the table
    Dimension size;
    * Parameterless constructor. Class the one of the other constructors
    to
    * create a table with the a new <code>SubjectTableModel</code>.
    public SubjectTable() {
    this(new SubjectTableModel());
    * Copy constructor to create the table with the given
    * <code>SubjectTableModel</code>
    * @param tableModel -
    * the <code>SubjectTableModel</code> with which to
    initialise
    * the table.
    SubjectTable(SubjectTableModel tableModel) {
    setModel(tableModel);
    setupTable();
    * Function to setup the table's functionality
    private void setupTable() {
    clear();
    // set the row hieght
    this.setRowHeight(this.rowHeight);
    // set the font size to 12
    //TODO this.setFont(Settings.getDefaultFont());
    // disble reordering of columns
    this.getTableHeader().setReorderingAllowed(this.canReorder);
    // disble resing of columns
    this.getTableHeader().setResizingAllowed(this.canResize);
    // enable the horizontal scrollbar
    this.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
    // disable row selection
    setRowSelectionAllowed(this.canSelectRow);
    // disable column selection
    setColumnSelectionAllowed(this.canSelectColumn);
    // enable cell selection
    setCellSelectionEnabled(this.canSelectCell);
    setPreferredScrollableViewportSize(getSize());
    TableColumn columns = null;
    int cols = getColumnCount();
    for (int col = 0; col < cols; col++) {
    columns = getColumnModel().getColumn(col);
    switch (col) {
    case 0:// subject name column
    columns.setPreferredWidth(130);
    break;
    case 1:// grade column
    columns.setPreferredWidth(60);
    break;
    case 2:// class room column
    columns.setPreferredWidth(120);
    break;
    case 3:// select column
    columns.setPreferredWidth(65);
    break;
    } // end switch
    }// end for
    // set up the cell editors
    doGradeColumn();
    doClassColumn();
    //doSubjectColumn();
    * Function to clear the table selection. This selection is different
    to
    * <code>javax.swing.JTable#clearSelection()</code>. It clears the
    user
    * input
    public void clear() {
    for (int row = 0; row < getRowCount(); row++) {
    for (int col = 0; col < getColumnCount(); col++) {
    if (getColumnName(getColumnCount() - 1).equals("Select")) {
    setValueAt(new Boolean(false), row, getColumnCount() - 1);
    }// if
    }// for col
    }// for row
    * Function to set the cell renderer for the subjects column. It uses
    a
    * combobox as a cell editor in the teacher's subjects table.
    public void doSubjectColumn() {
    TableColumn nameColumn = getColumnModel().getColumn(0);
    nameColumn.setCellEditor(new DefaultCellEditor(getSubjectsCombo()));
    // set up the celll renderer
    DefaultTableCellRenderer renderer = new DefaultTableCellRenderer();
    renderer.setToolTipText("Click for drop down list");
    nameColumn.setCellRenderer(renderer);
    // Set up tool tip for the sport column header.
    TableCellRenderer headerRenderer = nameColumn.getHeaderRenderer();
    if (headerRenderer instanceof DefaultTableCellRenderer) {
    ((DefaultTableCellRenderer) headerRenderer)
    .setToolTipText("Click the Name to see a list of choices");
    }// end doSubjectsColumn----------------------------------------------
    /** Function to set up the grade combo box. */
    public void doGradeColumn() {
    TableColumn gradeColumn = getColumnModel().getColumn(1);
    gradeColumn.setCellEditor(new DefaultCellEditor(getGradeCombo()));
    DefaultTableCellRenderer renderer = new DefaultTableCellRenderer();
    renderer.setToolTipText("Click for drop down list");
    gradeColumn.setCellRenderer(renderer);
    // Set up tool tip for the sport column header.
    TableCellRenderer headerRenderer = gradeColumn.getHeaderRenderer();
    if (headerRenderer instanceof DefaultTableCellRenderer) {
    ((DefaultTableCellRenderer) headerRenderer)
    .setToolTipText("Click the Grade to see a list of choices");
    }// end doGradeColumn-------------------------------------------------
    * Function to setup the Class room Column of the subjects
    public void doClassColumn() {
    // set the column for the classroom
    TableColumn classColumn = getColumnModel().getColumn(2);
    classColumn.setCellEditor(new DefaultCellEditor(getClassCombo()));
    DefaultTableCellRenderer renderer = new DefaultTableCellRenderer();
    renderer.setToolTipText("Click for drop down list");
    classColumn.setCellRenderer(renderer);
    // Set up tool tip for the sport column header.
    TableCellRenderer headerRenderer = classColumn.getHeaderRenderer();
    if (headerRenderer instanceof DefaultTableCellRenderer) {
    ((DefaultTableCellRenderer) headerRenderer)
    .setToolTipText("Click the Class to see a list of choices");
    }// end doClassColumn--------------------------------------------------
    * Function to get the size of the table
    * @return Returns the size.
    public Dimension getSize() {
    if (this.size == null) {
    this.size = new Dimension(this.height, this.width);
    return this.size;
    * Function to set the size of the table
    * @param dim
    * The size to set.
    public void setSize(Dimension dim) {
    if (dim != null) {
    this.size = dim;
    return;
    * Function to create/setup the class room comboBox. If the comboBox
    is
    * <code>null</code> a nwew one is created else the functon returns
    the
    * function that was returned initially.
    * @return Returns the classCombo.
    private JComboBox getClassCombo() {
    if (this.classCombo == null) {
    this.classCombo = new JComboBox();
    // fill up the class name combo
    ArrayList classRooms = new ArrayList();
    try {
    //TODO classRooms = Settings.getDatabase().getClassRooms();
    for (int i = 0; i < 10; i++) {
    String string = new String("Class");
    string += i;
    if (!classRooms.isEmpty()) {
    classRooms.trimToSize();
    for (int i = 0; i < classRooms.size(); i++) {
    this.classCombo.addItem(classRooms.get(i));
    } catch (Exception e) {
    e.printStackTrace();
    return this.classCombo;
    * Function to create/setup the subjects comboBox. If the comboBox is
    * <code>null</code> a nwew one is created else the functon returns
    the
    * function that was returned initially.
    * @return Returns the subjectsCombo.
    private JComboBox getSubjectsCombo() {
    if (this.subjectsCombo == null) {
    this.subjectsCombo = new JComboBox();
    try {
    ArrayList subjects = loadSubjectsFromDatabase();
    if (!subjects.isEmpty()) {
    Iterator iterator = subjects.iterator();
    while (iterator.hasNext()) {
    // create a new subject instance
    //TODO Subject subct = new Subject();
    // typecast to subject
    //TODO subct = (Subject) iterator.next();
    String name = (String) iterator.next();
    // add this subject to the comboBox
    //TODO this.subjectsCombo.addItem(subct.getName());
    subjectsCombo.addItem(name);
    }// end while
    }// end if
    else {
    JOptionPane.showMessageDialog(SubjectTable.this,
    "Subjects List Could Not Be Filled");
    System.out.println("Subjects List Could Not Be Filled");
    } catch (Exception e) {
    e.printStackTrace();
    return this.subjectsCombo;
    * Function to load subjects from the <code>Database</code>
    * @return Returns the subjects.
    private ArrayList loadSubjectsFromDatabase() {
    // list of all the subject that the school does
    ArrayList subjects = new ArrayList();
    try {
    //TODO to be removed later on
    for (int i = 0; i < 10; i++) {
    String string = new String("Subject");
    string += i;
    subjects.add(i, string);
    // set the school subjects
    //TODO subjects = Settings.getDatabase().loadAllSubjects();
    } catch (Exception e1) {
    e1.printStackTrace();
    return subjects;
    * Function to create/setup the grade comboBox. If the comboBox is
    * <code>null</code> a nwew one is created else the functon returns
    the
    * function that was returned initially.
    * @return Returns the gradeCombo.
    private JComboBox getGradeCombo() {
    if (this.gradeCombo == null) {
    this.gradeCombo = new JComboBox();
    // fill with grade 1 to 12
    for (int i = 12; i > 0; i--) {
    this.gradeCombo.addItem(new Integer(i).toString());
    return this.gradeCombo;
    public static void main(String[] args) {
    try {
    UIManager.setLookAndFeel(new Plastic3DLookAndFeel());
    System.out.println("Look and Feel has been set");
    } catch (UnsupportedLookAndFeelException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    SubjectTableModel model = new SubjectTableModel();
    int cols = model.getColumnCount();
    int rows = model.getRowCount();
    Object[][] subjects = new Object[rows][cols];
    for (int row = 0; row < rows; row++) {
    subjects[row][0] = new String("Subjectv ") + row;
    }//for
    model.setSubjectsList(subjects);
    SubjectTable ttest = new SubjectTable(model);
    JFrame frame = new JFrame("::Table Example");
    JScrollPane scrollPane = new JScrollPane();
    scrollPane.setViewportView(ttest);
    frame.getContentPane().add(scrollPane);
    frame.pack();
    frame.setVisible(true);
    **************************************END
    TABLE******************************
    ----------------------------THE TABLE
    MODEL----------------------------------
    * Created on 2005/03/21
    * SubjectTableModel
    package com.school.academic.ui;
    import javax.swing.table.AbstractTableModel;
    * Class extending the <code>AbstractTableModel</code> for use in
    creating the
    * <code>Subject</code>s table. In addition to the implemented methods
    of
    * <code>AbstractTableModel</code> The class creates a model that has
    initial
    * values - the values have their own <code>getter</code> and
    * <code>setter</code> methods - but can still be used for values that
    a user
    * chooses.
    * <p>
    * @author Khusta
    public class SubjectTableModel extends AbstractTableModel {
    * Comment for <code>serialVersionUID</code>
    private static final long serialVersionUID = 3257850978324461113L;
    /** Column names for the subjects table */
    String[] columnNames = { "Subject", "Grade", "Class Room",
    "Select" };
    /** Array of objects for the subjects table */
    Object[][] subjectsList;
    private int totalRows = 20;
    protected int notEditable = 0;
    * Parameterless constructor.
    public SubjectTableModel() {
    // TODO initialise the list
    // add column to the default table model
    this.subjectsList = new
    Object[getTotalRows()][getColumnNames().length];
    * Copy constructor with the <code>subjectList</code> to set
    * @param subjects
    public SubjectTableModel(Object[][] subjects) {
    this(0, null, subjects, 0);
    * Copy constructor with the initial number of row for the model
    * @param rows -
    * the initial rows of the model
    * @param cols -
    * the initial columns of the model
    * @param subjects -
    * the initial subjects for the model
    * @param edit - the minimum number of columns that must be
    uneditable
    public SubjectTableModel(int rows, String[] cols, Object[][]
    subjects, int edit) {
    // set the initial rows
    setTotalRows(rows);
    // set the column names
    setColumnNames(cols);
    // set the subjectlist
    setSubjectsList(subjects);
    //set not editable index
    setNotEditable(edit);
    * Function to get the total number of columns in the table
    * @return int -- the columns in the table
    public int getColumnCount() {
    if (this.subjectsList == null) {
    return 0;
    return getColumnNames().length;
    * Function to get the total number of rows in the table
    * @return int -- the rows in the table
    public int getRowCount() {
    if (this.subjectsList == null) {
    return 0;
    return this.subjectsList.length;
    * Function to get the name of a column in the table.
    * @param col --
    * the column to be named
    * @return String -- the column in the table
    public String getColumnName(int col) {
    if (getColumnNames()[col] != null) {
    return getColumnNames()[col];
    return new String("...");
    * Function to get the value of the given row.
    * @param row --
    * the row of the object.
    * @param col --
    * the col of the object.
    * @return Object -- the value at row, col.
    public Object getValueAt(int row, int col) {
    return getSubjectsList()[row][col];
    * Function to return the data type of the given column.
    * @param c --
    * the column whose type must be determined.
    * @return Class -- the type of the object in this col.
    public Class getColumnClass(int c) {
    if (getValueAt(0, c) != null) {
    return getValueAt(0, c).getClass();
    return new String().getClass();
    * Function to put a value into a table cell.
    * @param value --
    * the object that will be put.
    * @param row --
    * the row that the object will be put.
    * @param col --
    * the col that the object will be put.
    public void setValueAt(Object value, int row, int col) {
    * TODO: Have a boolean value to determine whether to clear or
    to set.
    * if true clear else set.
    if (value != null) {
    if (getSubjectsList()[0][col] instanceof Integer
    && !(value instanceof Integer)) {
    try {
    getSubjectsList()[row][col] = new
    Integer(value.toString());
    fireTableCellUpdated(row, col);
    } catch (NumberFormatException e) {
    * JOptionPane .showMessageDialog( this., "The \""
    +
    * getColumnName(col) + "\" column accepts only
    values
    * between 1 - 12");
    return;
    System.out.println("Value = " + value.toString());
    System.out.println("Column = " + col + " Row = " + row);
    // column = Grade or column = Select
    switch (col) {
    case 2:
    try {
    // TODO
    if (Boolean.getBoolean(value.toString()) == false
    && getValueAt(row, 0) != null
    && getValueAt(row, 1) != null
    && getValueAt(row, 2) != null) {
    // subjectsList[row][col + 1] = new
    Boolean(true);
    System.out.println("2. false - Updated...");
    * this.subjectListModel.add(row,
    * this.subjectsList[row][0] + new String(" -
    ") +
    * this.subjectsList[row][2]);
    } catch (ArrayIndexOutOfBoundsException exception) {
    exception.printStackTrace();
    break;
    case 3:
    if (Boolean.getBoolean(value.toString()) == false
    && getValueAt(row, 0) != null
    && getValueAt(row, 1) != null
    && getValueAt(row, 2) != null) {
    System.out.println("3. If - Added...");
    getSubjectsList()[row][3] = new Boolean(true);
    this.subjectListModel.addElement(this.subjectsList[row][0] +
    * new String(" - ") + this.subjectsList[row][2]);
    // subjectListModel.remove(row);
    fireTableCellUpdated(row, col);
    fireTableDataChanged();
    // this.doDeleteSubject();
    } else if (Boolean.getBoolean(value.toString()) ==
    true
    && getValueAt(row, 0) != null
    && getValueAt(row, 1) != null
    && getValueAt(row, 2) != null) {
    setValueAt("", row, col - 1);
    setValueAt("", row, col - 2);
    setValueAt("", row, col - 3);
    System.out.println("3. Else - Cleared...");
    // this.subjectListModel.remove(row);
    break;
    default:
    break;
    }// end switch
    getSubjectsList()[row][col] = value;
    fireTableCellUpdated(row, col);
    fireTableDataChanged();
    }// end if
    }// end
    * Function to enable edition for all the columns in the table
    * @param row --
    * the row that must be enabled.
    * @param col --
    * the col that must be enabled.
    * @return boolean -- indicate whether this cell is editble or
    not.
    public boolean isCellEditable(int row, int col) {
    if (row >= 0
    && (col >= 0 && col <= getNotEditable())) {
    return false;
    return true;
    * Function to get the column names for the model
    * @return Returns the columnNames.
    public String[] getColumnNames() {
    return this.columnNames;
    * Function to set the column names for the model
    * @param cols
    * The columnNames to set.
    public void setColumnNames(String[] cols) {
    // if the column names are null the default columns are used
    if (cols != null) {
    this.columnNames = cols;
    * Function to get the rows of subjects for the model
    * @return Returns the subjectsList.
    public Object[][] getSubjectsList() {
    if (this.subjectsList == null) {
    this.subjectsList = new
    Object[getTotalRows()][getColumnNames().length];
    return this.subjectsList;
    * Function to set the subjects list for the model
    * @param subjects
    * The subjectsList to set.
    public void setSubjectsList(Object[][] subjects) {
    // if the subject list is null create a new one
    // using default values
    if (subjects == null) {
    this.subjectsList = new
    Object[getTotalRows()][getColumnNames().length];
    return;
    this.subjectsList = subjects;
    * Function to get the total number of rows for the model. <b>NB:
    </b> This
    * is different to <code>
    getRowCount()</code>.<code>totalRows</code>
    * is the initial amount of rows that the model must have before
    data can be
    * added.
    * @return Returns the totalRows.
    * @see #setTotalRows(int)
    public int getTotalRows() {
    return this.totalRows;
    * Function to set the total rows for the model.
    * @param rows
    * The totalRows to set.
    * @see #getTotalRows()
    public void setTotalRows(int rows) {
    // if the rows are less than 0 the defaultRows are used
    // set getTotalRows
    if (rows > 0) {
    this.totalRows = rows;
    * Function to get the number of columns that is not editble
    * @return Returns the notEditable.
    public int getNotEditable() {
    return this.notEditable;
    * Function to set the number of columns that is not editable
    * @param notEdit The notEditable to set.
    public void setNotEditable(int notEdit) {
    if (notEdit < 0) {
    notEdit = 0;
    this.notEditable = notEdit;
    ----------------------------END TABLE MODEL----------------------------------

    I hope you don't expect us to read hundreds of lines of unformatted code? Use the "formatting tags" when you post.
    Why are you creating your own TableModel? It looks to me like the DefaultTableModel will store you data. Learn how to use JTable with its DefaultTableModel first. Then if you determine that DefaultTableModel doesn't provide the required functionality you can write your own model.

  • "ADF Navigation List" does not shows all items that are in table

    Hi
    Thank you for reading my post
    I am tring to use "ADF Navigation List" , (it can be draged from data control platte into a form)
    but when i drag and drop it on my form it does not shows all items that are available in my table ?
    it just shows 10 item when i have 60 record in my Table.
    Thanks

    Hi,
    in the pageDef ile, select the iterator for this list and set the fetch size to -1 (its 10 by default)
    Frank

  • DVI to Viedo adapter stoped working after upgrade to Mountain lion does not show up in displys any more

    I have a dvi to viedo adaptor that no longer shows up in the displays window, and on image shows up on the tv. How do I get the mac book to reconize the adaptor? The Mv book does respond to the adaptor beging pluged in but does not show up in the display window.
    Mike

    Hi there, You just need to update the drivers of your laptop's built-in wireless adapter..
    I assume you have got Athros AR5007 wireless adapter  
    Kashif Khan

  • :: NWA does not show table view for monitoring reports ::

    Hi,
    We are facing an issue in one of our portal system.
    I click on Portal index page, then I go to Net weaver Administrator --> Monitoring --> Java system reports.
    Here I get the resource utilization graphs.
    The graphs show proper values however when I click on table view it does not show any value or table at all.
    Then I click on Settings button, and click on Persistent radio button.
    It asks to enter the number of days for which the the data should be stored.
    I gave it as 2 days and click on Apply button.
    It shows a message saying "changes would be effective after restarting monitoring service".
    However when I go there i.e. NWA --> Administration --> Applications
    I get below services
    cafruntimemonitoring~ear                 
    com.sap.ip.bi.sdk.monitoring                 
    tclmwebadminmonitoravail~wd            
    tclmwebadminmonitorcomplib~wd            
    tclmwebadminmonitorprovider_ear            
    tclmwebadminmonitorstate~wd            
    tclmwebadminoverviewmonitoring~wd           
    tcmonitoringsysteminfo
    Would you kindly suggest which service from above list should be restarted ?
    Thank you, Regards,
    Girish Garje.

    I think what is being asked is "How do I expose a database view as a schema table in Configuration Manager?"
    This is accomplished by creating a database view within the WCC database schema (and with the WCC schema user as the view owner). The view then will appear as a table in the "table" tab in Configuration Manager.
    One caveat in 11g is that the user created by RCU does not have any privileges to read/create views in its own schema. You may need to grant privileges to views for the WCC schema user before this will work.

Maybe you are looking for

  • IPad not recognized by iTunes

    I have the following problem: My new iPad is not connecting to iTunes. When I insert the USB cable I hear the USB-connect sound of windows, but in iTunes nothing happens. However my previous iPad and iPhone are connecting without any problems. I foll

  • Help: Oracle 8.1.7 on Mandrake Linux

    I was able to get through the installation process. But I am currently stuck with initial database creation stage. Whenever I try to create a database with dbassist, I got the following error: ORA-03114 not connected to ORACLE ORA-03113 end-of-file o

  • Combine Work Center Link Groups in one Work Center

    Hello Experts, our requirement is to combine the Work Center Link Groups of several Work Centers into one Custom Work Center. For example, the work centers Knowledge Management and Managing Operations. (IC-MGRKM, IC-MGRMA) They have Work Center Link

  • Aironet 1100 / 802.3af Power Over Ethernet (POE) Support

    I was under the impression that the Aironet 1100 supports 802.3af POE. I purchased a NetGear FS108P POE switch, however, when I plug in the 1100, it does not receive any power. I have seen references in the documentation to a Cisco inline power injec

  • I had to force reboot my droid razr. PLEASE HELP!

    I had to force reboot my droid razr except that's not what happened. It turned off and is now just vibrating and will not turn back on. Please help I have no other phone.