Regarding update methods

what is document update and statics update.Please give examples.points will be awarded for the best one.

Hi,
Document update is updation of your r/3 tables
Statistical update meant for Reporting
Check the threads
statistical update and document update
LO-Cockpit  V1 and V2 update
http://help.sap.com/saphelp_webas610/helpdata/en/e5/de86ea35cd11d3acb00000e83539c3/content.htm
Thanks

Similar Messages

  • Which update method to use???

    Hi all,
    Our client has an average of 1000 sales orders per day.
    Which update method will be the best for such a scenario and why?
    Please suggest.
    Cheers
    Jayashree

    Obviously Delta Update.
    Whenever you have a regular postings in the source system, it is always advised to go for Delta update instead of Full update.
    If you go for Full update, day-by-day the number of records will increase and yr data load performance will be badly affected.
    In case of Delta, only the changes will be captured and load perofrmance will be consistent.
    Regards,
    Balaji V

  • How to make update method permanent once and forever?

    Hi,
    Every time I get an update to Flash and install it, at the end of the install I get the three update choices of ‘Allow Adobe to install updates (recommended)’, ‘Notify me to install updates’ and ‘Never check for updates (not recommended)’. Every time I choose the second option and every single subsequent time there is an update I have to go through the same procedure again because the first option becomes selected. I do NOT want Adobe to perform automatic updates. Is there a way to set it to notify me of updates but never bug me to change my update method? I have tried changing the setting through the Control Panel but this doesn’t make any difference either. I just want to be notified of updates but not be pestered with those same three options EVERY time.

    This answer is NOT working. The line "SilentAutoUpdateEnable=0" is already present. And it still queries for the annoying question, even when asked and answered ad nauseum.
    Adobe should in the very next update, as a minimum, make it such, that the chosen value in "Choose your update method:" remains PERMANENT and FOR EVER until the user changes it. It is WILDLY annoying to have to answer this question over and over and over and over and over and over again. Make a new value or something that will be written to the mms.cfg file, that will permanently understand this setting, I Want to update, but I want to know when and how and why, and I especially want to do it myself - Automatic updates can for novice users be nice, until it screws up the entire system - but for super user level or above it is an annoyance, that programs do not respect the answers of the user. It SHOULD ask this question ONCE, and never ever there after - unless the user changes the behaviour, in e.g. the mms.cfg file.
    I hope this is crystal clear --- it should be, and I cannot fathom that millions of other users are not annoyed by this popup box ... When i press "DONE" ... it should be EXACTLY THAT - notify me to install updates, BUT NOT to ask it every time what "update method" i want to use -- i've only told you a million times before --- just freaking get the answer and understand it.
    Annoyed regards : CyberstormXIII

  • Documents Update method and datasources

    Hi all,
    I ve done a piece of code for updating an UDF at level line of an order when a target delivery is added. The update must be done when BeforeAction is true. This way when the user adds a new delivery, the code will update the lines of the base orders (base order of each line) and after that BO will do its updates (like closing the line if it's nedeed). For doing this i use the datasources of the form for reading the intformation, due to BeforeAction is true and the actual document is not still added. The problem is that the update method (of the order) doesn`t finish and i don`t receive any exception. Other way, if i don´t use the datasources for reading the information (if i do it using UI API), the update method works well. This is the method using DataSource:
            private void updatePiezasPtesDs(string formUid, string nombreTabla)
                Form form = kernel.Application.Forms.Item(formUid);
                try
                    Matrix mtx = form.Items.Item("38").Specific as Matrix;
                    DBDataSource ds = form.DataSources.DBDataSources.Item(nombreTabla);
                    for (int i = 0; i < mtx.VisualRowCount; i++)
                        mtx.GetLineData(i + 1);
                        if ((ds.GetValue("BaseEntry", 0) != null) &&  //IF THIS LINE HAS BASE DOCUMENT
                            (ds.GetValue("BaseEntry", 0).Length > 0))
                            int baseEntry = int.Parse(ds.GetValue("BaseEntry", 0).ToString().Trim());                   
                            if (baseEntry > 0)
                                Documents docOrigen = kernel.getDoc(baseEntry, BoObjectTypes.oPurchaseOrders, kernel.Company); //GET THE BASE DOCUMENT OF THIS LINE
                                int baseLine = int.Parse(ds.GetValue("BaseLine", 0).ToString().Trim());
                                if (!esBaseCero(baseEntry, "POR1"))
                                    baseLine--; //IF THE BASE DOCUMENT WAS DUPLICATED, THE BASE INDEX WILL BE 1 INSTEAD OF 0
                                docOrigen.Lines.SetCurrentLine(baseLine);
                                double oldValue = Convert.ToDouble(docOrigen.Lines.UserFields.Fields.Item("U_ITOP_PiezasOpenQty").Value.ToString().Trim().Replace(".", ","));
                                double recibido = Convert.ToDouble(ds.GetValue("U_ITOP_PiezasQty", 0).ToString().Trim().Replace(".", ","));
                                double newValue = oldValue - recibido;
                                docOrigen.Lines.UserFields.Fields.Item("U_ITOP_PiezasOpenQty").Value = (newValue > 0) ? newValue : 0;
                                int error = docOrigen.Update();  //THIS METHOD DOESN`T FINISH
                catch (Exception ex)
                    kernel.Application.MessageBox(ex.Message, 0, "", "", "");
    I tried to chek the last error after update method but the method doesn`t finish.
    Other way, when i read the information by accesing directly to the cells of the matrix:
                        int baseEntry = int.Parse((mtx.Columns.Item("45").Cells.Item(i + 1).Specific as EditText).Value.Trim());                
                            double oldValue = Convert.ToDouble(docOrigen.Lines.UserFields.Fields.Ite("U_ITOP_PiezasOpenQty").Value.ToString().Trim().Replace(".", ","));
                            double recibido = Convert.ToDouble((mtx.Columns.Item("U_ITOP_PiezasQty").Cells.Item(i + 1).Specific as EditText).Value.Trim().Replace(".", ","));
                            double newValue = oldValue - recibido;
                            docOrigen.Lines.UserFields.Fields.Item("U_ITOP_PiezasOpenQty").Value = (newValue > 0) ? newValue : 0;
                            int error = docOrigen.Update();
    It works well!!. I don´t know if i`m losing something but AFAIK the best way for reading the information of the actual form is using its datasources. Please if someone knows something about this it will be very helpful for me.
    Thanks,
    Edited by: Nauzet Diaz on Jul 29, 2008 11:46 AM
    Edited by: Nauzet Diaz on Jul 29, 2008 12:32 PM

    Hi all,
    i'm still having problems with dbdatasources and update documents. I've written this in FormDataEvent
               //UiApp_FormDataEvent
                if ((BusinessObjectInfo.FormTypeEx.Equals(FORM_PEDIDOCOMPRAS)) &&  //PURCHASE ORDERS
                    (BusinessObjectInfo.EventType.Equals(BoEventTypes.et_FORM_DATA_UPDATE)) &&
                    (BusinessObjectInfo.BeforeAction))
                      procesarModificaciones(form);  //"form" ORIGINATED THE EVENT
    The method procesarModificaciones(Form form) is:
           private void procesarModificaciones(Form form)
                DBDataSource ds = form.DataSources.DBDataSources.Item("OPOR");
                int docEntry = int.Parse(ds.GetValue("DocEntry", 0).Trim());
                Documents doc = kernel.Company.GetBusinessObject(BoObjectTypes.oPurchaseOrders) as Documents;
                doc.GetByKey(docEntry);
                Matrix mtx = form.Items.Item("38").Specific as Matrix;
                try
                    ds = form.DataSources.DBDataSources.Item("POR1");
                    for (int i = 0; i < doc.Lines.Count; i++)
                        doc.Lines.SetCurrentLine(i);
                        string itemCodeObj = doc.Lines.ItemCode;
                        int order = doc.Lines.VisualOrder + 1;
                        mtx.GetLineData(order);
                        string itemCodeForm = ds.GetValue("ITEMCODE", 0).Trim();
                catch (Exception ex)
                    kernel.Application.MessageBox(ex.Message, 0, "", "", "");
    I'm only exploring the business object (documents) order and the form at the same time. But this code throw this error (no sense):
    "Another user-modified table budget OBGT (ODBC 2039) Message 131-283"
    I've not used the table budget.
    I think that the problem is related with mtx.GetLineData() because when i comment the line the error doesn't appear but, of course, the method doesn't work properly. It seems like some transaction doesn't finish and the update doesn't work due to that.
    The same code using UI API instead of DbDataSources works well again:
            private void procesarModificaciones(Form form)
                DBDataSource ds = form.DataSources.DBDataSources.Item("OPOR");
                int docEntry = int.Parse(ds.GetValue("DocEntry", 0).Trim());
                Documents doc = kernel.Company.GetBusinessObject(BoObjectTypes.oPurchaseOrders) as Documents;
                doc.GetByKey(docEntry);
                Matrix mtx = form.Items.Item("38").Specific as Matrix;
                try
                    ds = form.DataSources.DBDataSources.Item("POR1");
                    for (int i = 0; i < doc.Lines.Count; i++)
                        doc.Lines.SetCurrentLine(i);
                        string itemCodeObj = doc.Lines.ItemCode;
                        int order = doc.Lines.VisualOrder + 1;
                        string itemCodeForm = (mtx.Columns.Item("1").Cells.Item(order).Specific as EditText).Value.Trim();
                catch (Exception ex)
                    kernel.Application.MessageBox(ex.Message, 0, "", "", "");
    Using UI API always for reading information from forms is not a good programming practice then help please,
    Regards.

  • What exactly is Update method Master data attrib with a Time dependency ?

    Hi Experts,
    I have a Update rule in which i have an Update Method  "Master Data Attrib of " with Time dependency
    basically we are loading (update rule of )   0PAYROLL AREA ,
                  at Master data attribute of  we have 0EMPLOYEE
                  at Time Dependency When reading Master Data  END radio button is checked
                  frm it is mention as 0CALDAY.
    please explain what is function of 0calday here?
    I understand that 0PAYROLL AREA is a attribute of 0Employee and since from R/3 we are getting only 0EMPLOYEE so we are filling it from 0employee but  what is the significance of 0CALDAY here?
    Regards,
    RG

    Hi RG,
    It fills the valid value of 0PAYROLL for a particular 0EMPLOYEE in a particular time frame.
    Elaboration.
    Say  Employee          Payroll                  Valid from          Valid to
            RG                    1000000                 01.01.2007        31.12.2007
            RG                    2000000                 01.01.2008        31.12.2008
            RG                    3000000                 01.01.2009        31.12.2009
    The if your transaction data has RG employee in it with a transaction on 0CALDAY = 12.05.2007 then the valid payroll at that time would be 100000.
    On Calday 05.05.2009 your payroll would be 300000.........
    So for different days different payroll values would be valid.
    You require calday to find out which payroll value is valid in the timeframe of a transaction.
    In your update rule it is bringin the value of valid attribute value for the time of the transaction.
    Hope it helps,
    Regards,
    Sunmit.

  • Installer update method changes every time i update an adobe product!

    hello, it is REALY anoying, that the user have to set/chose the update method e.g. "Notify me to install updates" EVERY TIME you update adobe products!!! Because Adobe Installer resets these settings every time, they offer a new product update (adobe flash or adobe reader e.g.).
    I dont wont to "Allow Adobe to install updates"!!! I only want to be notified about new updates! So I have to read every time the options again to choose the right option.
    Another alternative would be to me, not to install product updates, but I think this is not what adobe wants the user should chose.
    Best Regards,
    Tom

    What version of iWeb are you suing and what version of OS X?
    You can try the troubleshooting steps under "Fix iWeb" here...
    http://www.iwebformusicians.com/iWeb/iWeb-Tips.html

  • I 'd like to know regarding a method to separate a standby node from CE

    Hi community
    I have a question regarding a method to separate a standby node from CE.
    I would like  to know if it is possible to run the vary off command on standby node while active instance is working.
    For example,
    -shutdown standby instance on standby server.
    -run vary off and exportvg command on standby node while active instance is working.
    Version Info
    -OS : AIX 6.1
    -DBMS : Sybase CE 15.5 with 2Node
    -Shared Volumn : DS8700 ( 4TB )
    In this case, I would like to know if there is any side effect on Active instance.
    Our CE version is ASE15.5 ESD5.3 on AIX.
    Thanks in advance
    Regards
    Taiwoo Kim

    To make sure I understand, you have a two node ASE cluster....one of which is active, the second is idle.   You want to detach (for some reason) the disks from the second node of the cluster.
    From the cluster viewpoint, provided you shutdown the ASE instance on that node and don't run any cluster utilities on that node (e.g. sybcluster, quorumutil, etc.) - then whether the disks are attached or not is likely not going to be an issue.   It would be no difference to the surviving node than if you shutdown the other node completely (host included).
    What concerns me is that you obviously are planning something that affects that volume group - e.g. moving it to a new machine???    Swapping HW???  Updating OS volume management firmware???   If swapping HW, remember, the quorum has the list of participants in the cluster - so unless the new hardware hostname/ipaddr matches the old, you will need to modify the quorum entries (TechSupport can help with this) - although the better approach would be to build a new node of the cluster on the new HW (temporarily a 3 node cluster) and then remove the old node from the cluster.    If updating OS firmware, just be careful that the patch doesn't cause problems with IO fencing by changing the SCSI PGR versions or something.

  • SUN advice/information regarding update 5

    Hi Sun,
    I, and all the other users as well I think, need some advice on what we shall do regarding update 5.
    I have read in the news group that it has major performance issue regarding the ide.
    Because of this I have not downloaded update 5.
    Are these issues solved or do they only appear if the project uses the getContext() method, as our project do ?
    If these issues are not solved, is it possible give us a date when a new patch is released and the ide problems are solved ?
    Is it possible to skip the ide part of Update 5 but take the rest of the jar files, so we can continue with development ?
    Or is that not a god idea ?
    Are there some other methods like getContext() that needs to be replaced before we download Update 5 ?
    I need advice how to carry on in a safe way without having to redo my application.
    /Regards Krister

    Don't update, I have a small project which dosen't use getContext()
    Under windows it crashes.
    Under Linux it crashes.
    I have gone back to the previous patches. I would wait for it to be resolved.
    Jonathan

  • Query regarding updation thru a Procedure

    Hi,I have a query regarding updation.
    1.I invoke a procedure in Oracle called submit thru my Java application.
    The submit procedure saves the XML data in the database
    and displays this data in a Front End GUI.
    2. Now,I make a change in my Java application by adding new elements to the same row.This row now contains additional XML elements.
    I would like to display the new row with the new elements in the GUI.
    What is a better option for doing the above?
    1.Delete the row being shown,save the new row with the changes in the database,and re display it?
    2.Or,Update the row dynamically and refresh?
    Any suggestions
    Thanks,

    Hi,I have a query regarding updation.
    1.I invoke a procedure in Oracle called submit thru
    my Java application.
    The submit procedure saves the XML data in the
    database
    and displays this data in a Front End GUI.
    2. Now,I make a change in my Java application by
    adding new elements to the same row.This row now
    contains additional XML elements.
    I would like to display the new row with the new
    elements in the GUI.
    What is a better option for doing the above?
    1.Delete the row being shown,save the new row with
    the changes in the database,and re display it?
    2.Or,Update the row dynamically and refresh?
    Any suggestions
    Thanks,If you delete (it seems to me yours this process is regular and frequent) and re insert the new updated one record then High water mark will cause to scan yours table which may cause to degrade the performance.AFAIK you should go with update.But hold down dont implement it as i suggested lets see what are others solution here which may be more precious then mine.
    Khurram

  • Insert or Update method - removed from Web Services v2.0?

    Was the "insert or update" method on standard objects taken out of Web Services v2.0 for a reason? Is there an equivalent of this functionality in Web Services v2.0?
    Thanks,
    -Kevin

    Hello,
    You can make use of the Execute method in WS 2.0 as an alternate, but if you are looking out for InsertOrUpdate Functionality u have to use WS 1.0.

  • Conversion from awt to Swing, colored list widget, and awt update() method

    Now that my Interactive Color Wheel program/applet is in Swing, I guess I should continue my previous thread in here from the AWT forum ("list widget with different colors for each list item?"):
    * list widget with different colors for each list item?
    My current issue involves two canvas (well, JPanel) refresh issues likely linked to double buffering. You can see them by running the following file with "java -jar SIHwheel.jar":
    * http://r0k.us/rock/Junk/SIHwheel.jar
    [edit add]
    (Heh, I just noticed Firefox and Chrome under Windows 7 will allow you to run thie .jar directly from the link. Cool.)
    [edit]
    If you don't trust me and would rather run it as an applet, use:
    * http://r0k.us/rock/Junk/SIHwheel.html
    (For some reason the first issue doesn't manifest when running as applet.)
    1) The canvas goes "wonky-white" when the user first clicks on the wheel. What is supposed to happen is simply the user sees another dot on the wheel for his new selected color. Forcing a complete redraw via any of the GUI buttons at the bottom sets things right. The canvas behaves itself from then on, at least until minimized or resized, at which point one needs to click a GUI button again. I'll be disabling resizing, but minimizing will still be allowed.
    2) A button image, and sometimes toolTip text, from an entirely different JPanel will appear in the ULC (0,0) of my canvas.
    Upon first running the new Swing version, I had thought everything was perfect. I soon realized though that my old AWT update() method was never getting called. The desired case when the user clicks somewhere on the wheel is that a new dot appears on his selected color. This usually allows them to see what colors have been viewed before. The old paint(), and now paintComponent(), clear the canvas, erasing all the previous dots.
    I soon learned that Swing does not call update(). I had been using it to intercept refresh events where only one of the components on my canvas needing updating. Most usefully, don't redraw the wheel (and forget the dots) when you don't need to. The way I chose to handle this is to slightly modify the update() to a boolean method. I renamed it partialOnly() and call it
    at the beginning of paintComponent(). If it returns true, paintComponent() itself returns, and no clearing of the canvas occurs.
    Since I first posted about these two issues, I've kludged-in a fix to #1. (The linked .jar file does not contain this kludge, so you can see the issue.) The kludge is included in the following code snippet:
        public void paintComponent(Graphics g)
            Rectangle ulc;
         if (font == null)  defineFont(g);
         // handle partial repaints of specific items
         if (partialOnly(g))  return;
            ...  // follow with the normal, full-canvas refresh
        private boolean partialOnly(Graphics g)
         boolean     imDone = true;
         if (resized > 0)  // this "if { }" clause is my kludge
         {   // should enter on 1 or 2
             imDone = false;
             resized += 1;     // clock thru two forced-full paints
             if (resized > 2)  resized = 0;
            if (wedgeOnly)
             putDotOnWheel(g);
                paintWedge(g);
             drawSnake(g);
             drawSatSnake(g);
             updateLumaBars(g);
                wedgeOnly = false;
              else if (wheelOnly)
                wheelOnly = false;
              else
                imDone = false;  // was paint() when method was update() in the AWT version
            return(imDone);
        }Forcing two initial full paintComponent()s does whatever magic the double-buffering infrastructure needs to avoid the "wonky-white" problem. This also happens on a minimize; I've disabled resizing other than minimization. Even though it works, I consider it a kludge.
    The second issue is not solved. All I can figure is that the double buffers are shared between the two JPanels, and the artifact buttons and toolTips at (0,0) are the result. I tried simply clearing the top twenty lines of the canvas when partialOnly() returns true, but for some reason that causes other canvas artifacting further down. And that was just a second kludge anyway.
    Sorry for being so long-winded. What is the right way to avoid these problems?
    -- Rich
    Edited by: RichF on Oct 15, 2010 8:43 PM

    Darryl, I'm not doing any custom double buffering. My goal was to simply replicate the functionality of awt's update() method. And yes, I have started with the Swing tutorial. I believe it was there that I learned update() is not part of the Swing infrastructure.
    Problem 1: I don't see the effect you describe (or I just don't understand the description)Piet, were you viewing the program (via the .jar) or the applet (via the .html)? For whatever reason, problem 1 does not manifest itself as an applet, only a program. FTR I'm running JDK/JRE 1.6 under Windows 7. As a program, just click anywhere in the wheel. The whole canvas goes wonky-white, and the wheel doesn't even show. If it happens, you'll understand. ;)
    Are you aware that repaint() can have a rectangle argument? And are you aware that the Graphics object has a clip depicting the area that will be affected by painting? You might use these for your partial painting.Yes and yes. Here is an enumeration of most of the update regions:
    enum AoI    // areas of interest
        LUMA_SNAKE, GREY_SNAKE, HUEBORHOOD, BULB_LABEL, LUMA_WEDGE,
        LAST_COLOR, BRIGHTNESS_BOX, INFO_BOX, VERSION,
        COLOR_NAME, EXACT_COLOR, LUMA_BUTTON, LUMA_BARS, GUI_INTENSITY,
        QUANTIZATION_ERROR
    }That list doesn't even include the large color intensity wedge to the right, nor the color wheel itself. I have a method that will return a Rectangle for any of the AoI's. One problem is that the wheel is a circle, and a containing rectangle will overlap with some of the other AoI's. I could build an infrastructure to handle this mess one clip region at a time, but I think it would add a lot of unnecessary complexity.
    I think the bigger picture is that, though it is now updated to Swing, some of the original 1998 design decisions are no longer relevant. Back then I was running Windows 98 on a single-core processor clocked at significantly less than 1 GHz. You could actually watch the canvas update itself. The color wheel alone fills over 1000 arcs, and the color intensity wedge has over 75 update regions of its own. While kind of interesting to watch, it's not 1998 any more. My multi-core processor runs at over 2 GHz, and my graphic card is way, way beyond anything that existed last century. Full canvas updates probably take less than 0.1 sec, and that is with double-buffering!
    So, I think you're right. Let the silly paintComponent() do it's thing unhindered. If I want to track old dots on the wheel, keep an array of Points, remembering maybe the last 10. As a final step in the repainting process, decide how many of those old dots to display, and do it.
    Thanks, guys, for being a sounding board.
    Oh, I'm moving forward on implementing the color list widget. I've already added a 3rd JPanel, which is a column to the left of the main paint canvas. It will contain 3 GUI items:
    1) the color list widget itself, initially sorted by name
    2) 3 radio buttons allowing user to resort the list by name, hue, or hex
    3) a hex-entry JTextField (which is all that is there at this very moment), allowing exact color request
    The color list widget will fill most of the column from the top, followed by the radio buttons, with hex-entry at bottom.
    For weeks I had in mind that I wanted a pop-up color list widget. Then you shared your ColorList class, and it was so obvious the list should just be there all the time. :)
    -- Rich

  • Problem with update method

    import java.awt.*;
    import java.applet.Applet;
    public class graphplotter extends Applet
    public void init()
    repaint();
    public void update(Graphics g)
    g.drawRect(0,100,100,100);
    g.drawLine(50,100,50,200);
    g.drawLine(0,150,200,150);
    this code above does not draw the rectangle and line
    automatically when the applet loads.
    how to rectify this.

    i used the update method because i wanted to add new images to the existsing background image.if i use the paint method the even the existing backgroung image again has to be painted again.

  • Query regarding updating rows in JTable

    Query regarding updating rows in JTable
    Hello,
    I have a JTable with 6 columns and 1000s of rows (which are data read from flat files)
    I can select 1 or more rows and change the values of the
    columns. each time I do this I need to update the values
    in the flat file.
    Currently I assign the updated Jtable values to a vector
    Vector rowVector = (Vector)defaultModel.getDataVector();
    then I iterate over the vector and compare the values with the (old) data
    in the JTable.
                for(int rowCount = 0; rowCount<rowVector.size(); rowCount++){
                    Vector v = (Vector)rowVector.elementAt(rowCount);
                        //smsList is the Vector that contains the old JTable values
                        for(int i=0; i<smsList.size(); i++){
                                //If colums values have been changed; add that
                                //vector value to another vector
                                selectedsmsList.add(smsList.get(i));
                for(int i=0; i<selectedsmsList.size(); i++){
                         //Update the values in the flat file
                }This works fine except that it takes ages to iterate over the updated vecor and un-updated,old vector; is there any way to directly get the list of rows that were updated in the jtable; so that I can directly do an I/O operation to update the jtablke values?

    Just a suggestion.
    You could add a listener and use a vector of booleans to keep track of the rows that have been changed. You could then iterate through this boolean vector and update the changed rows.
    See
    http://java.sun.com/docs/books/tutorial/uiswing/components/table.html#modelchange
    Don't know whether this will be helpful.
    Regards, Darryl

  • Early delta initialization and update methods

    Hi gurus
    Can we use EDI with "queued delta" as update method?
    If yes where we need to do that setting and if no then would you pl tell me which functionality we need to use in infopkg to load delta from R/3 with Queued delta as a update method?
    Pl help to understand this.
    Thanks

    In the 'update' mode in your infopackage, if you see an 'early delta init' option, you can use it for that datasource (for queued or any other delta). This is where you choose to run an 'early delta init'.

  • Update methode in model-view-controller-pattern doesn't work!

    I'm writing a program in Java which contains several classes. It must be possible to produce an array random which contains Human-objects and the Humans all have a date. In the program it must be possible to set the length of the array (the number of humans to be produced) and the age of the humans. In Dutch you can see this where is written: Aantal mensen (amount of humans) and 'Maximum leeftijd' (Maximum age). Here you can find an image of the graphical user interface: http://1.bp.blogspot.com/_-b63cYMGvdM/SUb2Y62xRWI/AAAAAAAAB1A/05RLjfzUMXI/s1600-h/straightselectiondemo.JPG
    The problem I get is that use the model-view-controller-pattern. So I have a model which contains several methodes and this is written in a class which inherits form Observable. One methode is observed and this method is called 'produceerRandomArray()' (This means: produce random array). This method contains the following code:
    public void produceerMensArray() throws NegativeValueException{
         this.modelmens = Mens.getRandomMensen(this.getAantalMensen(), this.getOuderdom());
    for (int i = 0; i < this.modelmens.length; i++) {
              System.out.println(this.modelmens.toString());
    this.setChanged();
    this.notifyObservers();
    Notice the methods setChanged() and notifyObservers. In the MVC-patterns, these methods are used because they keep an eye on what's happening in this class. If this method is called, the Observers will notice it.
    So I have a button with the text 'Genereer' as you can see on the image. If you click on the button it should generate at random an array. I wrote a controller with the following code:
    package kristofvanhooymissen.sorteren;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    /**Klasse GenereerListener.
    * @author Kristof Van Hooymissen
    public class GenereerController implements ActionListener {
         protected StraightSelectionModel model;
         /**Constructor.
         *@param model Een instantie van het model wordt aan de constructor meegegeven.
         public GenereerController(StraightSelectionModel model) {
              this.model = model;
         /**Methode uit de interface ActionListener.
         * Bevat code om de toepassing te sluiten.
         public void actionPerformed(ActionEvent arg0) {
         this.model=new StraightSelectionModel();
         try{
         this.model.produceerMensArray();
         } catch (NegativeValueException e){
              System.out.println("U gaf een negatieve waarde in!");
         this.model.setAantalMensen((Integer)NumberSpinnerPanel.mensen.getValue());
         this.model.setOuderdom((Integer)NumberSpinnerPanel.leeftijd.getValue());
    StraighSelectionModel is of course my model class. Nevermind the methods setAantalMensen and setOuderdom. They are used to set the length of the array of human-objects and their age.
    Okay. If I click the button my observers will notice it because of the setChanged and notifyObservers-methods. An update-methode in a class which implements Observer.
    This method contains the follow code:
    public void update(Observable arg0,Object arg1){
              System.out.println("Update-methode");
              Mens[] temp=this.model.getMensArray();
              for (int i = 0; i < temp.length; i++) {
                   OnbehandeldeLijst.setTextArea(temp[i].toString()+"\n");
    This method should get the method out of the model-class, because the produceerRandomArray()-methode which has been called by clicking on the button will save the produce array in the model-class. The method getMensArray will put it back here in the object named temp which is an array of Mens-objects (Human-objects). Then aftwards the array should be put in the textarea of the unsorted list as you could see left on the screen on the image.
    Notice that in the beginning of this method there is a System.out.println-command to print to the screen as a test that the update-method has been called.
    The problem is that this update method won't work. My Observable class should notice that something happened with the setChanged() and notifyObservers()-methods, and after this the update class in the classes which implement Observer should me executed. But nothing happenens. My controllers works, the method in the model (produceerRandomArray() -- produce random array) has been executed, but my update-method won't work.
    Does anyone has an explanation for this? I have to get this done for my exam an the 5th of january, so everything that could help me would be nice.
    Thanks a lot,
    Kristo

    This was driving me nuts, I put in a larger SSD today going from a 120GB to a 240GB and blew away my Windows Partition to make the process easier to expand OS X, etc.  After installing windows again the only thing in device manager that wouldn't load was the Bluetooh USB Host Controller.  Tried every package in Bootcamp for version 4.0.4033 and 5.0.5033 and no luck.
    Finally came across this site:
    http://ron.dotsch.org/2011/11/how-to-get-bluetooth-to-work-in-parallels-windows- 7-64-bit-and-os-x-10-7-lion/
    1) Basically Right click the Device in Device manager, Go to Properties, Select Details tab, Choose Hardware ids from Property Drop down.   Copy the shortest Value, his was USB\VID_05AC&PID_8218 
    2) Find your bootcamp drivers and under bootcamp/drivers/apple/x64 copy AppleBluetoothInstaller64 to a folder on your desktop and unzip it.  I use winrar to Extract to the same folder.
    3) Find the files that got extracted/unzipped and open the file with notepad called AppleBT64.inf
    4) Look for the following lines:
    ; for Windows 7 only
    [Apple.NTamd64.6.1]
    ; No action
    ; OS will load in-box driver.
    Get rid of the last two lines the following:
    ; No action
    ; OS will load in-box driver.
    And add this line, paste your numbers in you got earlier for USB\VID_05ac&PID_8218:
    Apple Built-in Bluetooth=AppleBt, USB\VID_05ac&PID_8218
    So in the end it should look like the following:
    ; for Windows 7 only
    [Apple.NTamd64.6.1]
    Apple Built-in Bluetooth=AppleBt, USB\VID_05ac&PID_8218
    5) Save the changes
    6) Select Update the driver for the Bluetooth device in device manager and point it to the folder with the extracted/unzipped files and it should install the Bluetooth drivers then.
    Updated:
    Just found this link as well that does the same thing:
    http://kb.parallels.com/en/113274

Maybe you are looking for

  • Slow brand new Macbook pro- almost all ram being used up!

    I just purchased my first mac a few weeks ago- a 13 inch macbook pro running snow leopard. I have been experiencing surprisingly slow performance- computers older than mine or others of the same model quickly multitask while I frequently sit watching

  • Nokia suite does not recognize my Internet connect...

    My Nokia Suite doesn't recognize the Internet Connection available with my desktop.  Though I'm able to access the internet, my suite says "No Internet Connection Available". Any pointers to resolve this?? Plz help I use Nokia Suite 3.3.86 ~Cheers, K

  • Multiple images in pscs5 when importing from bridge

    Hi Guys Hope someone can throw some light on my problem? When I bring an image from bridge into photoshop CS5 the image sometimes (more than I would like) breaks up into multiple images in the same window. (see attached example). It was suggested tha

  • How do I get my Draft folder to open?

    My Draft file won't open. New entries won't appear. I see a round circle continue to show the file is trying to open.

  • BOM inventory control

    SAP Gurus, How is inventory of BOM managed? Example, a PC assembled from CPU, monitor, keyboard etc. how do we manage its inventory? I know that for pricing, item category group ERLA and LUMF determines if it is done at either main level or item leve