Adding data to a table model at run time

hiii
i want to add data to the table model at runtime.
i have used TableModel.My code looks like this
public class CaptureTableModel extends AbstractTableModel {
     private String[] columnNames = { "No", "Source", "Destination", "Protocol",
               "Flags" };
     private TCPPacket tcpPacket;
     private List data;
     private static int counter = 0;
     private int columnCount = columnNames.length;
     public CaptureTableModel(){}
     public CaptureTableModel(TCPPacket tcp) {
          try{
          tcpPacket=tcp;
          counter++;
          byte[] tcpdata = tcpPacket.getData();
          String srcHost = tcpPacket.getSourceAddress();
          String dstHost = tcpPacket.getDestinationAddress();
          String tcpPacketData = new String(tcpdata, "ISO-8859-1");
          if (tcpPacketData == null)
               tcpPacketData = "";
          int protocol = tcpPacket.getProtocol();
          String proto = null;
          if (protocol == 6)
               proto = "TCP";
          long sequenceNumber = tcpPacket.getSequenceNumber();
          data = new ArrayList();
          String[] info = {
                    Integer.toString(counter),
                    srcHost,
                    dstHost,
                    proto,
                    "[ACK " + tcpPacket.isAck() + " ; FIN " + tcpPacket.isFin()
                              + " ; PUSH " + tcpPacket.isPsh() + " ; RESET "
                              + tcpPacket.isRst() + " ; SYN " + tcpPacket.isSyn()
                              + " ; URGENT " + tcpPacket.isUrg() };
          data.add(info);
     } catch (Exception e) {
          e.printStackTrace();//return null;
     public int getRowCount() {
          return counter;
     public int getColumnCount() {
          return columnCount;
     public String getColumnName(int column) {
          return columnNames[column];
     public Object getValueAt(int rowIndex, int columnIndex) {
          System.out.println("the value in getValueAt"+((Object[])data.get(rowIndex))[columnIndex]);
          return ((Object[])data.get(columnIndex))[rowIndex];
          //return null;
the method getValueAt is not bieng called..where am i going wrong.
can anyone help me??

Use the "code" formatting tags when posting code so the code retains its original formatting.
i want to add data to the table model at runtime.Use the DefaultTableModel it supports dynamic methods like addRow(...), removeRow().

Similar Messages

  • Changing data in the table control during run time of transaction F-28

    Dear Experts,
    in transaction F-28 of second screen of second column (Field Name: Assignment) currently the data is getting from BSEG table and populating this column of table control, now I have a requirement that the data should be get from the other ZTABLE and populate this column during run time instead of the data from BSEG table, please let me know your suggestions, if you guys feel it will be done using User Exit then please let me know the suitable exit for this.
    Best Regards
    Venkat

    Hi Venkat,
    Use the appropriate sort key in the GL to fill up the assignment field automatically.
    U can create ur new sort key through OB16
    Regards,
    Kiran

  • Adding data to multiple tables using one form in Access 2010?

    Hi All,
    I have a access database with two tables and I want to create a single form to enter data into that tables.
    How to adding data to multiple tables using one form in Access 2010?
    I don't have to much knowledge of access database?
    Please help me
    Thanks
    Balaji

    You really don't enter identical data into 2 tables.  You enter dat into one single table, and then you have an unique identifier that maps to another table (you have a unique relationship between two tables). 
    Maybe you need to read this.
    http://office.microsoft.com/en-001/access-help/database-design-basics-HA001224247.aspx
    Think about it this way...  What is you update data in 2 tables, and then the data in one of those tables changes, but the data in the other table does NOT change.  WHOOPS!!  Now, you've got a BIG problem.  For instance, you have a customer
    named Bill Gates.  In one Table you update Bill's address to 1835 73rd Ave NE, Medina, WA 98039 and in the other table you accidentally update Bill's address to 183 73rd Ave NE, Medina, WA 98039.  Now you have 2 addresses for Bill.  Why would
    you want that???  Which is right?  No one knows.  If you have one address, you just have to update one address and if there is a mistake, you just have to update one address, but you don't have to waste time trying to figure out which is right
    and which is wong...and then update the one that is wrong.
    Post back with specific questions.
    Knowledge is the only thing that I can give you, and still retain, and we are both better off for it.

  • Fatch data from a table after a given time interval

    Hello
    I want to fetch date from a table after a fixed time interval is there any
    way to do it.
    thanks

    Not sure what you want. But maybe this helps.
    SELECT date+interval FROM atable;
    Also if you tell us more about the business case the answers could be more to the point.

  • No entry in table T001P when running time eval

    Hi,
    Can someone tell me, why this error occurs. "No entry in table T001P" when running time evaluation PT60. I checked his Infotype 1 and has the Personal Area/Subarea assigned.
    Thanks,
    Swarna.

    Hi,
    Please check these tables:
    V_001P_ALL
    V_503_AL
    Or try creating a blank entry in table T001P.
    Hope this helps,
    Reward points if helpful,
    Thank You,

  • Adding Data From One Table to Another

    Now, this doesn't strike me as a particularly complex problem, but I've either strayed outside the domain of Numbers or I'm just not looking at the problem from the right angle. In any case, I'm sure you guys can offer some insight.
    What I'm trying to do is, essentially, move data from one table to another. One table is a calendar, a simple two column 'date/task to be completed' affair, the other is a schedule of jogging workouts, i.e, times, distances. Basically, I'm trying to create a formula that copies data from the second table onto the first but only for odd days of the week, excepting Sundays (and assuming Monday as the start of the week). Now, this isn't the hard part, I can do that. The problem comes when I replicate the formula down the calendar. Even on the days when the 'if' statement identifies it as an 'even day', the cell reference to the appropriate workout on the second table is incremented, so when it comes to the next 'odd day', it has skipped a workout.
    I can't seem to see any way of getting it to specifically copy the NEXT line in the second table, and not the corresponding line.
    This began as a distraction to try and organise my running so I could see at a glance what I had to do that day and track my progress, but now it's turned into an obsession. SURELY there's a solution?
    Cheers.

    Hi Sealatron,
    Welcome to Apple Discussions and the Numbers '09 forum.
    Several possible ways to move the data occur to me, but the devil's in the details of how the data is currently arranged.
    Is it
    • a list of three workouts, one for each of Monday, Wednesday and Friday, then the same three repeated the following week?
    • an open-ended list that does not repeat?
    • something else?
    Regards,
    Barry

  • Adding data in internal table using extracted data

    Hi Experts,
    Good day!
    I have a requirements in our historical data of material price which adding data that are not existing based on data extracted from standard tables such as A004 and KONP.
    Now, i need to use the VALIDFROM (DATAB) value as basis for the latest price.
    To make it more clear, see the example below:
    Extracted data:
    Material Number      Valid From       Valid to          Price
    100101                   01/01/2008      02/01/2008     100.00      
    100101                   02/02/2008      04/02/2008     100.00
    100101                   04/03/2008      08/01/2008     200.00
    100101                   08/02/2008      01/31/2009     300.00  
    100102                   05/02/2008      07/01/2008      10.00
    100102                   07/02/2008      10/31/2008      15.00 
    100102                   11/01/2008      01/31/2009      20.00  
    Output:
    Material Number     Calmonth        Price
    100101                 01/2008           100.00
    100101                 02/2008           100.00
    100101                 03/2008           100.00
    100101                 04/2008           200.00
    100101                 05/2008           200.00
    100101                 06/2008           200.00
    100101                 07/2008           200.00
    100101                 08/2008           300.00
    100101                 09/2008           300.00
    100101                 10/2008           300.00
    100101                 11/2008           300.00
    100101                 12/2008           300.00
    100101                 01/2009           300.00
    100102                 05/2008           10.00
    100102                 06/2008           10.00
    100102                 07/2008           15.00
    100102                 08/2008           15.00
    100102                 09/2008           15.00
    100102                 10/2008           15.00
    100102                 11/2008           20.00
    100102                 12/2008           20.00
    100102                 01/2009           20.00
    Text that are in bold are the added data. What is the best code to do with this?
    How can i come up with this output? Help me please
    Thanks and Godbless,
    nips

    Hi Nips,
    Logic shud b sumthing on similar lines
    lv_count = 1.
    Loop at itab into watab.
    if lv_count > 12.
    lv_count = 1.
    endif.
    if watab-date+0(2) = lv_count.
    append watab to gt_output.
    continue.
    else.
    concatenate lv_count sy-datum+4(4) into watab-date.
    append watab to gt_output.
    endif.
    endloop.
    Best regards,
    Prashant

  • Copyig Data from a TABLE MODEL (TABLE) TO A FILE

    Hi guys,
    I wont to copy data from a Default Table Model to a File can someone write a pease of code that will do that for me.
    DefaultTableModel model = new DefaultTableModel();
    JTable table;
    public basic()
              super();
                  model.addColumn("Full Name");
                  model.addColumn("House No");
                  model.addColumn("Address");
                  model.addColumn("Town/County");
                  model.addColumn("Postcode");
                  model.addColumn("Telephone Number");
                  model.addColumn("Email Address");             
                  String[] socrates = { "Example", "33", "York RD", "Poole", "BH18 9RE", "01202776655", "[email protected]" };
                  model.addRow(socrates);
              /**This is the main setup for the Address Book
              *This has the main settings for the size, title
              *And main features of the Address book.
              setDefaultCloseOperation(EXIT_ON_CLOSE);
              this.setSize(new Dimension(800, 600));
              this.setTitle("Large Print Address Book");
              this.setLayout(new FlowLayout ());
              //Main Application Parts
              JLabel welcome = new JLabel("Welcome to Thomas's Address Book v2.0.1");
              welcome.setFont(arial20);
              this.add(welcome);
              //Menu Bar
              JMenuBar mb = new JMenuBar();
              this.setJMenuBar(mb);
              //Table
              table = new JTable(model);
              this.add(table);
              JMenu fm = new JMenu("File");
              fm.setFont(arial20);
              mb.add(fm);
              //Menu Items          
              JMenuItem Add = new JMenuItem("Add Record");
              Add.setFont(arial20);
              Add.addActionListener(new ActionListener()
                   public void actionPerformed(ActionEvent e) 
                        addw a = new addw();                    
              fm.add(Add);
              //Import from a file
              JMenuItem inp = new JMenuItem("Import Records");
              inp.setFont(arial20);
              inp.addActionListener(new ActionListener()
                   public void actionPerformed(ActionEvent e) 
                        //Opens Import Window.
                        inportw i = new inportw();                    
              fm.add(inp);
              JMenuItem quit = new JMenuItem("Exit");
              quit.setFont(arial20);
              fm.add(quit);
              quit.addActionListener(this);
    class inportw extends JFrame
              //*Add Window Properties and Settings
              public inportw ()
                   this.setSize(new Dimension(400, 150));
                   this.setTitle("Inport Records");
                   this.setLayout(new FlowLayout ());
                   this.setVisible(true);
                   //Nmae
                   JLabel error_note = new JLabel("Error Here - Need to make table final!?");
                   error_note.setFont(arial20);
                   this.add(error_note);
                   //Add Button
                   JButton binport = new JButton("Inport");
                   binport.addActionListener(new ActionListener()
                        public void actionPerformed(ActionEvent e) 
                             ArrayList data = new ArrayList();          
                   this.add(binport);
         public void actionPerformed(ActionEvent e)
              System.out.println("Application Exit");
              System.exit(0);
         public static void main(String[] args)
              basic b = new basic();
              The information from the atable needs to go into a .txt file with each row on a new line. It also needs to be in the inport/export window that is in a class on its own when someone clicks export.
    A complete peace of code would be helpfull that would do this for me. Thankyou guys.

    Rite then,
    In answer to both post yes i have done my own homework if thats what you wont to call it.
    And to the second post yes i have put in a File to export to. the code has not be pasted on my origanal post.
    //Export Button - Export Window
                   JButton bexport = new JButton("Export (BUAB)");
                   bexport.addActionListener(new ActionListener()
                        public void actionPerformed(ActionEvent e) 
                             System.out.println("Export Pressed ");
                             try
                                 FileWriter file = new FileWriter("AddressData.txt");
                                BufferedWriter out = new BufferedWriter(file);
                                 out.write("AddressBook data File");
                                out.close();
                             catch (Exception ei)
                             System.err.println("Error: " + ei.getMessage());
                   this.add(bexport);This is the export button,
    I think the code for the table model should be something like this:
    I wont to do something like this
    model.getModel().getValueAt(0, 0);
    Arrylist data = new arrylist();
    try
                                 FileWriter ffile = new FileWriter("AddressData.txt");
                                BufferedWriter out = new BufferedWriter(file);
                                 out.write(data);
                                out.close();
                             catch (Exception ei)
                             System.err.println("Error: " + ei.getMessage());
                                 }          Im not 100% sure how to get the information from the model into the arrylist, though a loop.
    If there is a section of a webpage that may help could someone please post it for me.
    Unfortunatly for me Im visualy impaired and find some of this hard. I learn though looking at examples and creating my own programs that do something similar.
    If no one wonts to help then that fine with me !

  • PDF form with XML data connection comes up blank at run time

    Hello All,
    I am a newbie to ADOBE Livecycle 9, but am very proficient in C#.  I would like to request for your guidance on the following issue.
    We have a desktop application in C#, WPF, Sqlserver. The requirement is to launch a Livecycle form from the application for the user to read/edit/save data
    I have done this much so far -
    Downloaded trial version of Livecycle 9
    Developed a interactive PDf form
    Created an XML based data connection. Generated fields on the form using the fields from this connection.
    Set the .XML file as preview source for the form
    the controls on the form are boumd to the xml data source
    In design mode, the form works fine, it displays my data correctly
    I have created a WPF form with a button. On click of this button, I call the Process.Start(pdf-file-path). My pdf is launched properly
    I have added a combo box to my WPF form. I select a parameter from this, then call a stored procedure which returns me a datatable depending on parameter passed
    Using the returned datatable, I have used the datatable.writexml and datatable.writexmlschema to create my XML and XSD files. as mentioned above, this xsd is used to create the data connection for the PDF and the XML for the preview source
    This is what I want to do -
    Launch the PDF from my WPF form, pre-populated with the newly created XML data from my WPF form.
    So basically, as the user changes the selection criteria from the combo box, the XML file data will change and the PDF file will be launched each time with new data.
    The XSD format will always be constant
    Problem -
    My XML and XSD get created properly, my PDF launches, but it is empty
    If I change my selection criteria and run the WPF application, and then open the PDF in design mode, it asks me whether it should refresh the XML source. This means that the PDF form is connecting correctly to the XML source
    So why then, does the form come up empty at run time?
    What link am I missing?
    I have found some sites that help using Web applications, but nothing for desktop applications. It would be fantastic if you could point me to some help for developing Livecycle forms with C# / SQLServer
    Your help in this case will be highly appreciated.
    Thanks and Regards

    Oops, something happended with the above post. I will try again... I have tried your suggestion but I still get the same garbled XML (with data repeated and some values "cut in half".<br /><br />Here is what I get after decode-service and extract-to-XML-service. This is just the first barcode, the others are similar, sorry for the poor formatting, but I get a CDATA tage infront of the "istensen" value.<br />                                                              <br />CDATA:istensen</fld_ForMellemEfterNavn<br />><fld_VejNRpostByEnLinie<br />>Superroad 99, 1330 Supertown</fld_VejNRpostByEnLinie<br />><fld_PrivatTelefonnummer<br />>20724283</fld_PrivatTelefonnummer<br />></sub_Person<br />></sub_PktA<br />><fld_BlanketNr<br />>kb0371ff</fld_BlanketNr<br />><fld_BarcodeCount<br />/></form1<br />>/sub_Adresse<br />><sub_Person<br />><fld_ForMellemEfterNavn>Kim Christensen</fld_ForMellemEfterNavn<br />><fld_VejNRpostByEnLinie<br />> Superroad 99, 1330 Supertown </fld_VejNRpostByEnLinie<br />><fld_PrivatTelefonnummer<br />>20724283</fld_PrivatTelefonnummer<br />></sub_Person<br />></sub_PktA<br />><fld_BlanketNr<br />>kb0371ff</fld_BlanketNr<br />><fld_BarcodeCount<br />/></form1<br /><br />Obviously this is not a legal xml-string, so I can do nothing about it.<br /><br />I have tried using a custom .NET component (ClearImage) for reading the same form (with the barcode) I get the correct data out from the barcodes. So I guess something is wrong with the decode-service in Barcoded Forms ES when I use compressed XML. But I can conclude since the ClearImage component can read the barcodes that they are compressed correctly.<br /><br />Can you help me with getting further with this problem?<br /><br />Sincerely<br />Kim

  • Problems with Sequential Model in Run-Time. OI Crashes.

    I would like to ask for help for the following Problem:
    I am trying to run an Operator Interface which I created based on the TS Simple OI.
    TestStand 3.1f1
    LabVIEW 7.1.1
    The sequence I am running is using a few file Globals for data exchange between the steps and calling the main sequence in another sequence file, based on the UUT barcode. The barcode resolves the sequence file name, where the appropriate UUT test sequence is. Most of the Steps are Express VIs.
    Basically: The main sequence file executes, its defines the UUT to be tested, calls the MainSequence in the appropriate sequence file which after the tests returns. The main sequence file than ends the test, a report is generated.
    Everything runs perfect in the TestStand Development Environment (Sequence Editor), no problem at all. But with the Operator Interface I am having great problems.
    It is very strange, but after the second Single Pass (I am always using this entry point with the sequential Model) the Operator Interface crashes: *always*, on the 3rd (!) run I get the following Error:
    Run-Time Error
    Details: No details available
    Error Code:-17502; System Level Exception.
    Location: Step 'Send Model State Message: 'Initializing'' of sequence 'Single Pass' in 'SequentialModel.Seq'
    Step Description: Call Thread.PostUIMessageEx
    Step Status: Error
    This is a Error originated from the Sequential Model sequence. After this I get different behaviors, sometimes memory access crashes, sometimes LabVIEW.exe Aplication must be shut down, the OI won't work again.
    The same Problem hapens if I use the standard TestStand Simple OI or the Full-Featured OI !!! But only if I start these OIs via LabVIEW. If I start the OIs via executable (.exe provided) than everything runs like in the Sequence Editor, that is, without errors! Do they use different LV Run-Times? How can this happen?
    With the sequence editor (LV Adapter configured to work with LV Dev. System - active Version 7.1) the sequence runs perfectly! With an OI the sequence crashes after the 3rd. run! Why?
    The Whole NI directory (with TS and LV) was masscompliled (LabVIEW 7.1.1).
    Now I need some help, it is really important for my work to get this OI working! I am looking forward for any replies!
    Thanks a lot!
    Regards,
    - Caribe -

    Hi Caribe,
    At the moment I am un-able to reproduce your problem. I am using LabVIEW 7.1 and a TestStand beta, I have also used TestStand 3.0 and I am using the standard LabVIEW OI, run as exe and also the top level VI.
    I shall try to get the update for LV7.1 and try again.
    Regards
    Ray Farmer
    Message Edited by Support on 09-26-2005 03:06 PM
    Regards
    Ray Farmer

  • How to find table size in run time ?

    Hi all
    I am using JTable problem is. �table data is being changed frequently� I waana method or any idea by which I could find the preferred size of table at run time�
    Thanks & Regards

    but my problem is I have written one renderer for increase the row height at run time behalf of data.. And we are supposed to guess what you are doing from your original question?
    I changed the code in my actionPerformed() method as follows:
    table.setRowHeight(0, table.getRowHeight(0) + 10);
    System.out.println(table.getPreferredSize());
    The preferred size still changes.
    I have no idea what your problem is or why you even care what the table preferred size is. You just add the table to a scroll pane and scroll bars will appear when required.

  • A dynamic table based on run-time created view object -- please help!

    Hello!
    I'm trying to create a dynamic table based on an run-time created view object. All go ok, but table binding component take the first view/iterator state and don't reflect changes they have. Please, take a look:
    1. At run-time the view is being replaced by new red-only one based on query in application module:
    getQueryView().remove();
    createViewObjectFromQueryStmt("QueryView", statement);
    2. Page definition file contains an iterator (using iterator or methodIterator - doesn't matter) binding and table, which binds to the iterator, like:
    <methodIterator id="distributeQuery1Iter" Binds="distributeQuery1.result"
    DataControl="QueryServiceDataControl" RangeSize="10"/>
    <table id="distributeQuery11" IterBinding="distributeQuery1Iter"/>
    3. The page code uses <af:table>. But, if I use table binding (it's right) like this:
    <af:table var="row" value="#{bindings.distributeQuery11.collectionModel}">
    <af:forEach items="#{bindings.distributeQuery11.attributeDefs}" var="def">
    the table will never changed (i.e. still show the first view instance).
    When I tried to use iterator binding directly (it's bad and cannot provide all needed features unlike CollectionModel from table binding) I saw that table works!
    (Code is somehing like:
    <af:table var="row" value="#{bindings.myIterator.allRowsInRange}">
    <af:forEach items="#{bindings.myIterator.attributeDefs}" var="def">
    Why the table binding do not reflect changes in iterator? Or should I use different approach?
    Thanks in advance!
    Ilya.

    I got it to work! I used a hybrid approach comprised of some of your code and some of Steve Muench's AcceessAppModuleInBackingBean example.
    In the setBindings method, I execute an app module method that redefines the query, then I used your code to delete and recreate bindings and iterator:
    public void setBindingContainer(DCBindingContainer bc) {
    this.bindingContainer = bc;
    rebuildVO();
    The rebuildVO() method looks like the code you provided in your example:
    private void rebuildVO() {
    DCDataControl dc;
    DispatchAppModule dApp;
    DCBindingContainer bc;
    DCIteratorBinding it;
    OperationBinding operationBinding;
    ViewObject vo;
    DCControlBinding cb;
    try {
    bc = getBindingContainer();
    dc = bc.findDataControl(DATACONTROL);
    dApp = (DispatchAppModule)dc.getDataProvider();
    // Execute App Module Method to rebuild VO based upon new SQL Statement.
    dApp.setDispatchViewSQL();
    vo = dApp.findViewObject(DYNAMIC_VIEW_NAME);
    it = bc.findIteratorBinding(DYNAMIC_VO_ITER_NAME);
    it.bindRowSetIterator(vo, true);
    // logger.info("Remove value binding...");
    cb = bc.findCtrlBinding(DYNAMIC_VIEW_NAME);
    cb.getDCIteratorBinding().removeValueBinding(cb);
    bc.removeControlBinding(cb);
    // logger.info("Creating new value binding...");
    FacesCtrlRangeBinding dynamicRangeBinding =
    new FacesCtrlRangeBinding(null,
    bc.findIteratorBinding(DYNAMIC_VO_ITER_NAME), null);
    // logger.info("Add control binding...");
    bc.addControlBinding(DYNAMIC_VIEW_NAME, dynamicRangeBinding);
    } catch (Exception e) {
    e.printStackTrace();
    And my App Module method that redefines the view object looks like this:
    public void setDispatchViewSQL() {
    String SQL =
    "begin ? := PK_BUsiNESS.F_GETDISPATCHVIEWSQL();end;";
    CallableStatement st = null;
    String ViewSQL = null;
    try {
    st = getDBTransaction().createCallableStatement(SQL,
    DBTransaction.DEFAULT);
    * Register the first bind parameter as our return value of type LONGVARCHAR
    st.registerOutParameter(1, OracleTypes.LONGVARCHAR);
    st.execute();
    ViewSQL = ((OracleCallableStatement) st).getString(1);
    findViewObject(DYNAMIC_VO_NAME).remove();
    ViewObject vo = createViewObjectFromQueryStmt(DYNAMIC_VO_NAME, ViewSQL);
    vo.executeQuery();
    } catch (SQLException s) {
    throw new JboException(s);
    } finally {
    try {
    st.close();
    } catch (SQLException s) {
    s.printStackTrace();
    When I run it I get my desired results. One thing I don't quite understand is why when the page is first rendered it shows the last set of records rather than the first. Now I have to figure out how to put navigation URLS in each of the table cells.
    Thanks for your help; I would not have gotten this far without it,
    Jeff

  • Data Socket Server installation on Labview run-time PC

    How do I install data socket server on a PC with Labview run-time licence only? Is it part of the installer?

    Yes, this will install entire DataSocket software. This includes: DataSocket Server, Manager, and Help.
    Zvezdana S.

  • Unable to view newly added data to fact table

    Hi,
    I have load some data into my fact table and dimensions to test my cube and make sure everything is OK, works fine so far.
    Now I have loaded data for another year 2013 into my fact table, all OK I have re-process the cube , all OK here too.
    When I want to browse the data, I can only see the data for 2014 in the browser but when I look at the totals the amount of rows are OK ( the count of sales transaction 8M for 2014 and 7.5M for 2013), I cannot see any thing under the year 2013,
    I have re-process and reload the cube 2-3 times but still the same results , I have looked under the partition tab and the estimated rows is OK, on the aggregation tab, it shows the original amount (8M) instead of 15.5M ( should this number be the same
    as the partition  estimated rows ?)
    How can the data not showing in 2013  but the totals row being OK ? I will need to add data until 2010 1 year at time ( very slow dev machine).
    Need to understand this
    Thanks
    Al
    FYI I just found out that the info is in the Year unknown instead of being displayed in year 2013

    Hi A,
    This sounds like your date dimension does not have the relevant dates for 2013, so when you process these facts, they go into the unknown members in the date dimension. 
    I suggest that you ensure the dates are available and processed in the date dimension before you process your facts.
    Hope that helps,
    Richard

  • Netbeans 6.0 web page Error adding data to mySQL table - date datatype

    Netbeans 6.0 web page, trying to add data into a mySQL table. The table has a datetime datatype. The add does not work when trying to add a record. I have no problems when I add a record to a table without a date datatype. Here is my code.
    RowKey rk = fwusersDataProvider.appendRow();
    fwusersDataProvider.setCursorRow(rk);
    fwusersDataProvider.setValue("fwusers.userid", userid);
    fwusersDataProvider.setValue("fwusers.password", pwd);
    fwusersDataProvider.setValue("fwusers.firstName", "A");
    fwusersDataProvider.setValue("fwusers.lastName", "K");
    fwusersDataProvider.setValue("fwusers.middleName", "");
    fwusersDataProvider.setValue("fwusers.companyName", "DCC");
    fwusersDataProvider.setValue("fwusers.password1", "");
    fwusersDataProvider.setValue("fwusers.password2", "");
    fwusersDataProvider.setValue("fwusers.password3", "");
    Calendar cal= Calendar.getInstance();
    java.sql.Date sqlDate = new java.sql.Date(cal.getTime().getTime() );
    fwusersDataProvider.setValue("fwusers.dateCreated", sqlDate );
    fwusersDataProvider.setValue("fwusers.group", "worker");
    fwusersDataProvider.commitChanges();
    fwusersDataProvider.refresh();

    bkrivensky wrote:
    Netbeans 6.0 web page, trying to add data into a mySQL table. The table has a datetime datatype. The add does not work when trying to add a record. Don't suppose you want to share the error message you're getting do ya? Go on, be a sport.

Maybe you are looking for