TABLE DON�T UPDATE

Hi guys, I am in a limite of nervous attach!!!!! Please help me....
The problem is: I create a interface that change the table columns, based on a Combobox selecting another table. Just for visualize the table from my DB.
This code don�t update my table
fields = swttSection.getFields();                       //get the swtt section fields                                       
tagTableModel = new TagTableModel();        //create a new table model
/* For each field */
for(int j = 0; j < fields.size(); j++)
    swttField = (SwttField)fields.elementAt(j);                        //get the field                      
    tagTableModel.addColumn(swttField.getName());        //insert the new column
}//End for
createTagTable();                                       //update the table....And this update. But this don't is wich I want. Because it mantain the old columns!!! (The JTable become a BIG column).
fields = swttSection.getFields();                       //get the swtt section fields                                       
/* For each field */
for(int j = 0; j < fields.size(); j++)
    swttField = (SwttField)fields.elementAt(j);                        //get the field                      
    tagTableModel.addColumn(swttField.getName());        //insert the new column
}//End for
createTagTable();                                       //update the table

Hi, I am here again. I think that I don't explaint the problem clearly....
I have a DataBase with 5 tables, each table has your own fields, and I waana create a JTable (GUI) for the user edit the result and then, write, read, udpate, delete, etc.....
I create a DefaulttableModel...
When my program start.. In the constructor I instianciate de DefaultTableModel
DefaultTableModel model = new DefaultTableModel();Then I create a JcomboBox where the user can choose another tables. When the user do this action, I would like to change the table columns (because each table has their own columns, and this fields are different).
The I code...
JComboBox table = new JcomboBox();
table.addActionListener(this);
public void actionPerformed(ActionEvent e){
   if(e.getSource() == table)
      model = new DefaultTableModel();                //I do this to "zero" the table, for create another one
     for(int col = 0; col < sizeTable; col++)
         model.addColumn(header[col]);
      getContentPane().add(new JScrollPane(new JTable(model)));
   }//end if
}//End actionPerformed()The problem is: The JTable don't "zero" and show the new structure, it always mantain the first structure.
Just for debug I get out the new DefaulTableModel and it works adding the tables to the end.. But it is not correct because I just attach new columns form table CLIENTE on the table PRODUCT for example. please help.
Thanks. Giscard

