Auto reset table

hello..
i want to put 10 values to a table and then i need a way to auto reset table
to take new data.how can i do that?
thanks a lot... 
Attachments:
auto reset table.vi ‏53 KB

Here's more information about property nodes on NI's site.
The short answer is that you right-click on the indicator, select Create_Property Node, select value and place the node on the Block Diagram.  Once it's there you can right-click it and make it to writeable and create an empty array constant on the input terminal.  This replaces the existing data with the 'nothing' contained in the empty array.
Message Edited by jcarmody on 03-15-2009 07:27 PM
Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice

Similar Messages

  • IPhone won't activate after "auto" reset

    Hi,
    I went to bed at 10:30pm last night, set my iPhone alarm for 05:30am this morning, dimmed my brightness to its lowest setting (as I always do, so I don't get blinded when I check the time during the night) and then left my phone beside my bed.
    This morning, when the alarm went off, I couldn't switch it off, because my iphone was in the middle of some "restore" after doing what can only be called an "automatic" reset.  I had to switch the phone off to stop the alarm.
    Now, I can't get past the activation screen and keep getting the "Your iphone could not be activated because the server is temporarily unavailable" screen.  No matter HOW many times I try, or how long I wait between tries, it just won't complete this part.
    I followed the advice in various forums, and tried connecting to iTunes.  However, iTunes says "The software on the iphone has expired and must be updated to a new version" - all of which I find extremely strange as:
    1)  My iPhone is (was - God only knows what it's on now) on the latest build of 5.1
    2)  iTunes is on version 10.6 (updated recently)
    3)  When I clear the iTunes message, it tries to sync the phone but, obviously as the phone hasn't yet activated after the auto-reset, can't.
    4)  The iTunes screen showing the iPhone information states that the software is the latest version and doesn't need changing.
    I'm now stuck with an iPhone which doesn't work and I don't live near an Apple store either - only a Stormfront store
    Anybody got any ideas?
    Thanks,
    Tony

    I have a similar situation. I woke up with a 'bricked' iPhone. I can't get into it as I had a beta version installed and the beta has expired. I used that beta version because the stable iOS 5.0 gave me a SIM error every so many hours (after which I needed to turn on and off my phone). Tried everything, and installing the beta solved that issue for me (really glad it did). I installed it as a non developer.
    I now can't update the iOS through iTunes, I can't get in my phone, I simply can't use the device as I can not get passed the developer screen. I can't even backup because a session cannot be started from iTunes. All iTunes is saying is "The software on the iphone has expired and must be updated to a new version" and when I check for update, it gives back "This version of the iPhone software (5.1) is the current version".
    So I'm stuck with a great device which doesn't work.    

  • My firefox is auto resetting to default how can I stop this?

    my firefox is auto resetting to its default setting everyday what is causing this and how can I stop it? I ran virus, malware, adware scanners and found nothing wrong there every time I find this I have to reset all my security and privacy option as well

    Which security software (firewall, anti-virus) do you have?
    Some security software has virtualization or sandbox features that may cause problems by protecting and restoring files in the Firefox profile folder.

  • Ipad Air auto resets after upgrade to iOS 8

    After upgrade to iOS 8, my iPad air usually auto resets while i am using Chrome. A little blue screen on the top of the screen after the iPad shuts down and it return to lock screen.

    After upgrade to iOS 8, my iPad air usually auto resets while i am using Chrome. A little blue screen on the top of the screen after the iPad shuts down and it return to lock screen.

  • How to auto reset delivery block in item level in sales order

    hi i have one scenario. After creation of sales order it needs to be approved through work flow at item level so that without approval no delivery can be made. We have blocked the items in sales order now we want after approval the blocked status should be auto reset from block to free. how to do it.

    Hi,
    How is the approval taking place? Is it through work flow? If yes, You can write code for BDC or BAPI for removing the block after the approval step.
    If it is manual approval, then you can write a program with BDC/BAPI for removing the block with input as sales order number.
    Ask the approver to run this program after the approval.
    Thanks,
    Vinod.

  • Auto numbering tables

    I am currently using FrameMaker 8.0 and have had a problem with the auto numbering of tables.
    Can anyone tell me if it is possible to auto number tables using different chapter numbers within the one document?
    I know that it is possible to do this when the chapters are seperate documents within one book.
    E.g.
    First page - Chapter 1
    Table 1.1
    Table 1.2
    Next page - Chapter 2
    Table 2.1
    Table 2.2 etc.
    For some reason when I try to do this any tables under Chapter 2 are still named Table 1.1 and Table 1.2 etc.
    I have tried using a series but that still does not seem to work.
    Any help would be appreciated!

    Thank you both, this helped a great deal.<br /><br />However, I am still having trouble with one file in the book. It seems to be repeating the same chapter number not adding one when the style appears again.<br /><br />E.g. Page 1 has Chapter 1 (C:Chapter <n+>)<br />     Page 3 has Chapter 1 (which is meant to be Chapter 2)<br /><br />Also is there a way to continue the chapter numbers from a previous file in the book?<br /><br />E.g. File A has Chapters 1-4 in it<br />     File B has Chapters 5-8 in it<br /><br />At the moment they are restarting in each file.<br /><br />Any ideas?<br /><br />Thanks,<br />Skye

  • Problem in using Auto-generated Table in Program

    Hi experts,
    I'm using some auto-generated table in my program. But the Problem is program is not activated due to non-existance of any type of table or structure or view of that Table type in the development server. i.e. table name in development is FMFMOADE12200014 and same in Production is FMFMOAPE14000018.
    How can I solve this problem to active the program and transport it?
    Thnaks in advance.
    Goutam

    Hi Friend  ,
    If  an Auto-generated tables  inside your program ,then you should not use that table directly  as internal table type .
    In that case you have used the Dynamic structure  in your program .
    tips is  you should check first the table is there in the  database  through your  programing using the standard function module for checking the table exsisting , then use the field symbols  for dynmaic creating of program  strucuture  ,including field creation  to tat strcuture  . this  will  make your  program more  lines in that  case you can  write  subroutine  for  creating the  fields  and adding  inside the dynamice strucure  .
    simple example  please see this link  :  [http://www.sap-img.com/ab030.htm]
    becasuse  we do have the  same  auto-generating table  concept  in Finance  base  on the Operating cencern  out table  name  & fields  inside  will be changing  ,Our  program has to support world wide Rollouts . so we used  dynamic structuring  inside Our program .
    Regards,

  • Problem auto-creating tables with the IBFBS sample

    Hello,
    I'm fairly new to JDeveloper and OC4J and am trying to configure the new Financial Brokerage Service (IBFBS) sample to run on my system. I followed all of the setup instructions but have had problems getting the application to work. I've worked through a few issues, but I'm stuck on this one. When deploying/running the application to the JDev embedded OC4J an error occurs when trying to auto-create the tables for some of the EJBs. The error messages are all similar to this:
    "Auto-creating table: create table UserAccount_file:_M:_Ja_rfpkl9 (accountNumber NUMBER not null primary key, password VARCHAR2(255) null, firstName VARCHAR2(255) null, lastName VARCHAR2(255) null, organization VARCHAR2(255) null, address VARCHAR2(255) null, city VARCHAR2(255) null, state VARCHAR2(255) null, country VARCHAR2(255) null, phone VARCHAR2(255) null, accountBalance FLOAT null, email VARCHAR2(255) null, userType VARCHAR2(255) null, linesPerPage NUMBER null, alertMode VARCHAR2(255) null, mobileEmail VARCHAR2(255) null)
    Error creating table: ORA-00922: missing or invalid option"
    The app fails to start with an Ora message "Table or view does not exist"
    I think it's due to the colons in the table name, but how do I change the name of the table it's trying to create?
    I'm running JDeveloper 9.0.3 preview and 9.2.0.1.0 (patchset 1 applied) database all locally on a Windows XP SP1 machine.
    Any help appreciated.
    Nick

    Hi Nick,
    Firstly, regret for the late response.
    I guess what you are trying to do is run the Sample from JDeveloper itself. But this cannot be done, you have to deploy the
    sample to the embedded OC4J(<JDEV_HOME>/j2ee/home) bundled with JDev and run the sample from embedded OC4J.
    Refer to http://otn.oracle.com/sample_code/tutorials/fbs/over/setup.htm and follow the steps to deploy to OC4J.
    Curious to know if you were able to run it.
    Regards
    Elango.
    Hello,
    I'm fairly new to JDeveloper and OC4J and am trying to configure the new Financial Brokerage Service (IBFBS) sample to run on my system. I followed all of the setup instructions but have had problems getting the application to work. I've worked through a few issues, but I'm stuck on this one. When deploying/running the application to the JDev embedded OC4J an error occurs when trying to auto-create the tables for some of the EJBs. The error messages are all similar to this:
    "Auto-creating table: create table UserAccount_file:_M:_Ja_rfpkl9 (accountNumber NUMBER not null primary key, password VARCHAR2(255) null, firstName VARCHAR2(255) null, lastName VARCHAR2(255) null, organization VARCHAR2(255) null, address VARCHAR2(255) null, city VARCHAR2(255) null, state VARCHAR2(255) null, country VARCHAR2(255) null, phone VARCHAR2(255) null, accountBalance FLOAT null, email VARCHAR2(255) null, userType VARCHAR2(255) null, linesPerPage NUMBER null, alertMode VARCHAR2(255) null, mobileEmail VARCHAR2(255) null)
    Error creating table: ORA-00922: missing or invalid option"
    The app fails to start with an Ora message "Table or view does not exist"
    I think it's due to the colons in the table name, but how do I change the name of the table it's trying to create?
    I'm running JDeveloper 9.0.3 preview and 9.2.0.1.0 (patchset 1 applied) database all locally on a Windows XP SP1 machine.
    Any help appreciated.
    Nick

  • Auto Create Table problem in Jdev903

    Hi,
    I am writing EJB application and used CMR. To develop this application I am using JDeveloper(Oracle 9i-OC4J).When I run this application, it metically creates CMR tables. But I don't want to that JDeveloper should create auto table, for that I have configured in
    application.xml <orion-application autocreate-tables="false" ...>.
    still now it creates auto table and generates identifire is to long error.
    I don't want to auto create table, I want to cofigure that it uses our databse tables. so give any solution what will be configuration, as soon as possible.
    is it supported by Oracle9i OC4J Jdev903 Conatiner Managed Relatioship or not

    Also, create the user in the "Users" tablespace. You want to
    keep your System tablespace clear of non-system created items.
    After connecting as system/manager, enter the following:
    Create user username
    identified by password
    default tablespace users
    temporary tablespace temp;
    grant create session, resource to username;

  • Auto rotation table in oracle

    Hi,
    Is there any strcuture or fucntion that can make the table have something like rotation.
    I mean the record can be first in first delete.
    So,for example , even the table have limit row for example , 100 row .
    so, the new data can be replace the oldest row in the table auto and insert into the table .
    so the new row will replace the oldest 99 th row auto .the table still keep 100 row but the data can be update .
    Is it "partition" or other ??
    how can I create it .
    Please give me in detailed

    when creating sequences there is a cycle option so in your scenario after 100 it would go to one.
    you could take advantage of that in a stored procedure or better yet a trigger
    (allthough it would probably need to be a three trigger approach because reading from the table you are going to update insert
    will probably lead to a mutating trigger exception)
    here it is with the stored procedure although the trigger would probably be
    better because if two separate sessions run the procedure you might end up with duplicate rows in your tables.
    you could of course put a unique constraint there to throw an error when that happens.
    anyway. here it is with maximum rows of 5
    create sequence test_seq
    increment by 1
    start with 1
    maxvalue 5
    cycle
    nocache;
    create table rotating_table as
    select 1 id, 'A' txt from dual
    where 1 = 2;
    create or replace procedure insert_into_rotating_table (v_txt  rotating_table.txt%type)  as
    aSequence number;
    begin
       select test_seq.nextval into aSequence from dual;
       delete from rotating_table where id = aSequence;
       insert into rotating_table values (aSequence, v_txt);
    end;
    exec insert_into_rotating_table('A');
    exec insert_into_rotating_table('B');
    exec insert_into_rotating_table('C');
    exec insert_into_rotating_table('D');
    exec insert_into_rotating_table('E');
    exec insert_into_rotating_table('F');
    exec insert_into_rotating_table('G');
    select * from rotating_table;
    ID     TXT
    3     C
    4     D
    5     E
    1     F
    2     G

  • Auto resizing tables for screen resolution

    Hi everyone.
    Im currently working on my website using dreamweaver, and i
    just stumbled across a problem. Im building my website for screen
    resolution 1020x768. However, alot of people tend to use 1280x1024
    nowadays. The problem is that images get all screwed up at
    different screen resolutions.
    The best way to fix this would be auto resizing tables (so a
    1280 using can view my 1024 website without any problems). But, i
    have no idea how to create this. Ive been trying dreamweavers help,
    but that didnt help me.
    So i was wondering if anyone around here has the solution for
    my problem.
    Thanks in advance!

    Hi everyone.
    Im currently working on my website using dreamweaver, and i
    just stumbled across a problem. Im building my website for screen
    resolution 1020x768. However, alot of people tend to use 1280x1024
    nowadays. The problem is that images get all screwed up at
    different screen resolutions.
    The best way to fix this would be auto resizing tables (so a
    1280 using can view my 1024 website without any problems). But, i
    have no idea how to create this. Ive been trying dreamweavers help,
    but that didnt help me.
    So i was wondering if anyone around here has the solution for
    my problem.
    Thanks in advance!

  • Auto-creating tables with CMP Explicit Mapping

    Hello.
    I am trying to migrate a working CMP EJB Jar from Weblogic to OC4J, using the admin.jar deploy utility. I believe my orion-ejb-jar.xml deployment descriptor (shown at the bottom) is set up properly, but OC4J attempts to auto-create tables for my entity beans anyway. (see messages that follow).
    Can anybody tell me why it tries to create these tables? Is something missing from my deployment descriptor?
    Thanks,
    David
    Auto-creating table: create table User_passwords_Passwor__fqeml6 (User_SEC_USER.
    SEC_USER_ID NUMBER not null, Password_SEC_USER_PASSWORD_ID NUMBER null)
    Error creating table: ORA-01748: only simple column names allowed here
    Auto-creating table: create table User_userRoles_UserRol__guatbv (User_SEC_USER.
    SEC_USER_ID NUMBER not null, UserRole_SEC_USER_ROLE_ID NUMBER null)
    Error creating table: ORA-01748: only simple column names allowed here
    Auto-creating table: create table Permission_RolePermiss__768cc0 (Permission_SEC
    FUNCTIONID NUMBER not null, RolePermission_SEC_ROLE_FUNCTION_ID NUMBER null)
    Error creating table: ORA-00972: identifier is too long
    Auto-creating table: create table Role_UserRole_role_User_39lzhp (Role_SEC_ROLE.
    SEC_ROLE_ID NUMBER not null, UserRole_SEC_USER_ROLE_ID NUMBER null)
    Error creating table: ORA-01748: only simple column names allowed here
    Auto-creating table: create table Role_rolePermissions_Ro_4ocmz1 (Role_SEC_ROLE.
    SEC_ROLE_ID NUMBER not null, RolePermission_SEC_ROLE_FUNCTION_ID NUMBER null)
    Error creating table: ORA-01748: only simple column names allowed here
    orion-ejb-jar.xml
    <?xml version="1.0"?>
    <!DOCTYPE orion-ejb-jar PUBLIC "-//Evermind//DTD Enterprise JavaBeans 1.1 runtime//EN" "http://xmlns.oracle.com/ias/dtds/orion-ejb-jar.dtd">
    <orion-ejb-jar deployment-version="9.0.3.0.0" deployment-time="e6e55808e4">
    <enterprise-beans>
    <session-deployment name="SecurityComponent" >
    </session-deployment>
    <session-deployment name="ServerSecurityContext" >
    </session-deployment>
    <session-deployment name="SecurityComponentSecurityFilter" >
    </session-deployment>
    <entity-deployment name="User" table="SEC_USER" data-source="datasource-ecmsOraclePool">
    <primkey-mapping>
    <cmp-field-mapping name="userId" persistence-name="SEC_USER.SEC_USER_ID" />
    </primkey-mapping>
    <cmp-field-mapping name="partyId" persistence-name="PARTY_ID" />
    <cmp-field-mapping name="officeLocation" persistence-name="OFFICE_LOCATION" />
    <cmp-field-mapping name="defaultLocation" persistence-name="DEFAULT_LOCATION" />
    <cmp-field-mapping name="districtVvid" persistence-name="DISTRICT_VVID" />
    <cmp-field-mapping name="userName" persistence-name="SEC_USER.USER_NAME" />
    <cmp-field-mapping name="accountActivationDate" persistence-name="SEC_USER.ACCOUNT_ACTIVATION_DATE" />
    <cmp-field-mapping name="defaultBranchVvid" persistence-name="SEC_USER.DEFAULT_BRANCH_VVID" />
    <cmp-field-mapping name="unitVvid" persistence-name="UNIT_VVID" />
    <cmp-field-mapping name="sectionVvid" persistence-name="SEC_USER.SECTION_VVID" />
    <cmp-field-mapping name="lastUpdateTimestamp" persistence-name="AUD_SYSTEM_OBJECT.LAST_UPDATE_DT" />
    <cmp-field-mapping name="lastUpdateSystemUserId" persistence-name="AUD_SYSTEM_OBJECT.LAST_UPDATE_SEC_USER_ID" />
    <cmp-field-mapping name="failedLoginAttempts" persistence-name="SEC_USER.LOGIN_ATTEMPTS_CNT" />
    </entity-deployment>
    <entity-deployment name="Permission" table="SEC_FUNCTION" data-source="datasource-ecmsOraclePool">
    <primkey-mapping>
    <cmp-field-mapping name="permisssionId" persistence-name="SEC_FUNCTION_ID" />
    </primkey-mapping>
    <cmp-field-mapping name="permission" persistence-name="FUNCTION_NAME" />
    </entity-deployment>
    <entity-deployment name="Role" table="SEC_ROLE" data-source="datasource-ecmsOraclePool">
    <primkey-mapping>
    <cmp-field-mapping name="roleId" persistence-name="SEC_ROLE.SEC_ROLE_ID" />
    </primkey-mapping>
    <cmp-field-mapping name="lastUpdateTimestamp" persistence-name="AUD_SYSTEM_OBJECT.LAST_UPDATE_DT" />
    <cmp-field-mapping name="lastUpdateSystemUserId" persistence-name="AUD_SYSTEM_OBJECT.LAST_UPDATE_SEC_USER_ID" />
    <cmp-field-mapping name="roleDescription" persistence-name="SEC_ROLE.ROLE_DESC" />
    <cmp-field-mapping name="roleName" persistence-name="SEC_ROLE.ROLE_NAME" />
    </entity-deployment>
    <entity-deployment name="Password" table="SEC_USER_PASSWORD" data-source="datasource-ecmsOraclePool">
    <primkey-mapping>
    <cmp-field-mapping name="passwordId" persistence-name="SEC_USER_PASSWORD_ID" />
    </primkey-mapping>
    <cmp-field-mapping name="password" persistence-name="PASSWORD" />
    <cmp-field-mapping name="activeInd" persistence-name="ACTIVE_IND" />
    <cmp-field-mapping name="expirationDate" persistence-name="EXPIRATION_DATE" />
    <cmp-field-mapping name="userId" persistence-name="SEC_USER_ID" />
    <cmp-field-mapping name="lastUpdateTimestamp" persistence-name="AUD_SYSTEM_OBJECT.LAST_UPDATE_DT" />
    <cmp-field-mapping name="lastUpdateSystemUserId" persistence-name="AUD_SYSTEM_OBJECT.LAST_UPDATE_SEC_USER_ID" />
    </entity-deployment>
    <entity-deployment name="UserRole" table="SEC_USER_ROLE" data-source="datasource-ecmsOraclePool">
    <primkey-mapping>
    <cmp-field-mapping name="userRoleId" persistence-name="SEC_USER_ROLE_ID" />
    </primkey-mapping>
    <cmp-field-mapping name="sequenceNum" persistence-name="SEQUENCE_NUM" />
    <cmp-field-mapping name="userId" persistence-name="SEC_USER_ID" />
    <cmp-field-mapping name="roleId" persistence-name="SEC_ROLE_ID" />
    </entity-deployment>
    <entity-deployment name="RolePermission" table="SEC_ROLE_FUNCTION" data-source="datasource-ecmsOraclePool">
    <primkey-mapping>
    <cmp-field-mapping name="roleFunctionId" persistence-name="SEC_ROLE_FUNCTION_ID" />
    </primkey-mapping>
    <cmp-field-mapping name="functionId" persistence-name="SEC_FUNCTION_ID" />
    <cmp-field-mapping name="roleId" persistence-name="SEC_ROLE_ID" />
    <cmp-field-mapping name="sequenceNum" persistence-name="SEQUENCE_NUM" />
    </entity-deployment>
    </enterprise-beans>
    <assembly-descriptor>
    </assembly-descriptor>
    </orion-ejb-jar>

    Hi David,
    The "autocreate-tables" attribute is defined in the DTD for the "orion-application.xml" file. This file is usually generated automatically by OC4J, from your application's "application.xml" file when you deploy your application. (Note that subsequent [re-]deployments of your application will not change the "orion-application.xml" file.)
    The default value for this attribute is 'true', and the default is defined in the "application.xml" file that is located in the "j2ee/home/config" subdirectory of the OC4J installation.
    Hope this answers your question.
    Good Luck,
    Avi.

  • How cancel auto-create table ?

    when i deloye my ejb module into stand OC4J, toplink always auto-create table from ejb description file . how cancel it ?
    thanks!

    when set autocreate-table="false". topLink still autocreate-tables
    and name tables a new role ,
    my project use ejb-jar.xml to descript persistence .
    after delopy to stand OC4J, it use toplink-ejb-jar.xml to descript persistence?
    why ?
    how can i use my project ejb descript file by deploying ?

  • How to maintain two sets of separate auto numbered tables?

    Hi everyone,
    Here is what I'm trying to do with FrameMaker and find impossible to do:
    I have to maintain two sets of different tables each starts with number 1 inside the table. So I created two paragraph tags with 'Auto Number' checked and applied to the two different tables. But the result is not what I want: the number inside one table continues from the other one, instead of 1, 2, 3, 4, ... and 1, 2, 3, 4... It is 1, 2, 3, 4...
    Am I doing anything wrong here? Must be, for it doesn not work.
    Thanks for any help.

    You're not doing anything wrong, just perhaps missing some of the details. FM autonumbering is a joy to work with once you've got the hang of it, and/but different from most other approaches. (and by "different", I don't just mean flexible and reliable)
    Broadly speaking, I'd say you have two options:
    define two styles for the numbering you use inside tables, let's say TableNumberStart and TableNumberContinue. Define autonumbering so that TableNumberStart uses <n=1> and TableNumberContinue uses <n+1>
    This works because you've made the extra effort yourself.
    use one style – let's say TableAnchor – to anchor each table, and another style – let's say TableNumber – for the numbering you use inside tables. Define autonumbering so that TableAnchor uses < =0>, and TableNumber uses <n+1>.
    This works because you've asked FM to make the effort for you :-} TableAnchor resets the counter to zero, and TableNumber increments it as required. Note: in the definition < =0> the space before the equals sign is essential. It keeps the counter from displaying on the page.
    While you're experimenting, read up on Series labels – so you can manage separate numbering for, say, tables and figures. And on Building blocks – I was so impressed the first time I managed to use numbered heading styles to reset numbering in a list …
    HTH

  • Reseting Table Data Model

    i have created JTREE consisting of all the table name and columns of tables present in Database .Now upon clicking a Specific table i want to display the Structure of database table on the right side of Split pane .
    Problem i am facing , i am not able to reset thetJTable data model.when i click second time to get the table structure , the Jtable is appearing under the previous one,...concatinating with the result of previous selection .
    here is my code
    ???public class DatabaseTree implements TreeSelectionListener
         static JTree tree;
         static DefaultMutableTreeNode list,col,top;
         static JTable table;
         static  DefaultTableModel default_table;
          static Vector column = new Vector();
         static Vector data = new Vector();
          static String url = "jdbc:oracle:thin:@192.168.0.149:1521:xe";
          static String user = "compiere";
          static String password = "compiere";
          static Connection conn;
          static Statement stmt,stmt2 ;
          static Statement stmt1 ;
          static JSplitPane splitPane;
         static JScrollPane treescroll,jtablescroll;
         DatabaseTree()
           top =new DefaultMutableTreeNode("Compiere Database Tables");
          tree = new JTree(top);
          tree.setRootVisible(true);
          table = new JTable();
    treescroll = new JScrollPane(tree);
    jtablescroll = new JScrollPane(table,JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,
                JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
    splitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT,treescroll, jtablescroll);
    splitPane.setOneTouchExpandable(true);
    splitPane.setDividerLocation(200);
    //Provide minimum sizes for the two components in the split pane.
    Dimension minimumSize = new Dimension(100, 50);
    treescroll.setMinimumSize(minimumSize);
    jtablescroll.setMinimumSize(minimumSize);
    ////Provide a preferred size for the split pane.
    splitPane.setPreferredSize(new Dimension(400, 200));
    tree.addTreeSelectionListener(this);
    try
       Class.forName("oracle.jdbc.driver.OracleDriver");
       conn = DriverManager.getConnection(url,user, password);
       stmt = conn.createStatement();
       stmt1 = conn.createStatement();
         String sql =("select table_name from user_tables");     
         ResultSet rs=stmt.executeQuery(sql);
         ResultSet rs1;
          while(rs.next())
         list = new DefaultMutableTreeNode(rs.getString("TABLE_NAME"));
        top.add(list);
         rs1=stmt1.executeQuery("Select column_name from user_tab_cols where table_name ='"+ rs.getString("TABLE_NAME")+"'");
         while (rs1.next())
              col= new DefaultMutableTreeNode(rs1.getString("column_name"));
              list.add(col);
        catch(Exception e1)
         System.out.println("errors "+ e1);
      public static void main(String[] args)
         JFrame  frame = new JFrame("Database Tree Structure");
       DatabaseTree dd=new DatabaseTree();
       frame.getContentPane().add(dd.getSplitPane());
       frame.setSize(450,450);
       frame.setVisible(true);
    public JSplitPane getSplitPane() {
            return splitPane;
    public void valueChanged(TreeSelectionEvent e) {
         // TODO Auto-generated method stub
         onSelectAction(e);
    private void onSelectAction(TreeSelectionEvent e) {
         // TODO Auto-generated method stub
         DefaultMutableTreeNode node = (DefaultMutableTreeNode)
        tree.getLastSelectedPathComponent();
    /* if nothing is selected */
    if (node == null) return;
    System.out.println();
    /* retrieve the node that was selected */
    String nodeInfo = (String) node.getUserObject();
    System.out.println(nodeInfo);
    /* React to the node selection. */
    try
    Class.forName("oracle.jdbc.driver.OracleDriver");
    String url = "jdbc:oracle:thin:@192.168.0.149:1521:xe";
    String user = "compiere";
    String password = "compiere";
    conn = DriverManager.getConnection(url,user, password);
    Statement stmt = conn.createStatement();
    //String sql="desc '"+nodeInfo+"'";
    String sql=("select column_name,data_type,nullable,data_length from  user_tab_cols where table_name='"+ nodeInfo+"'");
    //System.out.println("23");
    ResultSet rs = stmt.executeQuery(sql);
    ResultSetMetaData md = rs.getMetaData();
       int columns = md.getColumnCount();
        System.out.println(columns);
        for (int i = 1; i <= columns; i++)
            column.addElement( md.getColumnName(i) );
        // System.out.println(column);
         while (rs.next())
            Vector row = new Vector(columns);
            for (int i = 1; i <= columns; i++)
                row.addElement( rs.getObject(i) );
            System.out.println(row);
            data.addElement( row );
              rs.close();
              stmt.close();
    catch(Exception e1)
        System.out.println( e1 );
    default_table=new DefaultTableModel(data,column);
    table.setModel(default_table);
    }

    [Vector.html#clear()|http://java.sun.com/javase/6/docs/api/java/util/Vector.html#clear()]
    private void onSelectAction(TreeSelectionEvent e) {
        data.clear();
    //...

Maybe you are looking for

  • Problems with awt.Toolkit on Tomcat

    Hello! I'm trying to get the Default Toolkit (java.awt.Toolkit.getDefaultToolkit() ) to determine the scrren size of the client, and Tomcat keeps throwing an Exception - now it's the website's Tomcat and the one on my localhost - there it worked.. Is

  • Download image preview icon error

    I have a pacbook pro(mid 2012) purchase os maverick 500 gb  and ram 4gb. free space is 160gb. if i download an image from internet to my desktop. the image thumbnail shows downloading. I have attached a screenshot too. if i press spacebar it shows a

  • Vendor consignment issue price determined by Customer

    hi all expert, i have the following business requirement. we have vendor consignment stock. the consumption price for the vendor is based by the customer which we are selling to. i have configured stock determination, movement type 601K is used for s

  • Oracle 8i client with oracle 9i server

    hi friends.. i have oracle 8i server and clients..my oracle 8i server crashed. so i am planning to install oracle 9i server. will i be able to connect oracle 8i clients on to oracle 9i server? is there any procedure for getting this connection.? Plea

  • Red Color Cast when printing with Canon Pixma Pro 9000

    My printer is giving me a horrible red color cast after the latest software update. The color cast can also be seen in Preview and in the print window. No changes to drivers have been made. Printer worked fine before the update. Has anyone else found