When I insert new data on an existing graph, the graph deletes

When I insert new data on an existing graph (for example, just adding a new year of data) and press insert, it just deletes the graph entirely. My only option is to recreate the entire graph which is frustrating because I lose its format and colors. Any suggestions?

Here I opened the existing chart, with the old data. I need to remove the oldest year and add a new year. Which I do below:
When I press the check mark, or enter, the graph details all delete.

Similar Messages

  • Refresh jTable after inserting new data into the Database

    Hey all,
    I'm using Netbeans 6.5 to create a Desktop Application which is connected to a Java DB (Derby).
    The first simple steps were all very successfull:
    Create the jTable and bind it to the Database => everything works fine. When the application starts it correctly shows all data from the database.
    The problem starts when I try to insert new data to the database.
    For that reason I've created textfields and a button "Save". When I press the button it successfully inserts the data to the database but they are not displayed in the jTable (when the application starts they are all there, they are not updated at runtime) . I've tried table.invalidate() and table.repaint() but they just don't work.
    Any help will be GREATLY appreciated. But please have in mind that most of the code is Netbeans-generated and most of it not editable.
    Many thanks in advance.
    George

    Once again you are right my friend. I jumped to conclusion way too fast, when I shouldn't. (Give me a break, I've been busting my head with this well over a week). The response I saw when I did that was that indeed a line is added to the jTable. Because I falsly set the index of the object to be added to be second to last the row appeared on the table, what I didn't see at the time was that the last one disappeared. Hmm...
    A new adventure begins...
    So after a few hours of messing around with it here are my observations:
    1) It was not an observable list. When I add the new element with employeesList.add(newEmp); , the table gets notified but a get a bunch of exceptions:
    xception in thread "AWT-EventQueue-0" java.lang.IndexOutOfBoundsException: Index: 84, Size: 84
            at java.util.ArrayList.RangeCheck(ArrayList.java:546)
            at java.util.ArrayList.get(ArrayList.java:321)
            at org.jdesktop.swingbinding.impl.ListBindingManager$ColumnDescriptionManager.validateBinding(ListBindingManager.java:191)
            at org.jdesktop.swingbinding.impl.ListBindingManager.valueAt(ListBindingManager.java:99)
            at org.jdesktop.swingbinding.JTableBinding$BindingTableModel.getValueAt(JTableBinding.java:713)
            at javax.swing.JTable.getValueAt(JTable.java:1903)
            at javax.swing.JTable.prepareRenderer(JTable.java:3911)
            at javax.swing.plaf.basic.BasicTableUI.paintCell(BasicTableUI.java:2072)
            at javax.swing.plaf.basic.BasicTableUI.paintCells(BasicTableUI.java:1974)
            at javax.swing.plaf.basic.BasicTableUI.paint(BasicTableUI.java:1897)
            at javax.swing.plaf.ComponentUI.update(ComponentUI.java:154)
            at javax.swing.JComponent.paintComponent(JComponent.java:743)
            at javax.swing.JComponent.paint(JComponent.java:1006)
            at javax.swing.JViewport.blitDoubleBuffered(JViewport.java:1602)
            at javax.swing.JViewport.windowBlitPaint(JViewport.java:1568)
            at javax.swing.JViewport.setViewPosition(JViewport.java:1098)
            at javax.swing.plaf.basic.BasicScrollPaneUI$Handler.vsbStateChanged(BasicScrollPaneUI.java:818)
            at javax.swing.plaf.basic.BasicScrollPaneUI$Handler.stateChanged(BasicScrollPaneUI.java:807)
            at javax.swing.DefaultBoundedRangeModel.fireStateChanged(DefaultBoundedRangeModel.java:348)
            at javax.swing.DefaultBoundedRangeModel.setRangeProperties(DefaultBoundedRangeModel.java:285)
            at javax.swing.DefaultBoundedRangeModel.setValue(DefaultBoundedRangeModel.java:151)
            at javax.swing.JScrollBar.setValue(JScrollBar.java:441)
            at javax.swing.plaf.basic.BasicScrollBarUI.scrollByUnits(BasicScrollBarUI.java:907)
            at javax.swing.plaf.basic.BasicScrollPaneUI$Handler.mouseWheelMoved(BasicScrollPaneUI.java:778)
            at javax.swing.plaf.basic.BasicScrollPaneUI$MouseWheelHandler.mouseWheelMoved(BasicScrollPaneUI.java:449)
            at apple.laf.CUIAquaScrollPane$XYMouseWheelHandler.mouseWheelMoved(CUIAquaScrollPane.java:38)
            at java.awt.Component.processMouseWheelEvent(Component.java:5690)
            at java.awt.Component.processEvent(Component.java:5374)
            at java.awt.Container.processEvent(Container.java:2010)
            at java.awt.Component.dispatchEventImpl(Component.java:4068)
            at java.awt.Container.dispatchEventImpl(Container.java:2068)
            at java.awt.Component.dispatchMouseWheelToAncestor(Component.java:4211)
            at java.awt.Component.dispatchEventImpl(Component.java:3955)
            at java.awt.Container.dispatchEventImpl(Container.java:2068)
            at java.awt.Component.dispatchEvent(Component.java:3903)
            at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4256)
            at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3965)
            at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3866)
            at java.awt.Container.dispatchEventImpl(Container.java:2054)
            at java.awt.Window.dispatchEventImpl(Window.java:1801)
            at java.awt.Component.dispatchEvent(Component.java:3903)
            at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
            at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
            at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
            at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
            at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
            at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    Exception in thread "AWT-EventQueue-0" java.lang.IndexOutOfBoundsException: Index: 84, Size: 84
            at java.util.ArrayList.RangeCheck(ArrayList.java:546)
            at java.util.ArrayList.get(ArrayList.java:321)
            at org.jdesktop.swingbinding.impl.ListBindingManager$ColumnDescriptionManager.validateBinding(ListBindingManager.java:191)
            at org.jdesktop.swingbinding.impl.ListBindingManager.valueAt(ListBindingManager.java:99)
            at org.jdesktop.swingbinding.JTableBinding$BindingTableModel.getValueAt(JTableBinding.java:713)
            at javax.swing.JTable.getValueAt(JTable.java:1903)
            at javax.swing.JTable.prepareRenderer(JTable.java:3911)
            at javax.swing.plaf.basic.BasicTableUI.paintCell(BasicTableUI.java:2072)
    ... and a lot morewhich from my poor understanding means that the jTable succesfully notices the change but it is not able (??) to adjust to the new change. What is more interesting is that when I plainly add the element to the end of the list (without an idex that is), a blank row appears at the end of my Table. The weird thing is that I've bound the table to some text fields below it, and when I select that empty row all the data appear correctly to the text fields.
    I tried going through:
                    org.jdesktop.observablecollections.ObservableCollections.observableList(employeesList).add(newEmp);as well as
                    help = org.jdesktop.observablecollections.ObservableCollections.observableListHelper(employeesList);
                    help.getObservableList().add(newEmp);
                    help.fireElementChanged(employeesList.lastIndexOf(newEmp));and
                    obsemployeesList = org.jdesktop.observablecollections.ObservableCollections.observableList(employeesList);
                    obsemployeesList.add(newEmp);and I still get the same results (both the exeptions and the mysterious empty row at the end of the table
    So, I'm again in terrible need of your advice. I can't thank you enough for the effort you put into this.
    Best regards,
    George
    Edited by: tougeo on May 30, 2009 11:06 AM
    Edited by: tougeo on May 30, 2009 11:21 AM
    Edited by: tougeo on May 30, 2009 11:30 AM

  • Trains Stops and Insert new data using invokeAction!?

    Hi! I am using Train element to insert data in some tables. When I open first Train Step I use invokeAction to call CreateInsert operation and could insert new data in table1. Then I go to Train Step 2 and using invokeAction insert data in table2 and so on.
    I have two questions:
    1. When I go back to previous Train Step using "Back" button then invokeAction again calls CreateInsert operation, but I don't need it. It is possible to call CreateInsert operation using invokeAction ONLY if user goes forward by pressing "Next" button in Train element? If it is possible then What I need to change in my code?
    invokeAction source:
    <invokeAction Binds="CreateInsert" id="insert_mode"
                      RefreshCondition="${!requestContext.postback and empty bindings.exceptionsList}"
                      Refresh="prepareModel"/>2. It is possible to DISABLE some Train Stopas. For example, I want to disable first Train Stop for user when he go to next steps, so that user can't anymore go back to first Train Stop.
    Hope for Your answers, best regards, Debuger!

    Hi, Umesh! My use case is following: I am on first Train Stop and enter some data. Then I go to second Stop and enter some data and so on. When I go to first, second etc. Train stops I use invokeAcrion to call CreateInsert. I need to call only this operation when I press next button. When I press Back button I do not need to call Create Insert action. Hope You understand me.
    So, as I understand, i need to create method which indicates variable value based which button is pressed. But I don't understand how I can say, variable x=nextbuttonpressed or x=backbuttonpressed based on which button I realy press. And do not understand also how to use this variable in invokeAction Refresh Condition?
    Hope You can explain me that with steps to do in my case and can help with code?
    Waiting for response, best regards, Debuger.

  • How to add a new data element for existing table filed(Primary key field)

    Hi Experts,
    How to add a new data element for existing table field(Primary key field)
    For this filed ther is no foreign key relation ships and even check table.
    while activating table it is giving message like below.
    can you help any one to solve this and wil steps to add new dataelement for existing primary key filed of a table.
    Check table (NAMING SPACE/TABLE NAME(EX:/TC/VENDOR)) (username/19.02.10/03:29)           
    Primary key change not permitted for value table /TC/VENDOR
    Check on table  /TC/VENDOR resulted in errors              
    Thanks
    Ravi

    Hi,
    Easiest way is to download the table eg into an Excel table (if possible) or text table. Drop the table from the database. Build your table with the new key field. Build the database table again and fill it.
    You can do it also over the database into a new table. Drop the old one. Build the enhanced one and fill it. Afterwards drop your (temporary) table.
    Maybe there are other ways, but this works.
    Success,
    Rob

  • In IPhoto or IPad, when I edit a photo in an existing album, the photo is removed and placed in a new album with only edited photos. How do I keep it in or get it back to its original album?

    When using IPhoto for IPad, can I move photos from one album to another? For instance, when I edit a photo in an existing album, the photo is removed and placed in a new album with other edited photos. How do I keep it in or move it back to its original album?

    That will depend on the kind of album your photo is in.
    Most albums in iPhoto are created automatic by the way you are using and editing your photos, see: http://help.apple.com/iphoto/ipad/1.1/#blnkb9b1e2a
    When you edit your photo, the edited copy is added to the automatic "edited" album and the view switches to he edited album. But the photo should stay in its original album - do you see something different? Only if you want the edited photo in the camera roll and the photo strea as well, you have to save the edited copy to the camera roll again after editing, otherwise the camera roll will show the original and not the edted version.

  • Inserting new line item into existing delivery using BAPI

    Hi
    can you send me the code for inserting new line item into existing delivery either using BAPI or
    Function module.
    We are using SAP 4.7 version

    Hi Sreekanth,
    Refer to this links
    New item for outbound delivery via FM/BAPI?
    /message/3976349#3976349 [original link is broken]
    BAPI_OUTB_DELIVERY_CHANGE Help - Add new line item
    hope it is useful to you.
    Regards!

  • What is the best way to insert massive data into an existing excel file?

    dear gurus,
    i am wondering that what is the best way to insert massive data into an existing excel file, more performance perspective.
    the file is read from BDS , and we want to insert data into it .
    the way i can think of is
    1. OLE AUTOMATION
       i think performance will be a big problem
    2. Office integration
        i am not sure it's facing the same performance issue ?
    3 . XXL_SIMPLE_API/FULL_API
        I am not sure whether they can insert data into an existing excel file?
    could you please give me some advices?
    br.
    jun

    Hi,
    If you want to APPEND data( add data to an existing excel file) from SAP, then use GUI_DOWNLOAD fm with APPEND = 'X' paramter.
    Best regards,
    Prashant

  • When I add a new bookmark, and the (star) Page Bookmarked window appears - is there any way to expand the size of that window so that I can see my entire list of folders when adding a new bookmark to an existing folder?

    When I add a new bookmark, and the (star) Page Bookmarked window appears - is there any way to expand the size of that window so that I can see my entire list of folders when adding a new bookmark to an existing folder? The endless scrolling technique is far too tedious when trying to add a new bookmark, because the window is simply too tiny. Is there maybe a plug-in that will let me grab the corner of that window and re-size it? Thanks!

    I suggest you install the "Add Bookmark to Here2" extension, then you can expand the the list but you will not see the bookmark itself in the list if that is what you wanted. At the top you have three major folders you can select one of them and scroll up and down. Below that you have your most recently used folders and you can select one of them instead and scroll up and down. You can see the folder the bookmark is in -- they get added to the bottom
    If you really want to see the bookmark within the folder the same extension allows you to bring the bookmark to the folder from say the bookmarks sidebar that is why it is named as such. I use it but mainly i use the dialog.
    Please continue reading about bookmarks and some related extensions at
    * http://kb.mozillazine.org/Sorting_and_rearranging_bookmarks_-_Firefox
    * https://addons.mozilla.org/firefox/addon/add-bookmark-here-2/
    * http://dmcritchie.mvps.org/firefox/firefox.htm#addbookmarkhere2
    * http://dmcritchie.mvps.org/firefox/kws.htm
    If you are not using tags at all, you can remove a whole lot of confusion by removing them from the dialog via the extension.

  • HT1349 hi ,i just got a Parallels desktop 7 and i try to install it but the cd doesn't start when its inserted.how can i solve this? the macbook pro i just got it few days back so its the last version..thx

    hi ,i just got a Parallels desktop 7 and i try to install it but the cd doesn't start when its inserted.how can i solve this? the macbook pro i just got it few days back so its the last version..thx

    Hi,just now i open it with finder and it started downloading!!!
      Thank you,very new to mac:)

  • When I insert a shape, how do I change the color without changing the texture?

    When I insert a shape, how do I change the color without changing the texture?

    Hi,
    you are working with a percentage width of your tables, for example:
    table width="123%
    td width="75%"
    td width="25%"
    So it is simply a arithmetic problem to get the proportional wide (means the ratio of % to cm) of your images, so that they do not break the frame. Certainly you could use (translated from German DW) "properties" and change the sizes there:
    Hans-G.

  • When I instaled new verson my Iphone4 stoped, in the sight shows the Itunes symbol. I tried to connect to Itunes, but can't repair. MISTAKE 3004. What can I do? I'm brasilian and don't speak english very well... Please, help me. Use my e-mail. Junara

    When I instaled new verson my Iphone4 stoped, in the sight shows the Itunes symbol. I tried to connect to Itunes, but can't repair. MISTAKE 3004. What can I do? I'm brasilian and don't speak english very well... Please, help me. Use my e-mail. Junara
    <Personal Information Edited by Host>

    Hello Junara1969,
    Thank you for contacting Apple Support Communirties. I have a couple of articles for you to take a look at to troubleshoot your issue.
    I would start with basic troubleshooting
    Resolve iOS update and restore errors in iTunes
    http://support.apple.com/kb/TS1275
    If you are still having the same issue, then there are further steps for this specific error code here:
    Resolve specific iTunes update and restore errors
    http://support.apple.com/kb/TS3694
    Regards,
    Jeff D.

  • When i insert a blank DVD, appear a message "The disc can't be burned, Because the device failed to calibrate the laser power level for this media."

    when i insert a blank DVD, appear a message "The disc can't be burned, Because the device failed to calibrate the laser power level for this media."

    when i insert a blank DVD, appear a message "The disc can't be burned, Because the device failed to calibrate the laser power level for this media."

  • Insert data to MySQL when there is new data in the text file

    I have one log file, the log file will update its data (alarm type & datetime) when there is alarm. If I would like to write program to monitor the log file every minute, and insert the data to mysql when there is a new data in log file. Any Idea how to use java to write it ?
    Thanks !

    imagination21 wrote:
    Any Idea how to use java to write it ?Yes. But do you have a specific question? What's the problem?

  • How to restrict "insert new data source" in Analysis, edition for Microsoft Office report

    Hi Experts,
    There is a requirement in my current project: when an end user access a Analysis, edition for Office Report from BI platform, they can view and refresh the report. But users should not be able to add new data source in that Analysis Report. As per my understanding, that means "insert data source" button should remain disable for the user.
    I have check all available access levels from CMC, but cannot find any. It will be great if you let know correct access level in CMC for the same.
    Any comments/recommendation will be appreciated.
    I am using BOXI4.1 SP3 version with Microsoft Office 2013.
    Thanks in advance.
    Regards,
    Animikh Chaudhury

    The answer from our account manager is that there is only one license model for AO - which means every user is able to refresh, navigate, use planning functions and add source data (whith the standard license). Adding a DS is not really more then navigation because you can build a Query with all key figures and characteristics of a cube which gives you flexibility. That makes sense because there are no authority checks installed from SAP to avoid this (maybe this is different in combination with HANA and workspaces) .
    Futhermore SAP has no possibility to measure how many users are doing which functions instead of recording every action of every user. But where should they do it? You could use it with BO or with Netweaver or in mixed Environments. The BO license check is done on BO platform and there you have no possibility to create new users which you need for connection (I'm not sure how this is monitored in a pure BW Environment without BO).
    Furterhmore another possibility to add new data is using vba. You don't really need the buttons from the menu.

  • Error When Creating/Inserting New Marketing Attribute Value

    Merry Christmas & Happy New Year,
    Need help here, when I create/insert new marketing attribute value in existing marketing attribute, I encounter the following error "The values currently maintained lead to inconsistencies in the database".
    In the detail error, it specifies that I was trying to change existing attribute which is not true.
    Initially i thought it was authorization issue, but when i do the same procedure in CRM GUI, it works fine, only from Web UI then i encounter the problem.
    Any lead is really appreciated.
    JD

    Hi Robert,
    thanks for the info, we did implement the note but still having the error.
    we also have implemented following notes but it still does not solve the issue yet.
    0001486409 Incorrect counting in CRM_MKTPFCHR_CHECK_STRING_BW
    0001490425 Nonsensical values for marketing attributes
    0001491491 Field DATUV in AUSP for newsletter scenario
    0001499712 Marketing  Attributes are not saved properly in WEB UI
    0001509448 MKT ATTR:Save value for marketing attribute impossible
    0001531447 Problems in CL_CRM_BUIL_MKT_ATTRIB~READ

Maybe you are looking for