Similar Messages

  • I have a column where I have implemented writeback, its working fine. On top of this I need to show 0 as No and 1 as yes in our report, that is also done. Now I want to enter Yes in a column where it was no and I want database table to get update with 1.

    I have a column where I have implemented writeback, its working fine. On top of this I need to show 0 as No and 1 as yes in our report, that is also done. Now I want to enter Yes in a column where it was no and I want database table to get update with 1. I am not sure how to do it. SOmeone please help me out.

    Hi ,
    In your write back XML  try the below  query insert
    INSERT INTO TABLE_XYZ (attribute1)  values (SELECT CASE  WHEN @{C1}=’Yes’ then 1 when @{C1}=’No’ then 0 else null end from dual)
    Regards
    Rajagopal

  • Nested tables don't look right in design mode

    When I view www.akashhealingcenter.com with IE or Safari,
    everything looks fine. However, when I open the page in DW 2004,
    the tables don't look correct while in design or code/design mode.
    I've driven myself nuts trying to find out what I can do so
    that it looks correct.
    If I can get it to look right, I can turn daily maintenance
    (text updates mostly) to someone else - however, with the design
    looking so unlike the actual web page, I can't.
    I'm assuming the nested tables, graphic image backgrounds in
    the table data, etc. are driving DW 2004 nuts. I really don't want
    to spring for a new version of DW, so I hope that's not the answer.
    Thanks for the help.

    > The backgrounds won't matter a jot because as they are
    link with a full
    > path url nothing will appear in DW design view locally.
    Will do in DW8/CS3....
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Osgood" <[email protected]> wrote in
    message
    news:fc86fc$ra2$[email protected]..
    > Dougmo2003 wrote:
    >
    >> When I view www.akashhealingcenter.com with IE or
    Safari, everything
    >> looks fine. However, when I open the page in DW
    2004, the tables don't
    >> look correct while in design or code/design mode.
    >
    >
    > What exactly do you mean by 'Dont look correct'? The
    link yu provided
    > looks ok in my DWMX04 design view.
    >
    > Not much styling, as that is mostly provided by the
    background images, but
    > everything seems to be accessible to work on.
    >
    > I have'nt checked any other pages of the site except
    your home page.
    >
    >
    >
    >> I'm assuming the nested tables, graphic image
    backgrounds in the table
    >> data, etc. are driving DW 2004 nuts.
    >
    >
    > The backgrounds won't matter a jot because as they are
    link with a full
    > path url nothing will appear in DW design view locally.
    >

  • [ADF BC | ADF Faces] Updating a table with values updated in transaction

    Summary: A table is based on a view with a bind variable. Based on some action, I update rows in the view so that they no longer satisfy the query. How do I update the table to reflect this?
    I have an ADF Faces page with a multi-select table component on it, mapped to an ADF Business Components view object. The view object has a bind variable (:Status), which is used in the query to only retrieve rows with a specific status.
    The user selects rows in the table that should have their status changed, and then hits a button to perform the action. In the backing bean for the page, the button click is processed and the selected rows are updated to a different status. At this point the transaction is not committed.
    Changing the status of these rows now means that they no longer match the where clause of the view object, yet they still appear in the table.
    My question is, how can I update the table so that rows which don't match the where clause are removed?
    This is a simplified version of the problem I am working on - this needs to work when rows that aren't in the table are being updated so that they now MATCH the where clause and rows may also be added or completely removed.

    Quite an interesting little problem....
    I have created a simple test case to illustrate your scenario - perhaps Steve M could comment...
    My scenario:
    1). create an EO based on the HR.EMPLOYEES table
    2). create an updatable VO based upon the aforementioned EO. Add "COMMISSION_PCT IS NULL" to the where clause.
    3). Add the VO to an app module as usual.
    4). Create an ADF Faces page by dropping the VO from the data control as an ADF table. Show only first name, last name, and commission pct.
    5). Add a command button to the page so I can call various code from the backing bean.
    Now, when I update the commision for the first record to ".1" and press the submit button (the one in the table actions facet), the update "takes" - I assume that it's just in the EO cache at this point. The record still shows on the screen, even though it no longer meets the where clause criteria.
    When I add some code to the command button (#5) to perform a commit - the record STILL shows on the screen after committing to the DB. I can make the record disappear by either (in the same backing-bean method that does the commit)
    a). Re-execute the iterator after the commit
    b). Call "clearVOCaches" on the application module (forces the iterator to re-execute)
    I even tried programmatically adding the where clause back in (via addWhereClause) and re-executing the iterator - no go. I suspect that the only way to do this would be to post the changes to the DB (without committing them) and then re-execute the query. This, however, would be a killer from a scalability perspective.
    John

  • Purge Cache with Oracle BI Event tables don#t work

    Hi,
    i want to purge the bi server cache an oracle bi event table.
    i created an table like:
    create table BISE_UPDATE_EVENTS
    UPDATE_TYPE INTEGER default 1 not null,
    UPDATE_TIME DATE default SYSDATE not null,
    DB_NAME VARCHAR2(40 BYTE),
    CATALOG_NAME VARCHAR2(40 BYTE),
    SCHEMA_NAME VARCHAR2(40 BYTE),
    TABLE_NAME VARCHAR2(40 BYTE) not null,
    OTHER VARCHAR2(80 BYTE)
    and defied it in the Administration tool as an event table
    i insert data into it:
    INSERT INTO BISE_update_events
    (db_name, catalog_name, schema_name, table_name
    VALUES (NULL, NULL, 'PSLID_DT', 'DI_LI_MANDANT'
    COMMIT
    But purging the cache don't work.
    I got error messages in NQServer.log:
    2010-02-19 11:49:56
    [55004] The prepare operation failed while polling from table BISE_UPDATE_EVENTS.
    2010-02-19 11:49:56
    [nQSError: 22006] Repository metadata: missing column object: ID=5111903:5046337.
    2010-02-19 11:49:56
    [55005] The cache polling delete statement failed for table BISE_UPDATE_EVENTS.
    Got somebody help?
    Regards Christian

    From the Manual :-
    SchemaName
    The name of the schema where the physical table that was updated resides.
    Populate the SchemaName column only if the event table does not reside in the same database as the physical tables being updated. Otherwise, set it to the null value.
    TableName
    The name of the physical table that was updated. The name has to match the name defined for the table in the Physical layer of the Administration Tool.
    Values cannot be null.
    Can you check once to see if you really need to put the schemaname and also if the tablename defined in the RPD is the same as put in the insert statement. Finally, the user used in the connection pool should have delete rights on your polling table.
    hope this helps

  • The materizlezed view don't update

    hi all,
    I create a materialized view like
    create materialized view vw_jfp_jpgcb_mislog_1
    refresh fast NEXT sysdate + 1/144
    on demand
    as
    SELECT
    * from big_table;
    It should be update every 10 minutes.
    But after I insert 100 thousand records, I find it don't update. What's reason of it ?

    Have you traced a session doing the refresh to see
    where the time is being taken? I'll wager it's in the
    LOB processing, but having actual data to back that
    up would be helpful.
    <Cango> I check the row num in materialized
    view every 10 second and compare time of the data
    change I'm not sure how your answer relates to my question. I was talking about a session trace (run through tkprof) to validate that it's the query, not some function of the materialized view refresh process, that was running slowly, what the query is waiting on, etc.
    Can you run that query separately over a sample of
    however many rows are going to be refreshed and get a
    timing? Obviously, if it takes 13 minutes to run that
    query over 100,000 rows, you'd have to tune the
    query.So, does it take 13 minutes to run the query over a sample of 100,000 rows?
    What data type is the XML document stored in? I'm
    guessing a BLOB from your syntax since you didn't
    include the table definition. Why would you store XML
    in a BLOB rather than a CLOB?
    <Cango> yes, we stroe xml in BLOB ( we can't
    modify the table structure). And we want to get the
    specific node value from it. It's our performance
    bottleneck.
    Something may have to give here. Storing character data, an XML document, in a BLOB column and then trying to parse the XML document is going to be slow. Given your transaction volume, storing the data in a reasonable data type may be necessary to get the sort of performance you need. At a minimum, doing development against a data model that (presumably) everyone agrees is incorrect is going to introduce unnecessary overheads that are likely to be noticable.
    If you're storing 100,000 XML documents, you should probably be using XML DB functionality rather than storing data directly in LOBs but if you're going to store the data in LOBs, at least use the right type.
    Have you considered using an XML parser to parse the
    XML document rather than trying to use SUBSTR and
    INSTR?
    <Cango> I want to use the XML parser but I
    don't find doc about it. Can you provide the detail
    of them ? Thanks a lot.You didn't indicate the Oracle version. Assuming you're on 10.2, there are a variety of packages. A quick search on http://tahiti.oracle.com for DBMS_XML turns up a number of packages. DBMS_XMLParser is one option, though it only takes CLOBs, so you'd have to convert everything from a BLOB to a CLOB in real time. DBMS_XMLQuery would be another option (though again you'll be incurring BLOB to CLOB conversion overhead).
    That's going to be substantially more efficient.
    Have you considered creating an Oracle Text index on
    the data?
    b]<Cango> I'm trying. Can you give me somesuggestions about it ? thanks.
    Are you trying to create a materialized view that
    simulates a Text index?
    <Cango> Yes.
    Reasonable suggestions are likely to begin with getting the data model right. Very little good comes from trying to handle large transaction volumes with incorrect data models.
    Justin

  • My new iPod has now crashed and is unusable after updating it. Don't update. I just lost the only good thing I have because of them pushing me into it.

    My new iPod has been updated. I was pushed into it. So then I thought "it could use one it could improve it". I read as much as the terms and conditions as I could read that was understandable. And now it's been less then two days and my iPod is now practically useless. Don't update your iPod. It was the only good thing I had. I pleded and pleded to my parents for weeks and save up for weeks to get one. And now it's not even a year old and I've lost it. I can't afford to get a new one. And I can't afford to loose this one. i worked hard every day all day For months to be able to even get a quarter of what i needed. And my parents agreed to pay for the rest and it was my Christmas present. i was extremely happy. It's the best thing that I have and I've lost it because of an update Apple pushed me into. Now they won't help me.
    my iPod is freezing every 5-10 minutes for long periods of time. It is:
    freezing
    the keyboard board is lacking severely
    lags through out ipod
    i cannot play games as it lags then freezes.
    my screen is pressing where I don't press it.
    it becomes very excruciatingly slow
    I Cannot write to fast or it freezes and i have to re start
    Im not getting told when I have notifications (such as emails)
    i cannot use facebook, games, Safari. Email, messenger and a few others with out my iPod crashing.
    i Cannot use the iPod properly at all.
    it can take up to 10 minutes for my camera to work. It usually takes 1 minute or more.
    the camera freezes or wont take a photo when I press
    it freezes on panorama or worn take panoramas.
    it has trouble even trying to get the lock screen up.
    and best of all of it. I can never tell when I'm going to be screwed by Apple.

    Try:
    - Reset the iOS device. Nothing will be lost      
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings                            
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                               
    iOS: Back up and restore your iOS device with iCloud or iTunes
    - Restore to factory settings/new iOS device.                       
    If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
      Apple Retail Store - Genius Bar

  • I have logged in to my itunes account on a different computer and none of my purchased music is showing up. I also have plugged my iphone in to get updates but it says I will lose all media and apps if I don't update on the computer where  I sync everythi

    I have logged in to my itunes account on a different computer and none of my purchased music is showing up. I also have plugged my iphone in to get updates but it says I will lose all media and apps if I don't update on the computer where  I sync everything. I have authorized this new computer so I don't know what the problem is. I can't get on my old computer with my itunes account because the computer is broken. Not sure what to do

    "I have logged in to my itunes account on a different computer and none of my purchased music is showing up."
    Correct.  it does not magially appear in other places.  It will only be where you put it.
    "I also have plugged my iphone in to get updates but it says I will lose all media and apps if I don't update on the computer where  I sync everything. "
    Correct as well.  Iphone will sync with one computer at a time.  Syncing to another will erase the current content.
    You need to copy everything ( itunes library/contacts/pics/calendars/files/docs) from the old computer, or your backup copy of the old one, to the new one.

  • When using my mac book pro, there's a window that comes up saying to force quit applications. i've done the updates cleaned out computer and have taken it in but it wont stop coming up.

    when using my mac book pro, there's a window that comes up saying to force quit applications. i've done the updates cleaned out computer and have taken it in but it wont stop coming up.  what can i do?

    The force quit window appears when you:
    a) type the key combination <CMD> + <OPT> + <ESC>
    b) you select the menu item " > Force Quit..."

  • TS4083 My folders that message rules divert emails to don't update when I open Mail on my iPad or iPhone. Only the inbox does. I have to click on each folder for it to update. Is there a way around this? The folders update on my mac fine when i check mail

    My folders that my message rules on iCloud divert emails to don't update when I open Mail on my iPad or iPhone. Only the inbox does. I have to click on each folder individually for it to update. A real pain as I have about 30 folders. Is there a way around this ? The folders update on my mac fine when i check mail without having to select each one of them. Can the iPad and iPhone do the same thing?

    My Mac has 4 mail accounts coming into it, but you are correct, one of them is a POP account, (and unfortunately it is the main @ account, and is the one associated with my apple id, since we've had it for years).  I couldn't figure out how to replace this with the Imap version, short of deleting that account entirely. 
    Is this what I have to do? 
    Thanks for your help!

  • I have done my updates and itunes is no longer recognizing my iphone as a device. My phone shows that it is plugged in but when I open itunes, my iphone doesn't come up as a device.

    I have done my updates and itunes is no longer recognizing my iphone as a device. My phone shows that it is plugged in but when I open itunes, my iphone doesn't come up as a device.

    Hi there,
    I would recommend taking a look at the troubleshooting steps found in the article below.
    iOS: Device not recognized in iTunes for Mac OS X
    http://support.apple.com/kb/TS1591
    -Griff W.

  • Upgraded to os7 and done my updates on the apps as they appear.. Any function to do with the iBook store is not working or visible.  The purchase at the end of a sample book doesn't work either.

    Upgraded to os7 and done my updates on the apps as they appear.. Any function to do with the iBook store is not working or visible.  The purchase at the end of a sample book doesn't work either. Anyone have a solution?

    Upgraded to os7 and done my updates on the apps as they appear.. Any function to do with the iBook store is not working or visible.  The purchase at the end of a sample book doesn't work either. Anyone have a solution?

  • Why can't I access the itunes store now that I have done the update of IOS7.0.2

    Why can't. I access the itunes store since I have done the update IOS7.0.2

    Hey khedhuntr,
    I would go through the recommended troubleshooting steps in here to see if that resolves the connection issue:
    Can't connect to the iTunes Store
    http://support.apple.com/kb/TS1368
    Welcome to Apple Support Communities!
    All the best,
    Delgadoh

  • TS3694 I have recently done the update to my iphone and then tried to backup my iphone to itunes and an error meesage has occured and now my phone isn't responding to anything and is stating that it needs to be restored back to manufacturers settings, hel

    I have recently done the update to my iphone and then tried to backup my iphone to itunes and an error meesage has occured and now my phone isn't responding to anything and is stating that it needs to be restored back to manufacturers settings, Can anyone help?

    Hi d_diotte,
    Thanks for using Apple Support Communities.  If you're unable to update your iPhone and keep seeing the "Connect to iTunes" image, this article has some steps you can try:
    iOS: Unable to update or restore
    http://support.apple.com/kb/ht1808
    Cheers,
    - Ari

  • Adobe Updater don't update Acrobat Pro 9.

    Hello,
    Adobe Updater don't update Acrobat Pro 9. It seems that Acrobat don't appears under Adobe Updater, it appears all others Creative Suite CS4 applications but not Acrobat. I dont know how to fix this. Is there any wahy to manually add Acrobat to the list of application that Adobe Updater updates?
    I have two Macs, in one of them Adobe Updater updates correctlly Acrobat Pro 9, but the other have this problem that i describe above. In both machines i have Mac OS X 10.5.6.
    I would appreciate a lo any help that you could give me. Thanks,
    Marcelo :)

    Hello Mike,
    Thank you very much for the link, i would update this way now. But i still wonder how can i fix the problem so i can use Adobe Updater with all Adobe apps. I think that Adobe Updater is very usefull because you dont have to check the website for updates of the differents apps.
    Thanks a lot,
    Marcelo :)

