Update row with more data - JTable with Abstracttablemodel

Hello!
I got some problems with my program, im using jtable with abstracttablemodel.
First I include content into the jtable by pressing ”New Content”, then it will pop up a dialog which I fill with information as you can see in the picture.
http://img42.imageshack.us/img42/6969/jtable.jpg
But when its done, I want to borrow it and update that row with more information as you can see if its loaned, if it is their shall be a checkbox, name and phone there. I don’t really know how to do this. Suppose I should do a similar metodh as when I’m adding and removing content. The question is how do I do that? I’ve been looking at some tips and hints on google. It seems to me that should use “fireTableRowsUpdated” but not really sure if its right and how to. When I’m borrowing the specific row I guess I need to check which row is clicked before borrowing and then fill in the information and update the table.The borrow button will also pop up a dialog with 3 fields to fill. Here is the code I wrote for adding and removing. I’ve tried with the update but its not right which I’m going to use when borrowing objects from the database. Please help!
Code from the abstracttablemodel
private ArrayList<Objects> obj = new ArrayList<Objects>();
     public void add(Objects o) {
          obj.add(o);
          fireTableRowsInserted(obj.size()-1, obj.size()-1);
     public void remove(int o) {
          int index = obj.indexOf(o);
          obj.remove(o);
          fireTableRowsDeleted(index, index);
     public void update (Objects o){
          // Not sure how to do here
          //int index = obj.indexOf(o);
          //fireTableRowsUpdated(index,index);
     }Code for the button in the main program.
if (arg.getSource() == borrow) {
// How should I do here? I need to implement the BorrowDialog, check if a row is pressed then update? How do I do that?
               BorrowDialog newLoan = new BorrowDialog(frame);
               if(table.getSelectedRow() == -1)
                    JOptionPane.showMessageDialog(frame,"Select the row before loan");
               else
                    dir.update(newLoan.getLoan());
                    table.repaint();
          }Code for BorrowDialog
public class BorrowDialog extends JDialog implements ActionListener {
        //implements JTextFields, Buttons,Labels and Panels.
     public BorrowDialog(JFrame parent) {
     //Setting buttons to panels and such
     public Objects getLoan(){
          return loan;
     public void setLoan()
                // Not sure if this is right, as I leave some fields empty, will it be empty when its updating aswell?
                // I tried with add data then it just will be a new row, when I will update a specific row
                loan = new Objects("", "" , "" , "" , "" ,"", loanField.getText(),nameField.getText(), phoneField.getText());
     public void actionPerformed(ActionEvent arg) {
          if (arg.getActionCommand().equals("Save")) {
               System.out.println("save");
               setLoan();
               dispose();
}All help is appreciated!
Edited by: iTech34 on Feb 22, 2010 3:27 AM
Edited by: iTech34 on Feb 22, 2010 3:31 AM
Edited by: iTech34 on Feb 22, 2010 3:58 AM

Look up for the rest of the code!
I explained everything on the first post, so please read there so you know the problem I got.
import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.*;
public class Database implements ActionListener {
     private final int WIDTH = 800;
     private final int HEIGHT = 800;
     private JTable table = new JTable();
     private JFrame frame = new JFrame("Database");
     private JButton addContent = new JButton("New content");
     private JButton borrow = new JButton("Borrow");
     private JButton returnObject = new JButton("Return");
     private JButton remove = new JButton("Remove");
     private JButton save = new JButton("Save");
     private JButton load = new JButton("Load");
     private JButton exit = new JButton("Exit");
     private Directory dir = new Directory();
     private JPanel buttonPanel = new JPanel();
     private JPanel mainPanel = new JPanel();
     public Database() {
          // BUTTONS
          buttonPanel.add(addContent);
          buttonPanel.add(remove);
          buttonPanel.add(borrow);
          buttonPanel.add(returnObject);
          buttonPanel.add(save);
          buttonPanel.add(load);
          buttonPanel.add(exit);
          // ACTION LISTENERS
          addContent.addActionListener(this);
          remove.addActionListener(this);
          borrow.addActionListener(this);
          returnObject.addActionListener(this);
          save.addActionListener(this);
          load.addActionListener(this);
          exit.addActionListener(this);
          // JTABLE
          table = new JTable(dir);
          table.setAutoCreateRowSorter(true);
          table.setRowHeight(25);
          JScrollPane JScroll = new JScrollPane(table);
          // PANELS
          mainPanel.setLayout(new BorderLayout());
          mainPanel.add("North", buttonPanel);
          mainPanel.add("Center", JScroll);
          // FRAME
          frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          frame.setSize(WIDTH, HEIGHT);
          frame.getContentPane().add(mainPanel);
          frame.pack();
          frame.setLocationRelativeTo(null);
          frame.setVisible(true);
     public void actionPerformed(ActionEvent arg) {
          if (arg.getSource() == addContent) {
               Dialog newDialog = new Dialog(frame);
               dir.add(newDialog.getItem());
          if (arg.getSource() == remove) {
               if (table.getSelectedRow() == -1)
                    JOptionPane.showMessageDialog(frame,"Select the row before remove");
               else
                    dir.remove(table.getSelectedRow());
          if (arg.getSource() == borrow) {
               // Not sure how to do here! I need to check which row I've clicked and take that row into BorrowDialog as argument i suppose.. please explain
               BorrowDialog newLoan = new BorrowDialog(frame);
               if(table.getSelectedRow() == -1)
                    JOptionPane.showMessageDialog(frame,"Select the row before loan");
               else
                    dir.update(newLoan.getLoan());
                    table.repaint();
          if (arg.getSource() == returnObject) {
          if (arg.getSource() == save) {
               dir.writeFile();
          if (arg.getSource() == load) {
               Objects[] tempObject = dir.readFile("info.txt");
               for (int i = 0; tempObject[i] != null; i++)
                         dir.add(tempObject);
          if (arg.getSource() == exit){
               frame.dispose();
     public static void main(String[] argv) {
          new Database();
}import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
public class BorrowDialog extends JDialog implements ActionListener {
     private final int WIDTH = 300;
     private final int HEIGHT = 400;
     private JButton exitDialog = new JButton("Exit");
     private JButton saveDialog = new JButton("Save");
     private JTextField loanField = new JTextField();
     private JTextField nameField = new JTextField();
     private JTextField phoneField = new JTextField();
     private JLabel loanLabel = new JLabel("Loan");
     private JLabel nameLabel = new JLabel("Name");
     private JLabel phoneLabel = new JLabel("Phone");
     private JPanel eastPanel = new JPanel();
     private JPanel southPanel = new JPanel();
     private JPanel westPanel = new JPanel();
     private GridLayout layout = new GridLayout(3, 1);
     private Objects loan;
     public BorrowDialog(JFrame parent) {
          super(parent, "Borrow", true);
          southPanel.add(saveDialog);
          southPanel.add(exitDialog);
          westPanel.add(loanLabel);
          eastPanel.add(loanField);
          westPanel.add(nameLabel);
          eastPanel.add(nameField);
          westPanel.add(phoneLabel);
          eastPanel.add(phoneField);
          westPanel.setLayout(layout);
          eastPanel.setLayout(layout);
          add("West", westPanel);
          add("Center", eastPanel);
          add("South", southPanel);
          saveDialog.addActionListener(this);
          exitDialog.addActionListener(this);
          setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
          setResizable(false);
          setSize(WIDTH, HEIGHT);
          getContentPane();
          setVisible(true);
     public Objects getLoan(){
          return loan;
     public void setLoan()
          // Can I really do like this? Will the the specific row I've chosen be overwriten entirly with blank elements in the six columns as I left empty(see below, when I send the arguments into the constructor)?
          loan = new Objects("", "" , "" , "" , "" ,"", loanField.getText(),nameField.getText(), phoneField.getText());
     public void actionPerformed(ActionEvent arg) {
          if (arg.getActionCommand().equals("Save")) {
               System.out.println("save");
               setLoan();
               dispose();
          if (arg.getSource() == exitDialog) {
               dispose();
Edited by: iTech34 on Feb 22, 2010 11:19 AM
Edited by: iTech34 on Feb 22, 2010 11:20 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Similar Messages

  • ROW-00014: Cannot update row as the data in the database has changed

    We're having the problem below. We are trying to upgrade a 10g Oracle database via a linked server in SQL Server 2008.
    OLE DB provider "OraOLEDB.Oracle" for linked server "abc" returned message "ROW-00014: Cannot update row as the data in the database has changed".
    Mensagem 7343, Nível 16, Estado 4, Linha 1
    The OLE DB provider "OraOLEDB.Oracle" for linked server "abc" could not UPDATE table "[OraOLEDB.Oracle]".
    Can anyone help?
    Thank you.
    Edited by: user10641061 on 14/10/2011 18:48

    The columns that I want insert in oracle database have this data:
    JULIO DE SANT’ ANNA     KOLISNHG     1968-10-04 00:00:00.000     S     F     10     9     RUA, N° 999 / APT° 99999 RJ     TH     25410003     N°42.018      78550510     125296625     2178942326     2008-11-15 18:58:58.000
    Some of this data may be interfering with this insert?
    thank you
    Edited by: user10641061 on 15/10/2011 15:47
    Edited by: user10641061 on 15/10/2011 15:48

  • How to keep the first row fixed in a JTable, with sorting, and bellow the headers ?

    I am trying to change the following code so then the fixed rows will stay on top(but below the headers!), but when I change getContentPane().add(fixedScroll, BorderLayout.SOUTH); to getContentPane().add(fixedScroll, BorderLayout.NORTH); it stays above the headers. How can I put the first rows on top, but below the headers ? Thanks.
    import java.awt.*; 
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.table.*;
    import javax.swing.event.*;
    * @version 1.0 03/05/99
    public class FixedRowExample extends JFrame {
      Object[][] data;
      Object[] column;
      JTable fixedTable,table;
      private int FIXED_NUM = 2;
      public FixedRowExample() {
        super( "Fixed Row Example" );
        data =  new Object[][]{
            {      "a","","","","",""},
            {      "","b","","","",""},
            {      "","","c","","",""},
            {      "","","","d","",""},
            {      "","","","","e",""},
            {      "","","","","","f"},
            {"fixed1","","","","","","",""},
            {"fixed2","","","","","","",""}};
        column = new Object[]{"A","B","C","D","E","F"};
        AbstractTableModel    model = new AbstractTableModel() {
          public int getColumnCount() { return column.length; }
          public int getRowCount() { return data.length - FIXED_NUM; }
          public String getColumnName(int col) {
           return (String)column[col];
          public Object getValueAt(int row, int col) {
            return data[row][col];
          public void setValueAt(Object obj, int row, int col) {
            data[row][col] = obj;
          public boolean CellEditable(int row, int col) {
            return true;
        AbstractTableModel fixedModel = new AbstractTableModel() {     
          public int getColumnCount() { return column.length; }
          public int getRowCount() { return FIXED_NUM; }
          public Object getValueAt(int row, int col) {
            return data[row + (data.length - FIXED_NUM)][col];
        table = new JTable( model );
        table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
        table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
        table.setAutoCreateRowSorter(true);
        fixedTable = new JTable( fixedModel );
        fixedTable.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
        fixedTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
        JScrollPane scroll      = new JScrollPane( table );
        scroll.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
        JScrollPane fixedScroll = new JScrollPane( fixedTable ) {
          public void setColumnHeaderView(Component view) {} // work around
                                                 // fixedScroll.setColumnHeader(null);
        fixedScroll.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
        JScrollBar bar = fixedScroll.getVerticalScrollBar();
        JScrollBar dummyBar = new JScrollBar() {
          public void paint(Graphics g) {}
        dummyBar.setPreferredSize(bar.getPreferredSize());
        fixedScroll.setVerticalScrollBar(dummyBar);
        final JScrollBar bar1 = scroll.getHorizontalScrollBar();
        JScrollBar bar2 = fixedScroll.getHorizontalScrollBar();
        bar2.addAdjustmentListener(new AdjustmentListener() {
          public void adjustmentValueChanged(AdjustmentEvent e) {
            bar1.setValue(e.getValue());
        scroll.setPreferredSize(new Dimension(400, 100));
        fixedScroll.setPreferredSize(new Dimension(400, 52));  // Hmm...
        getContentPane().add(     scroll, BorderLayout.CENTER);
        getContentPane().add(fixedScroll, BorderLayout.SOUTH);   
      public static void main(String[] args) {
        FixedRowExample frame = new FixedRowExample();
        frame.addWindowListener( new WindowAdapter() {
          public void windowClosing( WindowEvent e ) {
            System.exit(0);
        frame.pack();
        frame.setVisible(true);

    Sorry, this code missed a very important line:
    table.setAutoCreateRowSorter(true);
    So you meant:
    Object[][] header;//class atribute
    header=new Object[][]{//in the constructor
                { "h","i","j","k","l","m"},
                { "h","i","j","k","l","m"}
    public Object getValueAt(int row, int col) {//in the TableModel
            if (row==0){
                return header[row][col];
            else {
                return data[row][col];
    I tried, but when I sort, the first row get sorted with the rest.

  • Is there anyone else having a major probblem with excessive data usage with the iPhone 5??

    My wife and I are on a shared 4GB data plan, she has the Galaxy Note 2 and I have the iPhone 5, she's on her phone way more than I am, but I am using waaay more data than she is, double to be exact. She sends pictures all the time and all of that, I do not, but yet I am still using more data. I have cut off everything from using my cellular data except, facebook, twitter, instagram, and Onavo Count, I have deleted iClouds from my phone, my location is turned off, but yet I am still using a lot of data.. I was wondering, is this issue because of Verizon, or is it because of the iPhone 5? My boss has a iPhone 5 through AT&T and she's not using as much data as I am either and I am pretty sure she's on her phone more than I am as well and do not have half of everything I got not using cellular data cut off.. I been with Verizon since Feb. 2012 and I have always had this problem with data while my wife is using barely 1G a month, I am using almost 2G every month. I am not complaining, I just want to know if anyone else is experiencing the same thing and if so what kind of solutions have you found? Thanks in advance! I hope I hear from someone... preferably a Verizon representative.  

    Thank you for your response. I do not stream music or videos, I do not
    FaceTime, my apps are not automatically updating when using wifi, I
    manually update them so they do not use cellular date either. Yes I have
    been able to view my data sessions, and honestly its not adding up. This
    morning it said my phone used over 90,000 kilobytes and I do not know how.
    I am positive my wife uses her phone more than I do but yet I am using more
    data.. I've been to the Verizon store and they have not be able to help me
    at all, I really like the coverage I get from Verizon but my confusion on
    why my phone is using so much data may cause me to switch providers and I
    really do not want to, I just really want to get to the bottom of this
    situation. I can't even enjoy my phone because I have cut mainly everything
    off. Location is cut off, I've deleted iTunes off my phone, I got mainly
    all my applications to only be accessed through wife for when I get home. I
    cut off my cellular data as soon as I get home because I am under wife when
    I am home. My wife do not have to do anything of what I've just mentioned
    but yet I am still using more data than she. Is my phone defected,
    something has to be wrong here. Please I will really appreciate it if you
    or anyone can help me figure what is going on. Please, thank you!
    Sent from my iPhone
    On Nov 8, 2013, at 12:55 PM, Verizon Wireless Customer Support <

  • Create XML format file in bulk insert with a data file with out delimiter

    Hello
    I have a date file with no delimiter like bellow
    0080970393102312072981103378000004329392643958
    0080970393102312072981103378000004329392643958
    I just know 5 first number in a line is for example "ID of bank"
    or 6th and 7th number in a line is for example "ID of employee"
    Could you help me how can I create a XML format file?
    thanks alot

    This is a fixed file format. We need to know the length of each field before creating the format file. Say you have said the first 5 characters are Bank ID and 6th to 7th as Employee ID ... then the XML should look like,
    <?xml version="1.0"?>
    <BCPFORMAT xmlns="http://schemas.microsoft.com/sqlserver/2004/bulkload/format"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <RECORD>
      <FIELD ID="1"xsi:type="CharFixed"LENGTH="5"/>
      <FIELD ID="2"xsi:type="CharFixed"LENGTH="2"/>
      <FIELD ID="3" xsi:type="CharFixed" LENGTH="8"/>
      <FIELD ID="4" xsi:type="CharFixed" LENGTH="14"/>
      <FIELD ID="5" xsi:type="CharFixed" LENGTH="14"/>
      <FIELD ID="6" xsi:type="CharFixed" LENGTH="1"/>
    </RECORD>
    <ROW>
      <COLUMNSOURCE="1"NAME="c1"xsi:type="SQLNCHAR"/>
      <COLUMNSOURCE="2"NAME="c2"xsi:type="SQLNCHAR"/>
      <COLUMN SOURCE="3" NAME="c3" xsi:type="SQLCHAR"/>
      <COLUMN SOURCE="4" NAME="c4" xsi:type="SQLINT"
    />
      <COLUMN SOURCE="5" NAME="c5" xsi:type="SQLINT"
    />
    </ROW>
    </BCPFORMAT>
    Note: Similarly you need to specify the other length as well.
    http://stackoverflow.com/questions/10708985/bulk-insert-from-fixed-format-text-file-ignores-rowterminator
    Regards, RSingh

  • Updating div  from two data sets with fading

    Hi,
    I am trying to do the following: I have a main area where I
    want to display an image (main image) of a product. This product
    has associated with it a few detail pictures of that product that
    are displayed next to the main image. I want to let the user click
    on the detail pictures to show the detail picture also in the main
    image div. Normally I would know how to do this, but the problem is
    that I want to do it with a fade .... I found out how to do the
    fading from the example
    http://labs.adobe.com/technologies/spry/samples/data_region/DetailRegionEffectsSample.html
    but I don't know how to make this wok with the detail area
    also linking into the main image div.
    I have made an example that displays a table with 3 columns:
    the first column shows the main product names, the second columns
    the names of the detail pics, and the last column the name of the
    main image pic. Choosing a product in the first column makes the
    second column and 3rd column indeed update, and the 3rd column
    indeed nicely fade. Now I want the user to be able to click the
    second column and then show the text selected there in the 3rd
    column with the proper fade. Any help is welcome!! And happy
    Holidays!
    Here is the source code followed by the XML
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml"
    xmlns:spry="
    http://ns.adobe.com/spry">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=utf-8" />
    <title>bla</title>
    <script src="../SpryAssets/SpryEffects.js"
    type="text/javascript"></script>
    <script src="../SpryAssets/xpath.js"
    type="text/javascript"></script>
    <script src="../SpryAssets/SpryData.js"
    type="text/javascript"></script>
    <script src="../SpryAssets/SpryNestedXMLDataSet.js"
    type="text/javascript"></script>
    <script type="text/javascript">
    <!--
    var ds1 = new
    Spry.Data.XMLDataSet("../XML/test.xml","products/item");
    var ds2 = new Spry.Data.NestedXMLDataSet(ds1, "pic");
    //-->
    </script>
    <script type="text/javascript">
    <!--
    var gEffectInProgress = null;
    var gPendingSetRowIDRequest = -1;
    function fadeInContent(notificationType, notifier, data)
    if (notificationType != "onPostUpdate")
    return;
    var effect = new
    Spry.Effect.Fade('mainproduct-picture-contain', { to: 100, from: 0,
    duration: 1500, finish: function() {
    gEffectInProgress = null;
    if (gPendingSetRowIDRequest >= 0)
    var id = gPendingSetRowIDRequest;
    gPendingSetRowIDRequest = -1;
    fadeOutContentThenSetRow(id);
    effect.start();
    Spry.Data.Region.addObserver('mainproduct-picture-contain',
    fadeInContent);
    function fadeOutContentThenSetRow(rowID)
    if (gEffectInProgress)
    gPendingSetRowIDRequest = rowID;
    return;
    if (rowID == ds1.getCurrentRowID())
    return;
    gEffectInProgress = new
    Spry.Effect.Fade('mainproduct-picture-contain', { to: 0, from: 100,
    duration: 1000, finish: function() {
    ds1.setCurrentRow(rowID);
    gEffectInProgress.start();
    //-->
    </script>
    </head>
    <body>
    <table border="1">
    <tr>
    <td width="200" height="200">
    <div spry:region="ds1">
    <div spry:repeatchildren="ds1">
    <div onclick="fadeOutContentThenSetRow('{ds_RowID}');
    return false;"/>{name}</div>
    </div>
    </div>
    </td>
    <td width="200">
    <div spry:region="ds2">
    <div spry:repeatchildren="ds2">
    <div onclick="fadeOutContentThenSetRow('{ds_RowID}');
    return false;"/>{pic}</div>
    </div>
    </div>
    </td>
    <td width="200">
    <div id="mainproduct-picture-contain"
    spry:detailregion="ds1">
    <div/>{mainimage}</div>
    </div>
    </td>
    </tr>
    </table>
    </body>
    </html>
    Here is the XML
    <?xml version="1.0" encoding="utf-8"?>
    <products>
    <item>
    <name>name1</name>
    <desc>product 1</desc>
    <pic id="1">product1_detailpic1.jpg</pic>
    <pic id="2">product1_detailpic2.jpg</pic>
    <mainimage>product1_mainpic.jpg</mainimage>
    </item>
    <item>
    <name>name2</name>
    <desc>product 2</desc>
    <pic id="1">product2_detailpic1.jpg</pic>
    <pic id="2">product2_detailpic2.jpg</pic>
    <pic id="3">product2_detailpic3.jpg</pic>
    <pic id="4">product2_detailpic4.jpg</pic>
    <mainimage>product2_mainpic.jpg</mainimage>
    </item>
    </products>

    Can anybody please help with this? I am currently clueless
    and pulling out the last hairs on my head !$%^&*
    thanks a lot in advance

  • Page coon be displayed with more data

    Hi,
    I am having an issue with BSP , when I display 30 or 40 records using <htmlb:tableView  > it works fine
    But when I try to display more records lets say 1K its showing Page cannot be displayed
    Could you please help
    Thanks,

    I have the port range triggering on with these settings:
    Application Name: https
    Triggered Range: 443 - 443
    Forwarded Range: 443 - 443
    Check mark next to Enabled
    I am using QoS with Internet Access Priority Enabled and No Acknowledgement Disabled and WMM Support Enabled
    I have some Internet FIlters:
    Filter Anonymous Internet Requests is Enabled
    Filter IDENT (Port 113) is Enabled
    And thats it.

  • Urgent please: Percentage issue with more data

    Hi,
    I am trying to calculate percentage but it is throwing error. Any help on calculating percentage type reports?
    Thanks,
    Sri

    Your statement "Looks like VO2 is not being attached to the adv table in PFR?" holds the key to your issue.
    Are you trying to attach the VO in PFR? Only a selected properties can be modified for beans in PFR. Put your code in processRequest and it should work.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Problem with Activity Data Collector with web dynpro

    Hi Gurus,
    We try to use the Activity Data Collector to create portal statistics. We activate the service, define the file formats, and files generates successfully. After that, we load those files into BI, and create some query. Analyze queries look the following problem:
    There is a web dynpro application which in portal (in web dynpro iview), and the log files non contains every hit.
    For example, 2000 users used this application, but the log files contains only 13 users.
    Can yout help me, what is the problem?
    Thanks

    Dwa-
    Did you create activity reporting service similar to below link.
    http://help.sap.com/saphelp_nw70/helpdata/en/45/74eeda9ba26975e10000000a114a6b/frameset.htm 
    If you have used it. Activity reporting service which you created will not record the Webdynpro activity.  I think the above one is more of KM reporting service.
    Try creating activity report with below link. But portal version required is EHP1.
    Portal Activity Data Collector using Solution Manager
    Thanks,
    Sharath.

  • Logical fact table with fragmented data sources with different dimensions

    Hello.
    I have a logical fact table with four logical table sources. Three of the LTS's share the same dimensions, but the fourth LTS has one dimension (called Dim_A) less. In the physical layer the dimension Dim_A is joined to the first three physical fact tables, but not to the fourth fact table (since it doesn't have that dimensionality). In the BMM layer the logical fact table is joines to the logical dimansion Dim_A.
    When I run an analysis on this RPD the measures from the logical fact is aggregated correctly (union of all four table sources) as long as I doesn't include Dim_A, but as soon as I include dimension Dim_A I get the error message:
    +State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 43119] Query Failed: [nQSError: 14052] Internal Error: Logical column Dim_A.Column_X has no physical sources that can be joined to the physical fact table source [Logical table sources (Priority=0): Fact_B.Fact_Y]. (HY000)+
    I would like a solution where the analysis returns correctly aggregated measures also for the LTS with the "missing" dimension, but with a dimension value NULL for this LTS. Or something like this.
    Is there a way to set this up in the RPD.
    Thanks,
    Henning Eriksen

    The SQL could look something like this.
    SELECT dim_a.col_1, fact_a.measure_1
    FROM db.dim_a
    JOIN
    db.fact_a
    ON fact_a.col_2 = dim_a.col_2
    WHERE fact_a.date = '28-nov-2012'
    UNION ALL
    SELECT dim_a.col_1, SUM (fact_b.measure_1)
    FROM db.dim_a
    JOIN
    db.fact_b
    ON fact_b.col_2 = dim_a.col_2
    WHERE fact_b.date = '28-nov-2012'
    UNION ALL
    SELECT dim_a.col_1, SUM (fact_c.measure_1)
    FROM db.dim_a
    JOIN
    db.fact_c
    ON fact_c.col_2 = dim_a.col_2
    WHERE fact_c.date = '28-nov-2012'
    UNION ALL
    SELECT NULL, SUM (fact_d.measure_1)
    FROM    db.fact_d
    WHERE fact_d.date = '28-nov-2012'
    I would appreciate if you could give me some hints for the RPD.
    Thanks,
    Henning

  • One invoice with more purchase orders with more vendors

    Hi guys,
    a question: I have made an invoice in reference to two Purchase orders.
    The first PO has the vendor1(also invoicing party1) and the second PO has the vendor2(also invoicing party2):when I enter the invoice in reference to these two PO's in order 1 and 2 the invoice takes the vendor1 like vendor to post and I save without problems..In your opinion is this behaviour correct  or is there something to parametrize to avoid that one invoice can be posted on more PO with different invoicing partys/vendors?
    Thanks in advance for interesting
    Bye

    Hi, It is possible to process more than one PO in MIRO but the vendor in all the PO's should be same.
    The system will take over the invoicing party from the first PO and ignore the invoicing parties of other PO's if you are using multiple PO's with different Vendor's,
    You can see it in 'Detail' tab at header in MIRO,  This is SAP standard functionality.
    Refer below link for multiple PO's posting for same vendor,
    http://sapfunctional.com/MM/Invoice/MultiplePOs.htm
    Refer following Notes for more details,
    393431
    458692

  • Multitone generator with more inputs and with output to computer speakers

    I want to add several (perhaps 10)  harmonically related sinewave tones and output to the computer speakers or line out. Ideally would like to use the full audio range so 44100 Hz sample rate. I've managed to combine a couple of VIs and get something that works at lower sample rates but doesn't dynamically update if I change frequency or phases. And at higher sample rates it isn't a continuous sound. It just beeps, then waits, beeps then waits. I'm sure oters have tried to tackle this in the past but don't find much info. Currently using a Mac but could switch to a pc if needed. Guidance will be most graciously accepted.
    Solved!
    Go to Solution.
    Attachments:
    Dans Multitone Generator with amplitude and phase.vi ‏59 KB

    I found several things which together keep your VI from working the way you want. The VI attached works fine on my Mac.
    1. I configured the sound and the tone generator to use the same sampling info. Any other combination creates complications.
    2. I found out the hard way that the tone generator wants the frequncy to be an integer multiple of (sampling rate)/(# samples). This does not appear in the documentation (help file) but other combinations throw errors.
    3. Set the amplitude input (not Tone Amplitudes) on the Multitone Generator.vi to 1.00. This makes its output compatible with the Sound VIs. This is documented in the help but you have to read several places and put thepieces together.
    4. The reset input to Multitone Generator.vi must be true for it to respond to changes in the tone frequencies, amplitudes, or phases inputs. I just wired a true constant for now. Later this might be better handled by an event structure.
    5. Consider making the frequency, amplitude, and phase controls into arrays or one 2D array so that an arbitrary number of tones cna be used without modifying the program.
    6. Some kind of Wait may be required. Without it I occasionally received a Timeout error. Several options are in different cases of the Diagram Disable Structure. The Sound Output Wait will guarantee that the timeout does not occur but it also produces small gaps in the sound. The Wait (ms) works fairly well but it is a guess as to the optimum value for the Wait.  After all the changes I have madevene the no wait case seems to work.
    Lynn
    Attachments:
    Dans Multitone Generator with amplitude and phase.2.vi ‏38 KB

  • Fill fields with actual date / timestamp with button

    Hello,
    I did not find an answer for my following problem.
    I want to put a button my adobe form that fills automactically three fields with data from the PC which are:
    actual time (of the PC and of course timezone info), date and username, so the User has to press one button to fill all these data for convenience. 
    So I think it is necessary to program this in JavaScript as an "on-click" action. Since I'am not too much familiar with this, it would be great if someone can post a little sample coding for this (or has some other tipp).
    regards and happy xmas
    Jörg

    you must have target fields for your Date, Time and Username, for example you have a structure in your data view called "ZINFO" with the fields "EDATE", "ETIME","ENAME"
    in your layout you need a button where you click on
    in the click event you can fill your fields (formcalc)
    xfa.resolveNode("xfa.record.ZINFO.EDATE").value = Num2Date(Date(), "DD/MM/YYYY");  
    xfa.resolveNode("xfa.record.ZINFO.ETIME").value = Num2Time(Time(), "HH:MM:SS", "de_DE");
    so you always get time/date when clicking
    but how do you know who has opened the form?? did you realize some password protection??
    br norbert

  • Why should i buy a macbook pro while the i7 windows laptop comes with more features and with a lesser price??

    why should i buy a macbook pro while an i7 windows laptop comes with greater specs with less price???????
    i love mac but i need strong points for mac to convince my father!!!!

    osamawazarat wrote:
    why should i buy a macbook pro while an i7 windows laptop comes with greater specs with less price???????
    i love mac but i need strong points for mac to convince my father!!!!
    For me, presonall, becasue the Mac will run OS X, while the windows machine will run, well, Windows.  Seriously, whenever given the option, I greatly prefer to use OS X over windows without hesitation.  I buy Apple hardware because I prefer OS X to Windows and have since the OS X public beta.  Apple hardware is very good quality, but so are many Windows PC (Lenovo IMO makes some great hardware, if picking a Windows machine).
    I use windows at work because that's what they give me, but I'd not pick it if given the choice.

  • If I were to buy an ipad with retina display but did not purchase the ipad with the data plan with a carrier at the time would it be possible to add that feature later on or is it a certain ipad that goes only with that feature?

    Please answer

    Data plans for the iPad in every country I know of are month-to-month or pay-as-you go. No contract is necessary or in general even offered; you sign up and discontinue as you please.
    Regards.

Maybe you are looking for

  • Error when DBMS_LOB.FILEOPEN , why ?

    Hi.. I create a directory , example : ULLOA "create or replace directory ULLOA as 'c:\';" This path (c:\) are inside of the server.. But , when execute the block pl/sql l_bfile := bfilename( 'ULLOA', 'setup.txt' ); dbms_lob.fileopen( l_bfile ); Obtai

  • Sound level options for voice analysis

    I have two questions. I am analysing voice signals using GRAAS microphone, NI9234, cDAQ 9178 & labview 2011.   I am trying to produce a two dimensional graph of the signal with SPL (DB)(y-axis) versus frequency (x-axis).   I noticed that the SVT soun

  • Getting started - ORA-01031 deployment Error

    Hi, I am new to Oracle and Oracle Warehouse Builder and I am reading through the Book "Oracle Warehouse Builder 11g: Getting Started" I have reached the final chapter where I need to deploy and execute my project. In the book an External table is set

  • Budget  Setup By  Profit Centers

    Budget  Setup By  Profit Centers Actual Situation Our Customer working with Budget by Profit Centers Level. In this moment the Budget only can define a Level Account Partial Solution Theirs  can't create Budget Scenarios by Profits Center, but this i

  • Cannot connect to video with another user

    I recently updated my operating system to Snow Leopard, so I have iChat version 5.0.3 and I can't seem to video chat with another user who still has Tiger with iChat version 3.1.9. We have no problems chatting, but the video chat will not work. Any s