Copy query (SQ01) to new query with new infoset

Hi,
Not sure if this is correct forum.
Is there a way to copy existing query with an infoset to a new query using another created infoset?
If so, please explain how.
Kind regards

Hi,
If you want to copy a query for another infoset its not possible.
The copied query will work for that infoset only which you have been generated.
You need to make a new infoset and than create a new query for it.
Regrds,
Nikhil.

Similar Messages

  • Create/extend materials for new plant with new profit centers

    Hi.
    We have created a new plant and want to create/extend the materials from an existing plant to the new plant (with new profit center). Can this be done via MM17?
    Regards,
    Kjettern

    Hi Kjettern,
    To extend the existing material to a new Plant/Profit centre, pls follow the following steps: -
    1. Copy down the material number (i.e XYZ) you want to extend.
    2. Go to t-code MM01.
    3. Enter the material number (i.e. XYZ) you copied from (1) into the Material field and hit ENTER.
    4. You will get an information on the bottom that "the material type XXX and the industry sector YYY has been copied from master record".
    5. Pls note that Basic Data 1 & 2 is not changeable as the same set of material data will be used when a material is extended.
    6. Hit ENTER again. To change other details other than Basic Data 1 & 2, select the views that you want.
    7. You will be prompted to enter a Plant. Here you must enter the new Plant that you want to extend the material to and hit ENTER.
    8. You will get a confirmation stating that the material already existed and will be extended (to the desired Plant u entered in (7)).
    9. Ensure that all the data in all the important tabs are maintained, for the right Storage Location, Warehouse Num, Moving Average Price, Standard Price etc. before proceed further.
    10. Hit Save. You will get a msg that "Material XYZ created".
    Now you are able to use this material number in the new Plant you created.
    Hope this helps.
    Rgds.

  • Does Transfer EBS to new server with New specifications (Ram,Pross ,..)

    Does Transfer EBS with same release to new server with New specifications (Ram,pressoser ,..) need new licences ?

    Micel 811 wrote:
    Does Transfer EBS with same release to new server with New specifications (Ram,pressoser ,..) need new licences ?\does your license is CPU based?
    if its user based then No need
    please contact oracle sales as they are the best to answer your question .
    http://www.oracle.com/us/corporate/pricing/applications-price-list-070574.pdf
    ;) AppsMasti ;)
    Sharing is Caring

  • Creating new page with new parent tab

    Does this happen to anyone else? When I try to create a new page that will have a new parent tab and standard tab in a 2-level tab setup, it never seems to work right. I end up having to dele the new parent tab and standard tab I created while creating the new page. Then once the page is created, I go into Shared Components -> Tabs, and create a new Parent Tab and assign it to this new page. Seems like a crazy way to have to do it.
    I know this sounds crazy and it is hard to explain the issue, but anyone who has had this problem with creating a new page with new 2-level tabs will understand what I am talking about.
    Can anyone point me to an explanation on how this should be done? I know I must be missing something.
    Thanks,
    John

    I've recently had to muck around with the 2 level tabs aswell. There are some things making this rather difficult indeed.
    What i'd do when creating a new page you want to have under a new tab, but also with a new parent tab, is to create it with only a new STANDARD tab. Don't create a new parent tabset. All parent tabs are in the same tabset, and if you create a new tabset you'll effectively see only this new parent tab + tab on the page you created.
    So unless you want the page to be on an absolutely new set of tabs, you'll probably just want the page to be on a new top-level tab with under that a new standard tab. Like so:
    <NEW PARENT> | parent 1 | parent 3 | parent 4
    <NEW TAB> |
    To achiece this, you'll need a new standard tab set. You can create this when creating the page. The standard tab set is the set used for you lower level tabs, so obviously we do need a new one.
    As for the parent set which you can choose upon page creation, choose the already existing parent tab set. This set contains all your already existing parent tabs, and you wish to add one for display.
    When you finish creating the page and run it, you'll see that the standard (lower level) tab is there, and is set to active, but your parent tab is not there.
    Go to Shared Components > Tabs. Select the "Manage Tabs" tab there. You can notice your new set there, but notice the striped outline of it. This tab has no parent tab for it! And this is the problem with tab creation in 2-level tabs: you can make a new STANDARD tab and tabset, and define a parent tab set OR create a NEW tab set with tab. Both options fail us: what we want is a NEW parent tab in an existing parent tab set!
    So to fix our problem, from the manage tabs tab click on "Manage Parent Tabs", found on the right hand side of the screen in the region "Parent Tab Tasks".
    This'll bring you to a magical new tab within the tab components. It's a mystery to me why it has to be hidden like this, and makes it a real pain to use. On this page you can manage your parent tabs (the only place to do so actually...). Here you'll see there is no parent tab for your page (again), but here you can create a new parent tab from the right hand menu "Parent Tab Tasks" > "Create New Parent Tab". Enter a label, and choose your existing parent tab set as parent tab set. Don't create a new set. As for target, refer to your new page again.
    However, we are not done yet. You are returned to the "Parent Tab Management" page. You new parent tab will be shown there, but when you run your page, the parent tab will not be set active yet.
    To fix that, go back to the "Parent Tab Management". Select your parent tab so you go to it's details. Firstly, give it a new sequence number, otherwise it'll be shared with one (the parent tabs are created with sequence nr 10, so most probably on a shared position with your first parent tab).
    Then turn your eyes on the "Current on Standard TabSet" list item. It'll have an option selected, but take a good look: it'll be the same name as your parent tab. From the options, select your new Standard tab set (the lower level set) which holds your new page. Then apply your changes and run your page: both your parent and standard tab will be there and highlighted. Yay!

  • Cant use purchased items on new computer with new email address

    i bought a new laptop then changed isp from aol to bt then backed up my itunes from old laptop to disc ,tried to put music from discs onto new laptop with new email address and my purchased items are on itunes but cant use them as a message appears saying that i cant play music due to computer not being autherised but when i go to autherise computer in itunes the message your computer is autherised appears ......... please help

    I have almost the exact same problem. I have a bunch of music, ringtones, TV shows, movies... stuff that I purchased that I can't authorize. All of these items were purchased with the same account I'm still using now. The difference is that I've changed my email address. I don't have the original email address from when I made those purchases and I'm unable to authorize them. I can see that when I view info on one of these purchases the "Account Name: " has my old email address... not my iTunes or Apple account. So, if I'm authorizing my iTunes using my new email none of these older purchases will work.
    I'm really curious how to fix this. I've got quite a few purchases from years back that I'd like access to, but I can't authorize using my new email/iTunes or my old email (the one used for the original purchases).
    Take a look at the info and tell me if you see "Account Name:" on one of your purchases. And is that associated to your old email address? There has to be a way to fix this or 'transfer' older purchases, especially if it's all under the same real 'account'.

  • Using new trackpad with new iMac

    Using new trackpad with new iMac, but can't seem to get the "touch function" to work. I still have to press firmly and click on the trackpad to get response. The videos show "touch" while I  "firm press and click."  Checked speed, cleaned it, and reset. No luck?? Ideas? Even took back to Best Buy and seemed to work with their display...

    Assuming you are talking about tap to click, you would need to enable it. It is disabled by default. Go to settings and choose trackpad settings. Navigate to "Point and Click" tab and enable "Tap to Click".

  • Migrating old information to new laptop with new drive

    I tried searching for this but also wanted a specific answer.
    Here's what happened: my old Macbook (first version, from 2006) failed, but I had all its information backed up on to a Time Machine drive. The drive was a firewire drive. When my 2006-era Macbook failed, I bought a new one. However, the new laptop did not have a firewire port. I used the laptop for a few months until I could afford a new, USB external drive. Now, I've got the new computer (with some new information but no firewire port), my old firewire hard drive -- with info, and a new USB hard drive, that is completely blank.
    What I intended to do was find a Mac at my university's library with both a USB and firewire drive and copy all the information to my new drive from the old one. From that point, can I just use migration assistant to merge my new Macbook and the old Macbook's information? Will it make more sense to load any new documents on my Macbook onto a flash drive, wipe its hard drive, and restore from the old Time Machine backup then add the information from the flash drive?
    I don't want to have two separate accounts, either.
    Thanks for your help with this annoying dilemma! I miss all my old music, photos, and videos...

    plourens wrote:
    Thanks for the information. Instead of using a flash drive, would it work for me to partition the drive and place any new information on the second partition of my external hard drive?
    Sure (if there's room). See #3 in [Formatting, Partitioning, Verifying, and Repairing Disks|http://web.me.com/pondini/AppleTips/DU.html] (or use the link in *User Tips* at the top of the +Using Snow Leopard+ forum).
    If there isn't enough room to make the partition, but enough total space, you can put the files in the same partition as your backups.
    You must be careful, though, as that isn't generally a good idea. You must leave enough room for Time Machine to operate; it doesn't need a lot, perhaps a hundred MBs, but if you fill it past that, your backups will crash before they can start deleting old backups to make room for new ones.
    Similarly, do not add anything that way while a backup is running.
    And, be very careful not to move, change, or delete anything in your backups via the Finder, as that can corrupt them.

  • Have new computer with new Windows 7, Palm m105, and 4.1.4 palm desktop, trying to get it to synch correctly.

    With new computer I have had to add a USB serial converter to the hot synch cradle. I spent most of the day trying to get the new serial converter to be recognized so that a synch could be performed. It now will synch when I put the palm in the cradle. After installing 4.1.4, In order to get everything to work, I took a recent historicalbackup version of my palmOne program file folder in the Program files, and replaced the entire folder with my historical version. When I opened the desktop software, all my data appears to be there, except that many of my previous entries in the Calendar are now three hours earlier than they used to be and some are moved to an adjacent day. My palm still has the correct information, but a custom synch to overwrite the desktop data with the handheld data produces no change, even though it went through a long synching process. I also have an older computer that has a complete backup copy of everything and the palm software in that one is working properly, so what should I do to correct the data in my Calendar on my new laptop?
    Post relates to: Palm m105
    This question was solved.
    View Solution.

    It looks like you will need to "clean" uninstall Palm desktop and re-install.
    Here are the clean uninstall instructions for XP, see if the palm folders are in the same location. We have not received any info. on windows 7 and how Palm desktop syncs with this version.
    You should first make a copy of your data to have just in case something
    happens. You can find your data files by going to C:\Program Files\Palm or
    Palm One. Highlight your Palm Desktop username and right click and copy.
    Then go to your PC desktop, right click on a blank spot and select paste.
    If this is the first time you are installing Palm desktop and encountering a problem, skip the previous step.
    For Palm desktop 6.2, look in the following location for the folders and files, my documents, PalmOS desktop. You will find the username folder in this location.
    Now you want to uninstall Palm Desktop and remove everything that has to do
    with Palm Desktop from your computer. Like the above folder, delete the Palm folder. Once this is done, you will need to delete some registry keys
    from your PC Operating System registry.
    Word of warning, going here and deleting the wrong thing can cause your PC
    to not start up, crashing and deletion of programs and data. If you feel
    you are unsure of yourself, see if you have a friend that can help you or a
    PC technician that you can pay to help you. This will show them everything
    they need to delete. To retain your current Registry settings, we need to do a backup of the Registry.
    On the PC, go to start and run type "regedit" without quotes
    Highlight MY COMPUTER, go to File --> export. Should pop up with a Save As
    box. Current location is fine should be in My Documents or you can change to a location you will remember. In the file name box, type "Regbackup[todaysdate]" i.e. Regbackup07072008. Next, the hard part.
    The easiest way to make sure your working with the correct key, highlight the key i.e. palm quick install, and press delete on your keyboard. It will ask you, are
    you sure. Say yes. Do the same thing for all keys below.
    If you make a mistake, stop what you are doing. And call a PC technician.
    BUT do not turn off your computer.
    The reg keys are as follows (Note: some of theses reg keys will not be here
    but if they are delete them)
    * HKEY_CURRENT_USER\Software\U.S. Robotics\Palm Quick Install
    * HKEY_CURRENT_USER\Software\U.S. Robotics\PalmOne File Transfer
    * HKEY_CURRENT_USER\Software\U.S. Robotics\Pilot Desktop
    * HKEY_CURRENT_USER\Software\Palm
    * HKEY_CURRENT_USER\Software\Palm, Inc.
    * HKEY_CURRENT_USER\Software\PalmDesktopAutorun
    * HKEY_CURRENT_USER\Software\palmOne
    * HKEY_CURRENT_USER\Software\PalmSource
    * HKEY_LOCAL_MACHINE\Software\PalmSource or anything else that says palm
    Next reboot your computer
    Then reinstall your Palm desktop from the CD and do a hotsync. If it asks
    you for a username, enter the name that is on your device in the upper right corner of the hotsync screen and sync.

  • My computor crashed. All my songs in my itunes library were lost. After I restarted my computor, I started a new library with new itune songs. When I tried to download them on my iphone, itunes wanted to get rid of my old songs on my iphone. What can I do

    My computor crashed. I lost my music from my itune library. After I restarted my computor to work again, I started a new itune library with new songs. When I tried to download my new songs to my iphone, itunes said it had to erase all my old songs in order to install the new songs. Is there a way to install new songs without getting rid of my old songs?

    That is the way the iphone works.
    You need to copy everything from your backup copy of your computer.

  • HT1473 my computer crashed and i have a new computer with new itunes, i am trying to get my music from my old iphone 4 into the library but as soon as i unplug the phone it no longer appears in the library

    my computer crashed so i have a new itunes and i am trying to put my music from my old phone into itunes, it doesnt transfer only shows up when my phone is plugged in?

    The iphone is not a backup/storage device.  The sync is one way - computer to iphone.  The exception is itunes purchases:  File>Devices>Transfer Purchases
    You shouldcopy everything from your backup copy of your old computer, to your new one.  This one of the main reasons it has laways been very basic to always maintain a abckup copy of your computer.

  • My computer was stolen a few months ago i now have a new laptop with new id but don't know how to retrieve my itunes account for i forgot my old id. How can i get to my account?

    My computer was stolen several months ago and I now have a new laptop with a new id but I do not know how to retrieve my itunes account for i have forgotten my password and user id. I need a way to get into my old account.

    http://iforgot.apple.com
    Regards.

  • Removing rows and inserting new rows with new data in JTAble!!! (Plz. help)

    I have a problem, The scenario is that when I click any folder that si in my JTable's first row, the table is update by removing all the rows and showing only the contents of my selected folder. Right now it's not removing the rows and instead throwing exceptions. The code is attached. The methods to look are upDateTabel(...) and clearTableData(....), after clearing all my rows then I proceed on adding my data to the Jtable and inserting rows but it's not being done. May be I have a problem in my DefaultTableModel class. Please see the code below what I am doing wrong and how should I do it. Any help is appreciated.
    Thanks
    import javax.swing.*;
    import javax.swing.event.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.table.*;
    import javax.swing.border.*;
    import java.io.*;
    import java.text.SimpleDateFormat;
    import java.util.*;
    public class SimpleTable extends JPanel{
         /** Formats the date */
         protected SimpleDateFormat           formatter;
    /** variable to hold the date and time in a raw form for the directory*/
    protected long                          dateDirectory;
    /** holds the readable form converted date for the directories*/
    protected String                     dirDate;
    /** holds the readable form converted date for the files*/
    protected String                     fileDate;
    /** variable to hold the date and time in a raw form for the file*/
    protected long                          dateFile;
    /** holds the length of the file in bytes */
    protected long                         totalLen;
    /** convert the length to the wrapper class */
    protected Long                         longe;
    /** Vector to hold the sub directories */
    protected Vector                     subDir;
    /** holds the name of the selected directory */
    protected String                    dirNameHold;
    /** converting vector to an Array and store the values in this */
    protected File                     directoryArray[];
    /** hashtable to store the key-value pair */
    protected static Hashtable hashTable = new Hashtable();
    /** refer to the TableModel that is the default*/
    protected MyTableModel               tableModel;
    /** stores the path of the selected file */
    protected static String               fullPath;
    /** stores the currently selected file */
    protected static File selectedFilename;
    /** stores the extension of the selected file */
    protected static String           extension;
    protected int COLUMN_COUNT = 4;
         protected Vector data = new Vector( 0, 1 );
         protected final JTable table;
    /** holds the names of the columns */
    protected final String columnNames[] = {"Name", "Size", "Type", "Modified"};
    public SimpleTable(File directoryArray[])
              this.setLayout(new BorderLayout());
              this.setBorder( BorderFactory.createEmptyBorder( 0, 0, 0, 0 ) );
              (SimpleTable.hashTable).clear();
              formatter = new SimpleDateFormat("mm/dd/yyyy hh:mm aaa");
              for(int k = 0; k < directoryArray.length; k++)
                   if(directoryArray[k].isDirectory())
                        dateDirectory = directoryArray[k].lastModified();
                        dirDate = formatter.format(new java.util.Date(dateDirectory));
                        data.addElement( new MyObj( directoryArray[k].getName(), "", "File Folder", "" + dirDate ) );
                        (SimpleTable.hashTable).put(directoryArray[k].getName(), directoryArray[k]);                    
                   else if(directoryArray[k].isFile())
                        dateDirectory = directoryArray[k].lastModified();
                        fileDate = formatter.format(new java.util.Date(dateDirectory));
                        totalLen = directoryArray[k].length();
                        longe = new Long(totalLen);
                        data.addElement( new MyObj( directoryArray[k].getName(), longe + " Bytes", "", "" + fileDate ) );
                        (SimpleTable.hashTable).put(directoryArray[k].getName(), directoryArray[k]);
    tableModel = new MyTableModel();
              table = new JTable( tableModel );
              table.getTableHeader().setReorderingAllowed(false);
              table.setRowSelectionAllowed(false);
              table.setBorder( BorderFactory.createEmptyBorder( 0, 0, 0, 0 ) );
              table.setShowHorizontalLines(false);
              table.setShowVerticalLines(false);
              table.addMouseListener(new MouseAdapter()
    public void mouseReleased(MouseEvent e)
         Object eventTarget = e.getSource();
                        if( eventTarget == table )
                             upDateTable(table);
                             table.tableChanged( new javax.swing.event.TableModelEvent(tableModel) ) ;
              DefaultTableCellRenderer D_headerRenderer = (DefaultTableCellRenderer ) table.getTableHeader().getDefaultRenderer();
              table.getColumnModel().getColumn(0).setHeaderRenderer(D_headerRenderer );
              ((DefaultTableCellRenderer)D_headerRenderer).setToolTipText("File and Folder in the Current Folder");
    //Create the scroll pane and add the table to it.
    JScrollPane scrollPane = new JScrollPane(table);
    //Add the scroll pane to this window.
    this.add(scrollPane, BorderLayout.CENTER);
    * Searches the Hashtable and returns the path of the folder or the value.
    public File findPath(String value)
         return (File)((SimpleTable.hashTable).get(value));
    * This clears the previous data in the JTable
    public void clearTableData(JTable table)
         for(int row = 0; row < table.getRowCount() ; row++)
                   //for (int col = 0; col < table.getColumnCount() ; col++)
                        tableModel.deleteSelections( row );
              tableModel.fireTableStructureChanged();
              tableModel.fireTableRowsDeleted(0,table.getRowCount());
              //table.getModel().fireTableChanged(new TableModelEvent(table.getModel()));
    private void upDateTable(JTable table)
    if((table.getSelectedColumn() == 0) && ((table.getColumnName(0)).equals(columnNames[0])))
         dirNameHold =(String) table.getValueAt(table.getSelectedRow(),table.getSelectedColumn());
                   File argument = findPath(dirNameHold);
                   if(argument.isFile())
                        CMRDialog.fileNameTextField.setText(argument.getName());
                        try
                             fullPath = argument.getCanonicalPath();                          
                             selectedFilename = argument.getCanonicalFile();                          
    CMRDialog.filtersComboBox.removeAllItems();
                             extension = fullPath.substring(fullPath.lastIndexOf('.'));
                             CMRDialog.filtersComboBox.addItem("( " + extension + " )" + " File");
                        catch(IOException e)
                             System.out.println("THE ERROR IS " + e);
                        return;
                   else if(argument.isDirectory())
                        String path = argument.getName();
                             //find the system dependent file separator
                             //String fileSeparator = System.getProperty("file.separator");
                        CMRDialog.driveComboBox.addItem(" " + path);
              subDir = Search.subDirs(argument);
              /**TBD:- needs a method to convert the vector to an array and return the array */
              directoryArray = new File[subDir.size()];
                   int indexCount = 0;
                   /** TBD:- This is inefficient way of converting a vector to an array */               
                   Iterator e = subDir.iterator();               
                   while( e.hasNext() )
                        directoryArray[indexCount] = (File)e.next();
                        indexCount++;
              /** now calls this method and clears the previous data */
              clearTableData(table);     
                   (SimpleTable.hashTable).clear();
                   //data = new Object[this.getRowTotal(directoryArray)][this.getColumnTotal()];
                   formatter = new SimpleDateFormat("mm/dd/yyyy hh:mm aaa");
                   for(int k = 0; k < directoryArray.length; k++)
                        if(directoryArray[k].isDirectory())
                             dateDirectory = directoryArray[k].lastModified();
                             dirDate = formatter.format(new java.util.Date(dateDirectory));
                             data.addElement( new MyObj( directoryArray[k].getName(), "", "File Folder", "" + dirDate ) );
                             (SimpleTable.hashTable).put(directoryArray[k].getName(), directoryArray[k]);                    
                        else if(directoryArray[k].isFile())
                             dateDirectory = directoryArray[k].lastModified();
                             fileDate = formatter.format(new java.util.Date(dateDirectory));
                             totalLen = directoryArray[k].length();
                             longe = new Long(totalLen);
                             data.addElement( new MyObj( directoryArray[k].getName(), longe + " Bytes", "", "" + fileDate ) );
                             (SimpleTable.hashTable).put(directoryArray[k].getName(), directoryArray[k]);
              // tableModel.fireTableDataChanged();          
              // tableModel.fireTableRowsInserted(0,1);
              table.revalidate();
              table.validate();               
    class MyTableModel extends DefaultTableModel
              int totalRows;
              int totalCols;
              public MyTableModel()
                   super();
                   setColumnIdentifiers (columnNames);
                   this.totalRows = data.size();
                   this.totalCols = columnNames.length;
              // this will return the row count of your table
              public int getRowCount()
                   return totalRows;
              // this return the column count of your table
              public int getColumnCount()
                   return totalCols;
              // this return the data for each cell in your table
              public Object getValueAt(int row, int col)
                   MyObj obj = (MyObj)data.elementAt( row );
                   if( obj != null )
                        if( col == 0 ) return( obj.first );
                        else if( col == 1 ) return( obj.last );
                        else if( col == 2 ) return( obj.third );
                        else if( col == 3 ) return( obj.fourth );
                        else return( "" );
                   return "";
              // if you want your table to be editable then return true
              public boolean isCellEditable(int row, int col)
                   return false;
              // if your table is editable edit the data vector here and
              // call table.tableChanged(...)
              public void setValueAt(Object value, int row, int col)
              protected void deleteSelections (int rows)
                   try
                        removeRow(rows);
                   catch(ArrayIndexOutOfBoundsException e)
                        System.out.println("The error in the row index " + rows);
                   fireTableDataChanged() ;
    class MyObj
              String first;
              String last;
              String third;
              String fourth;
              public MyObj( String f, String l, String t, String fo )
                   this.first = f;
                   this.last = l;
                   this.third = t;
                   this.fourth = fo;
    #####################################

    The following code works fine but it doesn't show me the new updated date in my JTable. I tried to print the values that I am getting and it does give the values on the prompt but doesn't show me on the JTable only first two are shown and the rest of the table is filled with the same values. I don't know what's going on and am tired of this TableModel thing so pla. take a time to give me some suggestions. Thanks
    import javax.swing.*;
    import javax.swing.event.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.table.*;
    import javax.swing.border.*;
    import java.io.*;
    import java.text.SimpleDateFormat;
    import java.util.*;
    public class SimpleTable extends JPanel {
         /** Formats the date */
         protected SimpleDateFormat           formatter;
    /** two-dimensional array to hold the information for each column */
    protected Object                     data[][];
    /** variable to hold the date and time in a raw form for the directory*/
    protected long                          dateDirectory;
    /** holds the readable form converted date for the directories*/
    protected String                     dirDate;
    /** holds the readable form converted date for the files*/
    protected String                     fileDate;
    /** variable to hold the date and time in a raw form for the file*/
    protected long                          dateFile;
    /** holds the length of the file in bytes */
    protected long                         totalLen;
    /** convert the length to the wrapper class */
    protected Long                         longe;
    /** Vector to hold the sub directories */
    protected Vector                     subDir;
    /** holds the name of the selected directory */
    protected String                    dirNameHold;
    /** converting vector to an Array and store the values in this */
    protected File                     directoryArray[];
    /** hashtable to store the key-value pair */
    protected static Hashtable hashTable = new Hashtable();
    /** refer to the TableModel that is the default*/
    protected DefaultTableModel      model;
    /** stores the path of the selected file */
    protected static String               fullPath;
    /** stores the currently selected file */
    protected static File selectedFilename;
    /** stores the extension of the selected file */
    protected static String           extension;
    protected Vector                     m = new Vector(0,1);
    /** holds the names of the columns */
    protected final String columnNames[] = {"Name", "Size", "Type", "Modified"};
    public SimpleTable(File directoryArray[])
              this.setLayout(new BorderLayout());
              this.setBorder( BorderFactory.createEmptyBorder( 0, 0, 0, 0 ) );
              (SimpleTable.hashTable).clear();
              data = new Object[this.getRowTotal(directoryArray)][this.getColumnTotal()];
              formatter = new SimpleDateFormat("mm/dd/yyyy hh:mm aaa");
              for(int k = 0; k < directoryArray.length; k++)
                   if(directoryArray[k].isDirectory())
                        data[k][0] = directoryArray[k].getName();
                        data[k][2] = "File Folder";
                        dateDirectory = directoryArray[k].lastModified();
                        dirDate = formatter.format(new java.util.Date(dateDirectory));
                        data[k][3] = dirDate;
                        (SimpleTable.hashTable).put(directoryArray[k].getName(), directoryArray[k]);                    
                   else if(directoryArray[k].isFile())
                        data[k][0] = directoryArray[k].getName();
                        totalLen = directoryArray[k].length();
                        longe = new Long(totalLen);
                        data[k][1] = longe + " Bytes";
                        dateFile = directoryArray[k].lastModified();
                        fileDate = formatter.format(new java.util.Date(dateFile));
                        data[k][3] = fileDate;
                        (SimpleTable.hashTable).put(directoryArray[k].getName(), directoryArray[k]);
    model = new DefaultTableModel();
    model.addTableModelListener( new TableModelListener(){
              public void tableChanged( javax.swing.event.TableModelEvent e )
                   System.out.println("************ I am inside the table changed method ********" );
              final JTable table = new JTable(model);
              table.getTableHeader().setReorderingAllowed(false);
              table.setRowSelectionAllowed(false);
              table.setBorder( BorderFactory.createEmptyBorder( 0, 0, 0, 0 ) );
              table.setShowHorizontalLines(false);
              table.setShowVerticalLines(false);
              table.addMouseListener(new MouseAdapter()
    /* public void mousePressed(MouseEvent e)
    //System.out.println("The clicked component is " + table.rowAtPoint(e.getPoint()) + "AND the number of clicks is " + e.getClickCount());
    /* if(e.getClickCount() >= 2 &&
    (table.getSelectedColumn() == 0) &&
    ((table.getColumnName(0)).equals(columnNames[0])))
         //System.out.println("The clicked component is " + table.rowAtPoint(e.getPoint()) + "AND the number of clicks is " + e.getClickCount());
         upDateTable(table);
    public void mouseReleased(MouseEvent e)
    //System.out.println("The clicked component is " + table.rowAtPoint(e.getPoint()) + "AND the number of clicks is " + e.getClickCount());
    /* if(e.getClickCount() >= 2 &&
    (table.getSelectedColumn() == 0) &&
    ((table.getColumnName(0)).equals(columnNames[0]))) */
         //System.out.println("The clicked component is " + table.rowAtPoint(e.getPoint()) + "AND the number of clicks is " + e.getClickCount());
         upDateTable(table);
              /** set the columns */
              for(int c = 0; c < columnNames.length; c++)
                   model.addColumn(columnNames[c]);
              /** set the rows */
              for(int r = 0; r < data.length; r++)
                   model.addRow(data[r]);
              DefaultTableCellRenderer D_headerRenderer = (DefaultTableCellRenderer ) table.getTableHeader().getDefaultRenderer();
              table.getColumnModel().getColumn(0).setHeaderRenderer(D_headerRenderer );
              ((DefaultTableCellRenderer)D_headerRenderer).setToolTipText("File and Folder in the Current Folder");
    //Create the scroll pane and add the table to it.
    JScrollPane scrollPane = new JScrollPane(table);
    //Add the scroll pane to this window.
    this.add(scrollPane, BorderLayout.CENTER);
    * Returns the number of columns
    public int getColumnTotal()
         return columnNames.length;
    * Returns the number of rows
    public int getRowTotal(Object directoryArray[])
         return directoryArray.length;
    private void upDateTable(JTable table)
    if((table.getSelectedColumn() == 0) && ((table.getColumnName(0)).equals(columnNames[0])))
         dirNameHold =(String) table.getValueAt(table.getSelectedRow(),table.getSelectedColumn());
                   File argument = findPath(dirNameHold);
                   if(argument.isFile())
                        CMRDialog.fileNameTextField.setText(argument.getName());
                        try
                             fullPath = argument.getCanonicalPath();                          
                             selectedFilename = argument.getCanonicalFile();                          
    CMRDialog.filtersComboBox.removeAllItems();
                             extension = fullPath.substring(fullPath.lastIndexOf('.'));
                             CMRDialog.filtersComboBox.addItem("( " + extension + " )" + " File");
                        catch(IOException e)
                             System.out.println("THE ERROR IS " + e);
                        return;
                   else if(argument.isDirectory())
                        String path = argument.getName();
                             //find the system dependent file separator
                             //String fileSeparator = System.getProperty("file.separator");
                        CMRDialog.driveComboBox.addItem(" " + path);
              subDir = Search.subDirs(argument);
              /**TBD:- needs a method to convert the vector to an array and return the array */
              directoryArray = new File[subDir.size()];
                   int indexCount = 0;
                   /** TBD:- This is inefficient way of converting a vector to an array */               
                   Iterator e = subDir.iterator();               
                   while( e.hasNext() )
                        directoryArray[indexCount] = (File)e.next();
                        indexCount++;
              /** now calls this method and clears the previous data */
              clearTableData(table);     
                   (SimpleTable.hashTable).clear();
                   data = new Object[this.getRowTotal(directoryArray)][this.getColumnTotal()];
                   formatter = new SimpleDateFormat("mm/dd/yyyy hh:mm aaa");
                   m.clear();
                   data = null;
                   data = new Object[this.getRowTotal(directoryArray)][this.getColumnTotal()];
                   for(int k = 0; k < directoryArray.length; k++)
                        if(directoryArray[k].isDirectory())
                        System.out.println("Inside the if part");
                             data[k][0] = directoryArray[k].getName();
                             table.setValueAt(directoryArray[k].getName(),k,0);
                             //model.fireTableCellUpdated(k,0);
                             data[k][2] = "File Folder";
                             table.setValueAt("File Folder",k,2);
                             //model.fireTableCellUpdated(k,2);
                             dateDirectory = directoryArray[k].lastModified();
                             dirDate = formatter.format(new java.util.Date(dateDirectory));
                             data[k][3] = dirDate;
                             table.setValueAt(dirDate,k,3);
                             //model.fireTableCellUpdated(k,3);
                             (SimpleTable.hashTable).put(directoryArray[k].getName(), directoryArray[k]);
                             m.add(data);
                             model.addRow(m);
                             model.fireTableDataChanged();                              
                        else if(directoryArray[k].isFile())
                   System.out.println("******* Inside the else part *******");
                             data[k][0] = directoryArray[k].getName();
                   System.out.println("The Name is == " + data[k][0]);
                             table.setValueAt(directoryArray[k].getName(),k,0);
                   System.out.println("The table cell value of the name is == " + table.getValueAt(k,0));
                             //model.fireTableCellUpdated(k,0);
                             totalLen = directoryArray[k].length();
                             longe = new Long(totalLen);
                             data[k][1] = longe + " Bytes";
                   System.out.println("The length == " + data[k][1]);
                             table.setValueAt(longe + " Bytes",k,1);
                   System.out.println("The table cell value of the length is == " + table.getValueAt(k,1));
                             //model.fireTableCellUpdated(k,0);
                             dateFile = directoryArray[k].lastModified();
                             fileDate = formatter.format(new java.util.Date(dateFile));
                             data[k][3] = fileDate;
                   System.out.println("The modified date == " + data[k][3]);
                             table.setValueAt(fileDate,k,3);
                   System.out.println("The table cell value of the name is == " + table.getValueAt(k,3));
                             //model.fireTableCellUpdated(k,0);
                             (SimpleTable.hashTable).put(directoryArray[k].getName(), directoryArray[k]);                    }
                             m.add(data);
                             model.addRow(m);
                             model.fireTableDataChanged();     
              // model.fireTableDataChanged();          
              // model.fireTableRowsInserted(0,1);
              table.revalidate();
              table.validate();               
         else
    * Searches the Hashtable and returns the path of the folder or the value.
    public File findPath(String value)
         return (File)((SimpleTable.hashTable).get(value));
    * This clears the previous data in the JTable
    public void clearTableData(JTable table)
         for(int row = 0; row < table.getRowCount() ; row++)
                   for (int col = 0; col < table.getColumnCount() ; col++)
                        table.setValueAt(null, row , col);
              model.fireTableStructureChanged();
    ###

  • Creating New db(with new name) with the old db backup sql server 2008

    Friends..
    version: Sql Server 2008
    I have a database in a name college1 (more than 200 tables and view etc...)
    i want to create a new db with all the structures including the data of the above db college1 with a new name college2
    so...i finished the step 1 successfully.. what are the other steps i have to do...like validating the invalid objects. etc....
    Step 1:
    RESTORE DATABASE college2 FROM DISK = 'D:\DailyDBbackup\college1.bak'
      WITH replace,
      move 'college2 ' TO 'D:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\DATA\college2 .mdf',
      move  'college2 _log' TO 'D:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\DATA\college2 _log.ldf';
    step 2: ?
    Step 3: ?
    thanks...

    but...when i type
    use college1
    select * from (it will display all tables under the above db)
    but when i do..
    use college2
    select * from (only system tables are displaying..)
    Did restore completed successfully ? If yes Expand database , can you see tables in the new database you restored ?. Sometimes when you type incorrect word which does not matches anything you wont get help from intellicense you should not be worried about this
    if tables are there in new database college 2
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it
    My Technet Wiki Article
    MVP

  • Can create new cache with new cache config xml to existing cache server?

    Hi,
    I have a question regarding coherence cache.
    currently there is coherence cache server running with its own cache config file.
    Can I create another cache with new cache config file?
    If so, do I need add my own cache config file and pof file to the server?
    so during cache server start up, it can load cache config and pof config file?
    Thanks for the help.
    Regards
    Julia

    Yes, when you want to load your own cache configuration you can use something like
    export CLASSPATH=coherence.jar
    java -Xms512m -Xmx512m -Dtangosol.coherence.cacheconfig=my-cache-config.xml com.tangosol.net.DefaultCacheServerby using the system parameter tangosol.coherence.cacheconfig you can add your own cache configuration. Note that
    the POF configuration is loaded when you are referring to it in your cache configuration.

  • How to install a new ipod with new serial number

    I have recieved a new ipod with a new serial number. i lost my old cd which installs the ipod onto the comp with the new serial number ect. and ofcourse ints not enough to just have the new ipod updater and itunes. HOW do i install the ipod? anybody? how do i get that program?
    Thanx

    good lord ... the 0x80040707 can sometimes be
    caused by uninstalling software from a different user
    account from which it was originally installed, or
    installing a higher version of the software in a
    different user account. (haven't seen a report
    strongly suggesting this was going on for a while
    with an ipod updater install, but it's been reported
    every now and then.)
    Just so you know, nothing was done with the original installation, on the original user's account (let's call it UserA. My account, UserB was already in existence when all the software was originally installed to the root directory in C:\programs. Both accounts are administrators. This is getting so frustrating that I think I'll bring my external drive that has all the stuff I want to put onto the Ipod, do it in the office, and that will be that!
      Windows XP Pro  

  • Restore on new server with new DB_NAME/SID?

    My goal is to restore database with the RMAN backup on a server that has no connectivity to the production database (I don’t want to use duplicate command).
    I restore a database from RMAN using a same DB_NAME/SID and everything was ok.
    -     restore spfile
    -     restore controlfile
    -     restore database
    -     recover database
    -     open with reset logs
    Now I want to restore database but with different DB_NAME/SID (My production database is PROD and I want to restore this PROD RMAN backup on new server and this new database I want to be called DEV).
    How to restore database with new DB_NAME/SID?
    Oracle 10g, Windows Server 2003
    Thanks in advance!

    user9106065 wrote:
    My goal is to restore database with the RMAN backup on a server that has no connectivity to the production database (I don’t want to use duplicate command).
    I restore a database from RMAN using a same DB_NAME/SID and everything was ok.
    -     restore spfile
    -     restore controlfile
    -     restore database
    -     recover database
    -     open with reset logs
    Now I want to restore database but with different DB_NAME/SID (My production database is PROD and I want to restore this PROD RMAN backup on new server and this new database I want to be called DEV).
    How to restore database with new DB_NAME/SID?
    Oracle 10g, Windows Server 2003
    Thanks in advance!You can use NID command
    Run NID and you can see the options to run
    or see How to Change the DBID, DBNAME Using NID Utility in version 10GgR2 onwards [ID 863800.1]
    Cheers

Maybe you are looking for