Maybe you are looking for

  • How to find out the standard info stucture for a customized IS in LIS

    Hi All I have to run the statistical set up for the customized info structure S763 for the application plant maintenance in LIS. But i dont know whether it was copied from a standard SAP info structure or it was enhanced from a standard info structur

  • Gnome 3 reports a network printer as "not connected",but prints fine

    Hi, I got the same problem mentioned here as "Other issue": https://bbs.archlinux.org/viewtopic.php?id=119248 When I print on my network printer it always says "printer is not connected" at first (popup in gnome shell) but then it prints fine. I thin

  • Acceleration thru GPU in Photoshop CS4 (Intel GMA X4500HD)

    Does Intel GMA 4500MHD support GPU acceleration in Adobe Photoshop CS4? (According to recommendation about OpenGL and Shared Model this GPU should support it, but Intel GPUs are not included in Adobe list of supported GPUs at all and I have found 2 p

  • Printing Booklet in A5

    Hi I am trying to Print out a Booklet in A5. When I click print preview to view my booklet before printing it looks fine so I click ok to print and it comes out in a different layout not how I wanted it see a attached screenshot. I am using the HP OF

  • Internet connection failed in iTunes 7.01

    I have been trying to update my 60 gig 5G iPod with the new software using iTunes 7.01. When I click update, it gives me an error saying that there is no internet connection available. I am able to connect to the iTunes store and other websites with