Remove all columns in a table

whenever a user decides to choose another file to read, i would remove all the columns in the table and then write it all over again, However, I do not see such function in jtable, so how do I go about doing that?

Use the following code for remove all the row in a table...
call the DeviceClearTable()
method in mouse event...
public void DeviceClearTable()
     int numrows = DeviceModel.getRowCount();
          for(int i = numrows - 1; i >=0; i--)
               DeviceModel.removeRow(i);
Edited by: kumaravel on Jun 2, 2008 10:36 AM

Similar Messages

  • How to remove all columns and cells in numbers

    how to remove all columns and cells in numbers

    Click on the Table's icon in the Sheets list. Press delete.
    Done.
    Regards,
    Barry

  • Aggregate of all Columns in each table for the entire schema

    I want to calculate the report of Aggregate of all Columns in each table for the entire schema in Oracle. Pls let me know which approach is best to do this.
    Thanks in advance !!

    Not sure about your requirement..
    This?
    select table_name,sum(data_length) sm
    from user_tab_cols
    group by table_name;                                                                                                                                                                                                                                                                           

  • ORA-12983: cannot drop all columns in a table

    Hi,
    I am creating a table with two columns.
    I have modified a column as unused using ALTER statement.
    After that i have tried to drop the another column by using ALTER statement.
    But it throws an error ORA-12983: cannot drop all columns in a table.
    is it not possible to achieve this via ALTER statement?
    thanks

    is there any other way to find the name of the columns which have been marked as unused?Don't think so, and you would not be able to do much about. You won't be able to reference it, you won't be able to un-unuse it, and you would even be able to add a new column having same name.
    Why are you using SET UNUSED in the first place?
    Regards
    Peter
    Quoting myself:
    You won't be able to reference itMaybe not good enough:
    SQL> select column_name, data_type, segment_column_id
      from user_tab_cols
    where table_name = 'T';
    COLUMN_NAME                    DATA_TYPE   SEGMENT_COLUMN_ID
    SYS_C00001_11051618:28:14$     NUMBER                      1
    B                              NUMBER                      2
    SYS_C00003_11051618:28:14$     NUMBER                      3
    3 rows selected.
    select "SYS_C00003_11051618:28:14$" from t
    Error at line 1
    ORA-00904: "SYS_C00003_11051618:28:14$": invalid identifier
    SQL> alter table t drop column "SYS_C00001_11051618:28:14$";
    Table altered.
    SQL> select column_name, data_type, segment_column_id
      from user_tab_cols
    where table_name = 'T';
    COLUMN_NAME                    DATA_TYPE   SEGMENT_COLUMN_ID
    B                              NUMBER                      
    1 row selected.
    Note: Both columns "disappeared"  Thanks MichaelS
    Edited by: Peter on May 16, 2011 9:29 AM

  • How to change/remove Details column in a table?

    Hi,
    I need to build an interface where the user would be able to review summary information on some records and edit them one in detail mode.
    This all works very nice through detailDisclosure but it also automatically includes a Details column which I do not seem to be able to manipulate in any way.
    Ideally I would like to replace the Details column with one called Action and positioned as last column in the table and replace the "Show" and "Hide" links with "Edit" and "Cancel" buttons... I am able to add the column with the buttons and they work just as expected as long as the table is defined with its <detail>...</detail> section in the .uix file, however that also triggers the addition of Details column, which is not desirable.
    I have used JHeadstart to create the page and then edited the UIX file for the page in order to add the buttons.
    Is what I am trying to do possible at all with <table>? The functionality I need is all there. I just cannot make it look the way I want on the screen because of that Automatically inserted Details column. If not possible to
    remove it completely is there a way to change the title and replace Show and Hide with something else? Preferably icons?
    Thanks!

    This has been much discussed earlier. Do search posts.
    For your scenario i would do the following.
    inside your node which is binded to the table, i create a new node image with cardinality 1 ..1 and a attribute called path of type string.
    create a  supply function for the node image .
    Supply method now has a Element (Parent element ) and node.
    Based on your record in element, set the right image source to path attribute and bind the node.
    This will make sure that the framework calls the image supply function for every row in a table.

  • How to remove a column from alv table

    Hi All
    How to remove a specific column from alv table.?
    Thanks & Regards
    SUN

    For delete u can follow the above post..
    Fo making invisible :
    data m_col type ref to cl_salv_wd_column.
    m_col = alv_mode->IF_SALV_WD_COLUMN_SETTINGS->GET_COLUMN (' col1' ).
    m_col->SET_VISIBILITY( '01'  ).

  • 1.5PROD/EA3/EA2 - Issues removing indexed column through Edit Table dialog

    The Edit Table dialog does not cope well with removing a column which is used in indexes.
    If you simply remove the column and hit OK, you get a Validation Failed error saying that "Column <column> is not a column of table <table>". Given that you are trying to remove the column, this is confusing.
    Most times, you can navigate to the indexes but the column no longer shows in the index which contained (and all other columns in the index appear to be removed as well). At least you can remove the index and then accept the change. However, some times (couldn't reproduce consistently), the index didn't display properly (no name displayed) and I couldn't leave the record without entering a dummy name before removing it.
    Shouldn't the behaviour be equivalent to the "corresponding" alter table drop column command which automatically drops the indexes referring to the dropped column? I know that it isn't always nice to "silently" remove an index or indexes, but couldn't we display a dialog that indicates which indexes we are going to drop to warn the user?
    theFurryOne

    No response to this, but it is still a problem in EA3.
    I assume it is not intended that you cannot drop an indexed column through the Edit Table dialog, without having to first drop the index - it is certainly not required in direct SQL and the Drop Column via the Table context menu works as well (as that simply generates the SQL).
    theFurryOne

  • Logging ALL Columns in a Table

    Hi I want to enable supplemental logging for all columns in table. So I issued the command
    'ALTER TABLE xxxx ADD SUPPLEMENTAL LOG DATA (ALL) COLUMNS:
    Now In that table I have 5 LOB colums,2 CLOBS and 2 Varchar2 columns and I dont want to log them but all the other columns.How to do this.Will logging all columns automatically reject LOBs and CLOBS???

    Use the following code for remove all the row in a table...
    call the DeviceClearTable()
    method in mouse event...
    public void DeviceClearTable()
         int numrows = DeviceModel.getRowCount();
              for(int i = numrows - 1; i >=0; i--)
                   DeviceModel.removeRow(i);
    Edited by: kumaravel on Jun 2, 2008 10:36 AM

  • Is there a way to match all columns in a table?

    Oracle 11.1.0.7:
    Is there any way to say match all the columns of Table A with Table B? For eg:
    Table A
    id
    name
    Table B
    id
    name
    Is there a way to say match all the columns with similar column in other in a select instead of doing "where A.id = B.id and A.name = b.name"? I am trying to write a compare script to test that replication is indeed doing the right thing.

    user628400 wrote:
    If 2 columns have null values does it match that too? I'll run some tests.It does
    SQL> ed
    Wrote file afiedt.buf
      1  with a as (select 1 col1, null col2 from dual
      2             union all
      3             select 2 col1, null col2 from dual
      4             union all
      5             select null, null from dual),
      6       b as (select 1, null from dual
      7             union all
      8             select null, null from dual)
      9  select *
    10    from a
    11  minus
    12  select *
    13*   from b
    SQL> /
          COL1 C
             2
    While I was doing the comparision I found that if column x in Table A has "null" and same column x in table B has "null" and if I do "where A.x = B.x" then it doesn't return the row. I am not sure why. Does "minus" work the same way?That's because NULL will never equal any value (including NULL) and NULL will never not equal any value (including NULL). That is
    NULL = 1 is unknown (which maps to false)
    NULL = NULL is unknown
    NULL != 1 is unknown
    NULL != NULL is unknown
    If you want to compare columns that may have NULL values, you need to use IS NULL and IS NOT NULL or use the NVL function to map NULL values to a non-NULL but impossible value, i.e.
    WHERE (a.x = b.x OR
            (a.x is null and b.x is null))or
    WHERE nvl(a.x,-17) = nvl(b.x,-17)assuming that -17 is not a valid value for either a.x or b.x
    Justin

  • All columns of trinidad table are not coming up on page while its running

    Hi,
    I have put two trinidad tables on my page.But while the page is run, I am unable to see all the columns of the table.Only a few columns are visible.
    Also, though there are 5 rows in teh table ,there is a lot of gap below the tablespace.So the next table comes after a very big gap.
    How to solve the above two problems? Kindly let me know your valuable suggestions.
    Regards

    Hi santosh,
    Following is my code.I am providing only one column code(similarly there are 3 more columns),along with the table code.
    <tr:table value="#{phonebeannew.inputphone}" var="row"
    rows="#{bindings.phone.rangeSize}"
    inlineStyle="height:#{phonebeannew.rownumbers + 275}px"
    id="t1" width="100%">
    <tr:column sortProperty="phonetype" sortable="false"
    headerText="phonetype"
    id="c3" width="5px">
    <tr:inputText value="#{row.phonetype}"
    simple="true">
    I gave width as 5px but it doesnt make any difference in output.
    The 'phonebeannew' is our bean and inputphone is a property of it.input phone holds the array of values for the 4 columns.
    Kindly let me know if you want any further information which I can provide
    Regards

  • File Browse Option don't show me all Column in Data / Table Mapping

    Dear Friends,
    i am using 4.1 on APEX.ORACLE.COM.
    i have to created page with DATA Upload option.Page are ctreated successfully But there is one problem when i COPY & PASTE DATA from Excel Sheet then Data Upload Success fully.
    But When I use File Browser Option to Upload Data Then In Data / Table Mapping Step that show me Only One Column Name Select list with Do Not Load default option . but i have 7 column name in Excel Sheet. that should be display me 7 Select List to select All column name which are mention in Excel Sheet
    Please tell me where i am wrong and how to display all Column name in Data / Table Mapping step to upload Excel Sheet Data.
    How to Resplve this issue.
    Thanks
    Manoj Kauhsik

    Dear Earl,
    Thanks to reply me.
    I am not using Utility to upl;oad Excel Sheet Data.
    i am go through Apex.oracle.com .i have create an application to upload data from Excel Sheet.
    There is an option DATA UPLOAD when we create new Page so i have choose this option and create Pages with follow all instraction .By using this option i want to an Feature in my Application to Upload Data .
    When i use Copy and Paste OPtion to upload data from Excel Sheet.then Data ar Uploaded but Problem Is When i use File Browser Option to upload data then that show me only one option for Column name rather than i have 7 Column in My excel file.
    i have one more problem ,i have .csv file when i open it and close then no problem but when i reopen it then that show me a pop up with Meassages
    "Excel has detected abc.csv file is a SYLK file.but can't load it".
    How resole it.Please suggest me.
    Thanks
    Vedant

  • Question - new to BO Data Services Designer - how to automatically transform varchar column data to upper(varchar) across all columns in a table?

    Hello -
    New user to BO Data Services Designer. Company is using Data Services Version 12.2.
    I have many tables that all need the same transformation- converting varchars fields to upper(varchar) fields
    Example:
    I have a table called Items. It has 40 columns, 25 of which are of type varchar.
    What I have been doing is ....
    I make the Item table as the source table then create a Query transform that is then attached to a new target table called - ITEMS_Production.
    I can manually drag and drop columns from the source table to the query and then in the mapping area I can manually type in upper(table_name.column_name) or select the upper function and then select the table.column name from the function drop down list.
    Obviously, I want to do this quicker as I have to do this for lots and lots of tables.
    How can set up Data Services so that I can drag and drop an upper transform quickly and easily or automate this process.
    I also know Python-Java so am happy to script something if need be.
    the logic would be something like -
    if there is a column with a type varchar, add the upper() transformation to column. Go to next column.
    Excited to be using this new tool-
    Thanks in advance.
    Ray

    Use the DS Workbench.

  • Microsoft Word 2008 for Mac - remove all hyperlinks in a table?

    Hello!
    I'm using word 2008 with a table which I have populated with some wikipedia text.
    Consequently some of the words are hyperlinked.
    Now since it is a massive table, I'd rather not delete all these hyperlinks by hand.
    Is there a method to select them and delete all the hyperlinked words [but retain the words themselves]
    for example if the word says 'horse' in blue underlined hyperlink text, i would like to have it that the word 'horse' remains, but is no longer links to wikipedia's entry on horse
    thank you kindly

    Shenzi,
    I think you may have better success posting to a MS Office for Mac forum. For example:
    http://www.microsoft.com/mac/help.mspx
    Regards,
    Roger

  • Possible to include all columns of a table in a SELECT but exclude BLOBS?

    Hi
    I am using Oracle 9i.
    I was hoping the following would give me a list of rows in 1 table on a schema that are not in another identical table on another schema:
    select * from online.table minus select * from offline.table
    However, the statement issues the error:
    ORA-00932: inconsistent datatypes: expected - got BLOB
    Without writing a contruct query to get the columns (excluding BLOBS etc) is there another,easier way?
    Thanks
    Edited by: cubmar on May 25, 2009 2:41 PM

    Hi,
    No need to write PL/SQL(?). Just generate the select lists needed, by using the dictionary.
      select column_name || ','
        from user_tab_cols
       where data_type not in ('BLOB', 'CLOB', 'LONG')
         and table_name = upper('&your_table')
    order by column_id;Regards
    Peter

  • Search all columns in a table

    Hi,
    I have an application which deploys the data to Oracle database. It has more than 25 tables and many columns. It does not have any document explaining the deployment, so I an kind of doing reverse engineering here.
    I need a script which will fetch the column name or at least table names which will match with either some string or number? I found few examples on net to find out numbers. But I am struggling to make it work for string.
    If any expert could share some knowledge, will be a great help.
    Thanks in advance,
    amit

    Are you looking for this?
    satyaki>
    satyaki>select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Prod
    PL/SQL Release 10.2.0.3.0 - Production
    CORE    10.2.0.3.0      Production
    TNS for 32-bit Windows: Version 10.2.0.3.0 - Production
    NLSRTL Version 10.2.0.3.0 - Production
    Elapsed: 00:00:00.17
    satyaki>
    satyaki>
    satyaki>SELECT user_tab_columns.table_name,user_tab_columns.column_name,
      2           user_tab_columns.data_type
      3  FROM  user_tab_columns
      4  WHERE column_name = upper('&col_nm')
      5  order by user_tab_columns.table_name;
    Enter value for col_nm: empno
    old   4: WHERE column_name = upper('&col_nm')
    new   4: WHERE column_name = upper('empno')
    TABLE_NAME                     COLUMN_NAME                    DATA_TYPE
    AUD_EMP                        EMPNO                          NUMBER
    BIN$KMfZlm2JTAGMa8qHy2RMtw==$0 EMPNO                          NUMBER
    BIN$M70sSYS8RxSuSHC91rMJ7w==$0 EMPNO                          NUMBER
    BIN$TQFKVismS0eN82vmFZgOKQ==$0 EMPNO                          NUMBER
    BIN$WKXsDR9KSGWgL9rc4o2tMQ==$0 EMPNO                          NUMBER
    BIN$Wr/F6e6QRhORNu4ZQJmYpQ==$0 EMPNO                          NUMBER
    CONDITIONAL_AUDIT              EMPNO                          NUMBER
    CONS_CHK                       EMPNO                          NUMBER
    DEEP                           EMPNO                          NUMBER
    DUP_EMP                        EMPNO                          NUMBER
    DYN_EMP                        EMPNO                          NUMBER
    TABLE_NAME                     COLUMN_NAME                    DATA_TYPE
    EMP                            EMPNO                          NUMBER
    EMP2                           EMPNO                          NUMBER
    EMP_DML                        EMPNO                          NUMBER
    EMP_JOB_DET                    EMPNO                          NUMBER
    EMP_N                          EMPNO                          NUMBER
    EMP_NO_DML                     EMPNO                          NUMBER
    EMP_STAT                       EMPNO                          NUMBER
    E_EMP                          EMPNO                          NUMBER
    E_EMP_N                        EMPNO                          NUMBER
    FF_EMP                         EMPNO                          NUMBER
    MIKE_TEST                      EMPNO                          NUMBER
    TABLE_NAME                     COLUMN_NAME                    DATA_TYPE
    MIKE_V_TEST                    EMPNO                          NUMBER
    NICK_DEMO                      EMPNO                          NUMBER
    PP_GERD                        EMPNO                          NUMBER
    P_EMP                          EMPNO                          NUMBER
    SR_EMP                         EMPNO                          NUMBER
    SS_EMP                         EMPNO                          NUMBER
    TABLE_1                        EMPNO                          NUMBER
    TABLE_2                        EMPNO                          NUMBER
    TABLE_3                        EMPNO                          NUMBER
    TABLE_MAIN                     EMPNO                          NUMBER
    TEST_SSSSS                     EMPNO                          NUMBER
    TABLE_NAME                     COLUMN_NAME                    DATA_TYPE
    T_EMP                          EMPNO                          NUMBER
    test_guido                     EMPNO                          NUMBER
    35 rows selected.
    Elapsed: 00:00:01.68Regards.
    Satyaki De.

Maybe you are looking for

  • Problem of degradation  in Access Manager 7.1 in SUNWappserv8.2

    Hi all, We have a problem in our enviroment... Have 2 nodes of AM, periodically we have some problems of degradation in each node, high times of response +30seconds, all seems perfect until some more traffic or requests begin to appears in the system

  • Getting error while migrating single mpr from pilot to production environment

    Hi, I am migrating single MPR form pilot to production and I am facing the following issue Join-FIMConfig : Two objects with same AnchorAttributeValue were detected. A requirement for using this migration tool is that AnchorAttributeValue is unique w

  • Cannot get native resolution on my external monitor

    System: - IBM Thinkpad T42p (display works intermittently) - Samsung Syncmaster 2333SW (1920x1080 native res.) - ATI Mobility Fire GL T2 (Driver vers. 6.14.10.6422) 1920x 1080 does not seem to be available through control panel for my external monito

  • Place XML into Library element

    Hi, I am automating the process of placing library element as anchored element. The actual task is, I have an sidenote text in the indesign document. These text also contains   XML tags. I want to place this sidenote text into an library item called

  • Paging in JSP ! HELP! HELP! HELP!

    somebody can order an example to me of paging of results in JSP... or tutorial address that has some scritpt and. since already I am thankful! [email protected]