Problem with jtree selection

Hi all,
I've got a JTree that represents a sort of data that I'm going to change dynamically in my application. I'd like to reset the selection of the user to the leaf she has selected before the change to the tree structure.
First of all my tree uses DefaultMutableTreeNode to build each node, and each DefaultMutableTreeNode contains a SingleKeyValue object, that is a key-value object (two strings) and that has an hashcode defined as follows:
public class SingleKeyValue extends BaseKeyValue{
      * The key of the database object.
     protected String key = null;
      * The description of this object.
     protected String value = null;
     public int hashCode() {
          return this.key.hashCode();
     I hope the hashcode can help me finding the right object even when its value changes (but the key is the same). The construction of the tree is the following:
DefaultMutableTreeNode root = new DefaultMutableTreeNode("The root");
// iterate and build each node
SingleKeyValue object = new SingleKeyValue("key","value");
DefaultMutableTreeNode node = new DefaultMutableTreeNode(object);
root.add(node);
DefaultTreeModel model = new DefaultTreeModel(root);
JTree  tree = new JTree(model);             
            so the tree is associated to a DefaultTreeModel. Then, when I need to change something in the tree I rebuild the tree and all leafs (with the SingleKeyValues) and rebuild the model:
          TreeModel treeModel = this.myTree.getModel();
          TreeSelectionModel selectionModel = this.myTree.getSelectionModel();
          DefaultTreeModel defaultTreeModel = null;
          DefaultTreeSelectionModel defaultTreeSelectionModel = null;
          TreePath selectedPath = null;
          TreeNode root = null;
          Logger.info("SimpleTreePanel.refreshDatabaseView: treemodel "+treeModel + " selectionModel " + selectionModel);
          if( treeModel != null && treeModel instanceof DefaultTreeModel ) {
               defaultTreeModel = (DefaultTreeModel) treeModel;
               root = this.getRoot();
               // get the selection
               if( selectionModel != null && selectionModel instanceof DefaultTreeSelectionModel ){
                    defaultTreeSelectionModel = (DefaultTreeSelectionModel) selectionModel;
                    selectedPath = defaultTreeSelectionModel.getSelectionPath();
                    Logger.warn("Selection path of the tree: "+selectedPath);
               // rebuild the tree
               defaultTreeModel.setRoot(root);
               // set the selected element
               defaultTreeSelectionModel.setSelectionPath(selectedPath);The problem is that after the above code the tree is all closed, no leaf are selected. I guess the problem is with the SingleKeyValueObject because I've tried the default model and it works with, for example, simple strings. Any idea about?
Thanks,
Luca

Here's a complete test program that creates a few SingleKeyValue objetcs (objects with a key and a description) and that then places them into a JTree using the DefaultMutableTreeNode. After that, the selection of user is took and one node is changed, but while the selection is working, the reload/refresh of the tree is not.
Any idea about how to work on it?
public class SingleKeyValue extends BaseKeyValue{
      * The key of the database object.
     protected String key = null;
      * The description of this object.
     protected String value = null;
     // constants related to the type of the table this object refers to
     public static final String COMPETENCE = "competenza";
     public static final String FAMILY            = "famiglia_competenza";
     public static final String ROLE              = "ruolo";
     public static final String PROVINCE      = "provincia";
     public static final String KNOWLEDGE  = "titolo_studio";
     public final static String OBJECTIVE      = "obiettivo";
     public final static String PERSON         = "persona";
     public SingleKeyValue( String key, String value, String table){
          super();
          this.key = key;
          this.value = value;
          this.SQLTable = table;
      * @return the key
     public final String getKey() {
          return key;
      * @param key the key to set
     public final void setKey(String key) {
          this.key = key;
      * @return the value
     public final String getValue() {
          return value;
      * @param value the value to set
     public final void setValue(String value) {
          this.value = value;
      * Shows this element.
     public String toString(){
          String ret;
          if( this.showKey ){
               ret =  this.label + this.key +" { "+ this.value +" }";
          else
               ret = this.label + this.value;
          // trim the string
          if( ret.length() > this.maxLength )
               return ret.substring(0 , this.maxLength);
          else
               return ret;
      * The hash code of this object is the hash code of the key.
      * @return the hash code of the key of the object
     public int hashCode() {
          return this.key.hashCode();
      * Returns true if the object passed is a single key value equals (i.e., with the same key) of this one.
     public boolean equals(Object o){
          if( o== null || (! (o instanceof SingleKeyValue) ) )     return false;
          else
               return (this.hashCode() == o.hashCode());
     public static void main(String argv[]) throws Exception{
         SingleKeyValue skv1 = new SingleKeyValue("Key1","Description1", SingleKeyValue.COMPETENCE);
         SingleKeyValue skv2 = new SingleKeyValue("Key1a","Description1a", SingleKeyValue.COMPETENCE);
         SingleKeyValue skv3 = new SingleKeyValue("Key1b","Description1b", SingleKeyValue.COMPETENCE);
         SingleKeyValue skv4 = new SingleKeyValue("Key2","Description2", SingleKeyValue.COMPETENCE);
         SingleKeyValue skv5 = new SingleKeyValue("Key2a","Description2a", SingleKeyValue.COMPETENCE);
         SingleKeyValue skv6 = new SingleKeyValue("Key2b","Description2b", SingleKeyValue.COMPETENCE);
         DefaultMutableTreeNode rootNode = new DefaultMutableTreeNode("root");
         DefaultMutableTreeNode node1 = new DefaultMutableTreeNode(skv1);
         DefaultMutableTreeNode node2 = new DefaultMutableTreeNode(skv2);
         DefaultMutableTreeNode node3 = new DefaultMutableTreeNode(skv3);
         DefaultMutableTreeNode node4 = new DefaultMutableTreeNode(skv4);
         DefaultMutableTreeNode node5 = new DefaultMutableTreeNode(skv5);
         DefaultMutableTreeNode node6 = new DefaultMutableTreeNode(skv6);
         rootNode.add(node1);
         node1.add(node2);
         node1.add(node3);
         rootNode.add(node4);
         node4.add(node5);
         node4.add(node6);
         JTree tree = new JTree(rootNode);
         JFrame f = new JFrame("Tree try");
         f.add( new JScrollPane(tree) );
         f.setSize(300,300);
         f.setVisible(true);
         System.out.println("Please select a node within 10 seconds");
         Thread.sleep(10000);
         // now get the user selection
     TreeModel treeModel = tree.getModel();
     TreeSelectionModel selectionModel = tree.getSelectionModel();
     DefaultTreeModel defaultTreeModel = null;
     DefaultTreeSelectionModel defaultTreeSelectionModel = null;
     TreePath selectedPath = null;
     TreeNode root = null;
     if( treeModel != null && treeModel instanceof DefaultTreeModel ) {
          defaultTreeModel = (DefaultTreeModel) treeModel;
          // get the selection
          if( selectionModel != null && selectionModel instanceof DefaultTreeSelectionModel ){
               defaultTreeSelectionModel = (DefaultTreeSelectionModel) selectionModel;
               selectedPath = defaultTreeSelectionModel.getSelectionPath();
          // rebuild the tree
          node1.setUserObject(new SingleKeyValue("key20","key changed",SingleKeyValue.FAMILY));
          defaultTreeModel.reload();
          // set the selected element
          defaultTreeSelectionModel.setSelectionPath(selectedPath);
}

Similar Messages

  • Focus Problem with JTree and Menus

    Hi all,
    I have a problem with focus when editing a JTree and selecting a menu. The problem occurs when the user single clicks on a node, invoking the countdown to edit. If the user quickly clicks on a menu item, the focus will go to the menu item, but then when the countdown finishes, the node now has keyboard focus.
    Below is code to reproduce the problem. Click on the node, hover for a little bit, then quickly click on the menu item.
    How would I go about fixing the problem? Thanks!
    import java.awt.Container;
    import java.awt.GridLayout;
    import javax.swing.JFrame;
    import javax.swing.JMenu;
    import javax.swing.JMenuBar;
    import javax.swing.JMenuItem;
    import javax.swing.JTree;
    import javax.swing.tree.DefaultMutableTreeNode;
    import javax.swing.tree.DefaultTreeModel;
    public class MyTree extends JTree {
         public MyTree(DefaultTreeModel treemodel) {
              setModel(treemodel);
              setRootVisible(true);
         public static void main(String[] args) {
              JFrame frame = new JFrame();
              JMenuBar bar = new JMenuBar();
              JMenu menu = new JMenu("Test");
              JMenuItem item = new JMenuItem("Item");
              menu.add(item);
              bar.add(menu);
              frame.setJMenuBar(bar);
              Container contentPane = frame.getContentPane();
              contentPane.setLayout(new GridLayout(1, 2));
              DefaultMutableTreeNode root1 = new DefaultMutableTreeNode("Root");
              root1.add(new DefaultMutableTreeNode("Root2"));
              DefaultTreeModel model = new DefaultTreeModel(root1);
              MyTree tree1 = new MyTree(model);
              tree1.setEditable(true);
              tree1.setCellEditor(
                   new ComponentTreeCellEditor(
                        tree1,
                        new ComponentTreeCellRenderer()));
              tree1.setRowHeight(0);
              contentPane.add(tree1);
              frame.pack();
              frame.show();
    import java.awt.FlowLayout;
    import java.util.EventObject;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.JTextField;
    import javax.swing.JTree;
    import javax.swing.tree.DefaultTreeCellEditor;
    import javax.swing.tree.DefaultTreeCellRenderer;
    import javax.swing.tree.DefaultTreeModel;
    import javax.swing.tree.TreeCellEditor;
    import javax.swing.tree.TreeCellRenderer;
    public class ComponentTreeCellEditor
         extends DefaultTreeCellEditor
         implements TreeCellEditor {
         private String m_oldValue;
         private TreeCellRenderer m_renderer = null;
         private DefaultTreeModel m_model = null;
         private JPanel m_display = null;
         private JTextField m_field = null;
         private JTree m_tree = null;
         public ComponentTreeCellEditor(
              JTree tree,
              DefaultTreeCellRenderer renderer) {
              super(tree, renderer);
              m_renderer = renderer;
              m_model = (DefaultTreeModel) tree.getModel();
              m_tree = tree;
              m_display = new JPanel(new FlowLayout(FlowLayout.LEFT));
              m_field = new JTextField();
              m_display.add(new JLabel("My Label "));
              m_display.add(m_field);
         public java.awt.Component getTreeCellEditorComponent(
              JTree tree,
              Object value,
              boolean isSelected,
              boolean expanded,
              boolean leaf,
              int row) {
              m_field.setText(value.toString());
              return m_display;
         public Object getCellEditorValue() {
              return m_field.getText();
          * The edited cell should always be selected.
          * @param anEvent the event that fired this function.
          * @return true, always.
         public boolean shouldSelectCell(EventObject anEvent) {
              return true;
          * Only edit immediately if the event is null.
          * @param event the event being studied
          * @return true if event is null, false otherwise.
         protected boolean canEditImmediately(EventObject event) {
              return (event == null);
    }

    You can provide a cell renderer to the JTree to paint the checkBox.
    The following code checks or unchecks the box with each click also:
    _tree.setCellRenderer(new DefaultTreeCellRenderer()
      private JCheckBox checkBox = null;
      public Component getTreeCellRendererComponent(JTree tree,
                                                    Object value,
                                                    boolean selected,
                                                    boolean expanded,
                                                    boolean leaf,
                                                    int row,
                                                    boolean hasFocus)
        // Each node will be drawn as a check box
        if (checkBox == null)
          checkBox  = new JCheckBox();
          checkBox .setBackground(tree.getBackground());
        DefaultMutableTreeNode node = (DefaultMutableTreeNode)value;
        checkBox.setText(node.getUserObject().toString());
        checkBox.setSelected(selected);
        return checkBox;
    });

  • Problem with Jtree and a checkbox

    Hello,
    I have a problem with my tree implementation.
    I create a tree and i want to add a checkbox in each node.
    this is my code :
    DefaultMutableTreeNode root;
    root = new DefaultMutableTreeNode(new JCheckBox());
    DefaultTreeModel model = new DefaultTreeModel(root);
    _tree = new JTree(model);
    eastpane.add(tree);
    THe problem is that my checkbox doesn't appear. And a message appears
    instead of my checkbox.
    But my tree appears.
    Can anyone help me .
    Thanks

    You can provide a cell renderer to the JTree to paint the checkBox.
    The following code checks or unchecks the box with each click also:
    _tree.setCellRenderer(new DefaultTreeCellRenderer()
      private JCheckBox checkBox = null;
      public Component getTreeCellRendererComponent(JTree tree,
                                                    Object value,
                                                    boolean selected,
                                                    boolean expanded,
                                                    boolean leaf,
                                                    int row,
                                                    boolean hasFocus)
        // Each node will be drawn as a check box
        if (checkBox == null)
          checkBox  = new JCheckBox();
          checkBox .setBackground(tree.getBackground());
        DefaultMutableTreeNode node = (DefaultMutableTreeNode)value;
        checkBox.setText(node.getUserObject().toString());
        checkBox.setSelected(selected);
        return checkBox;
    });

  • Problem with JTree and memory usage

    I have problem with the JTree when memory usage is over the phisical memory( I have 512MB).
    I use JTree to display very large data about structure organization of big company. It is working fine until memory usage is over the phisical memory - then some of nodes are not visible.
    I hope somebody has an idea about this problem.

    55%, it's still 1.6Gb....there shouldn't be a problem scanning something that it says will take up 300Mb, then actually only takes up 70Mb.
    And not wrong, it obviously isn't releasing the memory when other applications need it because it doesn't, I have to close PS before it will release it. Yes, it probably is supposed to release it, but it isn't.
    Thank you for your answer (even if it did appear to me to be a bit rude/shouty, perhaps something more polite than "Wrong!" next time) but I'm sitting at my computer, and I can see what is using how much memory and when, you can't.

  • Problems with the selection of text or objects

    dear fireworks community!
    unfortunately i have problems with my running version fireworks (CS6) and i can't find any solution or even get help via the customer support.
    i can't switch between objects with a click, when i've choosen one already. i also can't cancel the entire selection. the only way (to select a new item) is to click on an empty space, hold it and pull the selection over a new item.
    another thing is that i cant select a textfield with a doubleclick or switch beteween choosen tools within the usage of a shortcut …
    what i already tried:
    updating, deinstalling, re-storing preferences, "cleaning" the libraries, installing (this entire scenario for at least three times)
    i hope someone of you can help me!
    thanks in advance!

    incredible!
    thank you so much!

  • Problem with JTree converting Node to string

    I have a problem that I cannot slove with JTree. I have a DefaultMutalbeTreeNode and I need its parent and convert to string. I can get its parent OK but cannot convert it to string.
    thisnode.getParent().toString() won't work and gives an exception
    thisnode.getParent() works but how do I convert this to string to be used by a database.
    Thanks
    Peter Loo

    You are using the wrong method to convert it to a String array.
    Try replacing this line:
    String[] tabStr = (String[])strList.toArray();
    With this line:
    String[] tabStr = (String[])strList.toArray( new String[ 0 ] );
    That should work for you.

  • Problem with column selection in GUI_DOWLOAD

    Hi everyone !
    I want to save data from an internal table to a DAT file using GUI_DOWLOAD. In this internal table, there are 2 colums that won't be downloaded so I call the FM this way :
        CALL FUNCTION 'GUI_DOWNLOAD'
             EXPORTING
                  FILENAME                = L_FILE
                  FILETYPE                = 'DAT'
                  COL_SELECT              = 'X'
                  COL_SELECT_MASK          = V_COLSELECT
             TABLES
                  DATA_TAB                = TAB_OUT
                  FIELDNAMES              = TAB_FIELDNAMES.
    V_COLSELECT contains an 'X' for each column I need to be downloaded and a space for the 2 other columns.
    In the result file, the columns that I didn't select don't appear BUT there are 2 columns with no header and filled with zeros at the right edge of the file. I don't know where these 2 columns come from. Maybe a problem with fieldnames but I'm not sure (in TAB_OUT, all columns are present but in TAB_FIELDNAMES there are only headers for the selected columns).
    If anybody have an idea, please just tell me.
    Points will be rewarded for helpful answers.
    Thanks.
    Nicolas.

    Hi,
    Try to keep fields same in TAB_FIELDNAMES and TAB_OUT. because anyway you are using COL_SELECT_MASK.
    I think you are using COL_SELECT_MASK properly ie
    if you have 6 field in the TAB_OUT out of that you need to donwload 1,3,6 then your
    COL_SELECT_MASK will be X X  X
    aRs

  • Problem with variable selections

    Hi All
        I am executing the report with period 46.2007-50.2007 . I am getting the result for this period.But if i run the report with same selections from 42.2007-50.2007, I am not getting the data.It says no applicable data found.
    I am using interval as the option for variable .Could some one help on this?
    Thanks
    Raghu N

    Hello
    According to your selection you should get the data.
    check the both selection (46 - 50) and (42 - 50) in the LISTCUBE transaction.
    if data available in both cases then problem may be with other restrictions.
    If no user exits are in that variable try create one more variable as it is and then try by restricting with new variable.

  • Problems with JTree

    Hi,
         I have a few problems while working with JTree. Here is the detail:
    I get the name of the required file from JFileChooser and add it to the root node of JTree using
    root.add(new DefaultMutableTreeNode(fileName));
    The following happens.
    1) If I add it to root, it is not added(or shown,at least) there.
    2) if I add it to a child of root, then if the node is collapsed before the event, after the event when it is expanded fileName is there.
    3) However if it is expanded before adding the fileName,the fileName is not added (or not shown).
    4) Further if I add another file(whether the node is collapsed or expanded) it is also not shown, means that it works only once during the life-time of the application.
    5) I have used JFrame and call repaint() for both the JFrame and JTree but the problem is still there.
         Please help me in solving this problem.
    Thanks in advance,
    Hamid Mukhtar,
    [email protected]
    H@isoft Technologies.

    Try doing this...
    tree.getModel().reload(node)
    node here is the node to which a new node is added

  • Problems with customizing select lists and popup LOVs

    Hi
    I have 2 problems about select lists and popup LOVs.
    The first one is about a select list in a tabular form.
    It should be created with APEX_ITEM.SELECT_LIST_FROM_LOV or similar and take its values from a named LOV.
    This worked fine but now it should also have the possibility to enter a free value.
    I tried to accomplish that by creating a APEX_ITEM.POPUP_FROM_LOV, but there is a problem with the function that is called by the arrow icon right to the input field (for eg. genList_f11_5()).
    If the row is added by addRow, then it works fine, but if the row is is not empty
    then the function call is like genList_f11_$_row() and the input field gets no value, when a LOV option is selected.
    The other problem is about a select list which should have the possibility to enter a custom value and
    also there should be the possibility to select several values. I tried to implement this by a text area containing the selected values and a multiple select list, with an event handler in each option. The user could click options and they would be copied to the text area. The problem is that I couldn't make the event handler work in IE.
    I would appreciate any ideas about either of these problems.
    Tiina

    Hi,
    If you download application you can see source.
    I have not write any instructions, sorry.
    If you are on Apex 4 you can just load jQuery UI autocomplete library and take ideas from my app.
    If you download my sample in zip there is uncompressed htmldbQuery library.
    You can see that and take only function htmldbAutocomplete.
    Then check jQuery UI document
    http://jqueryui.com/demos/autocomplete/#method-search
    There is method search that you can use open list just by click of input.
    I hope this helps at start.
    Regards,
    Jari

  • Function module based generic extractor - Problem with the selection

    Hi all
    The following is my code in the function module. I am able to get the entire data if i dont give any selections and the number of records is also correct. But when i select a MATNR value, it returns 0 records where as it needs to return 3 records. If i give selection based on bukrs, werks, lgort its working fine. But if i give selection based on MATNR, then it is not working.... I think there is a problem in the bold part of my code. If i debug, LS_MATNR is having the correct value which indicates that there is no problem with the value being passed to LS_MATNR from my selection screen of my datasource in RSA3. Even GT_WERKS is also having data. Please help.
    OPEN CURSOR WITH HOLD S_CURSOR FOR
    SELECT  MARA~MANDT
            MARA~MATNR
            MARC~WERKS
            MARD~LGORT
            MARA~MEINS
            MARD~LABST
            MARD~EINME
            MARD~SPEME
            MARD~RETME
            MARD~INSME
            MARD~UMLME
            MARD~VMLAB
            MARD~VMEIN
            MARD~VMSPE
            MARD~VMRET
            MARD~VMINS
            MARD~VMUML
            MARC~XCHPF
            MARD~KLABS
            MARD~KEINM
            MARD~KSPEM
            MARD~KINSM
    from MARA inner join MARC on
    MARAMANDT = MARCMANDT AND
    MARAMATNR = MARCMATNR
    inner join MARD on
    MARAMANDT = MARDMANDT AND
    MARAMATNR = MARDMATNR
    AND MARCWERKS = MARDWERKS
    for all entries in gt_werks
    where MARC~werks EQ gt_werks-werks
    AND MARA~MATNR in LS_MATNR.
        ENDIF.                             "First data package ?
    Fetch records into interface table.
      named E_T_'Name of extract structure'.
        FETCH NEXT CURSOR S_CURSOR
                   APPENDING CORRESPONDING FIELDS
                   OF TABLE E_T_DATA
                   PACKAGE SIZE S_S_IF-MAXSIZE.

    try this
    select marc~matnr MARC~WERKS into t_marc for all entries in gt_werks
    where werks EQ gt_werks-werks and lvorm = space.
    if t_marc is not initial.
    select MARD~LGORT MARD~WERKS MARA~MEINS MARD~LABST MARD~EINME
    MARD~SPEME MARD~RETME MARD~INSME MARD~UMLME
    MARD~VMLAB MARD~VMEIN MARD~VMSPE MARD~VMRET
    MARD~VMINS MARD~VMUML MARC~XCHPF MARD~KLABS
    MARD~KEINM MARD~KSPEM MARD~KINSM  MARA~MEINS  from
    mard inner join MARA on mard~matnr = mara~matnr
    for all entries in t_marc where  mard~matnr = t_marc-matnr and mard-werks = t_marc-matnr
    and mard~lvorm = space.

  • Report Painter problem with empty selection variant

    Hello,
    I use the cost center selection variant for the column definition in Report Painter as characteristic value. This selection variant get only the cost centers which are valid from 1.1.2003 to 31.12.2004. The column of the report created by Report Painter which uses this selection variant display value without taking into account limitations follow from this selection variant. I expect value zero for year fiscal year 2007 in this column, because the cost centers are invalid in 2007 year but the report displays different value. The problem appeared after upgrade from 4.6C to ECC 6.0.
    Best Regards
    ZD

    My problem with Report Painter occurred when I was creating my own report based on 1VK library.
    In my example I used in the column definition characteristic Cost
    Center, which is determined by selection variant, and Basic Key Figure
    equal SWKG-Costs. For system date (18.07.2007) there are no valid
    master data for the characteristic Cost Center but when I execute
    report for fiscal year 2007 the column display no-zero value without
    taking into account value of Characteristic Cost Center. I expected
    zero value in this column because there are no postings for Cost
    Centers (no valid cost centers were selected) in financial year 2007.
    Could you help me with this problem ?

  • Problem with the selection screen in submit program

    Hi Friends,
    i am facing the problem wih the selection screen in submit program. in my Module pool program i am using the submit program statement, When i execute the program , The module program display the submit program selections creen.
    I have implemented the code same as below.
    submit ztest with tknum =p_tknum and  return.
    Can you pleaes help me how to avoid the submit program selection screen.
    Thanks,
    Charan

    Hi Charan,
    You have to give the selection screen values when you submit a job.
    Press F1 on submit and you will see more details.
    Here is an example from ABAP Documentation.
    Program accessed
    REPORT report1.
    DATA text(10) TYPE c.
    SELECTION-SCREEN BEGIN OF SCREEN 1100.
      SELECT-OPTIONS: selcrit1 FOR text,
                      selcrit2 FOR text.
    SELECTION-SCREEN END OF SCREEN 1100.
    Calling program
    REPORT report2.
         DATA: text(10)   TYPE c,
          rspar_tab  TYPE TABLE OF rsparams,
          rspar_line LIKE LINE OF rspar_tab,
          range_tab  LIKE RANGE OF text,
          range_line LIKE LINE OF range_tab.
    rspar_line-selname = 'SELCRIT1'.
    rspar_line-kind    = 'S'.
    rspar_line-sign    = 'I'.
    rspar_line-option  = 'EQ'.
    rspar_line-low     = 'ABAP'.
    APPEND rspar_line TO rspar_tab.
    range_line-sign   = 'E'.
    range_line-option = 'EQ'.
    range_line-low    = 'H'.
    APPEND range_line TO range_tab.
    range_line-sign   = 'E'.
    range_line-option = 'EQ'.
    range_line-low    = 'K'.
    APPEND range_line TO range_tab.
    SUBMIT report1 USING SELECTION-SCREEN '1100'
                   WITH SELECTION-TABLE rspar_tab
                   WITH selcrit2 BETWEEN 'H' AND 'K'
                   WITH selcrit2 IN range_tab
                   AND RETURN.
    Regards,
    Jovito.

  • Windows 8.1 having problems with pinter selection using Elements 13.

    I am running Windows 8.1 with Elements 13 and am having problems with PRINT. If I select a printer from the PRINTER menu, Elements recognizes the change of selection, allows me to modify the printer's specific setting and, then, when I PRINT seems to not recognize the selected printer and print of whatever was set as the original printer. Then, I delete the "original" printer in Windows 8.1 and attempt to print again with the same general result except I receive a Printer Not Found error from Windows.
    How do I modify the "original" printer setting (seems to be associated with the file)? Note the "original" printer is not the default printer.

    Hatstead,
    Thank you.
    Yes, all of the print drivers are up to date (re-verified last evening).
    Yes, I can print and select the printer as normal for all of the standard applications I use (Visio, PowerPoint, Word, Excel, Outlook, direct print from file (Explorer)).
    I shortened the printer names from the standard Microsoft convention (based on some of the BOG comments). There was no change.  In fact after the test sequence noted in #5, I re-implemented the "name shortening" yet again (shorter yet). I launched Elements and ran into the same messages noted in #5 (obviously, the "stored" printer did not exist). Yet after I went through the printer selection process (again as in #5) and, after a lag time, Elements redirected the print job what was the "stored" printer which was renamed....I do not know how Elements associated the deleted "Stored" printer with its old name with the newly named printer since no other application could (I checked).
    I have closed and restarted the PC numerous times.
    I have deleted all of the printers except the one I wanted to use for the specific print job. In this case, Elements came back with a message it could not access the "stored" printer. I then selected the correct printer, Elements acted like it was allowing to set up the selected printer with the specifics of the print job, and, then when I went to print, Elements again tried to redirect the print job to the "stored" printer (even though it did not exist).
    The target printer is a "local" printer (USB connected). The apparent "Stored" printer is a network printer. So, I deleted the PC which has the "Stored" printer from the network (actually not only deleted it from the devices on my PC but literally shut the PC down and disconnected it from the network (two different test)) to no avail (still got the test results in #5).
    Yes, I have attempted to print from the Editor (my normal mode) and from Organizer.
    I have copied, open a new file and, then, pasted the image I wanted to print to no avail.
    Is the a "stored" printer associated with the file or with Elements? If so, how to I modify (or dis-associate)?
    Again, thank you.

  • Big problem with a select using remote database

    Hi Guy.
    I have a big problem with a simple query, but this is a scenario.
    Actuallly I'm in Alexandria - Egypt with a server with Oracle 10.2.0.4 database 32 bit on linux Red Hat as 4.8. the server can connect to another database oracle but 9.2.0.6 installed on Red Hat As 4.5 placed in Milano Italy . Ttwo networks are connected via two adsl cisco router with firewall and Vpn functions. In Egypt there isn't a very good adsl.
    In Alexandria, I'm trying to connect to database in Italy with sqlplus. The sqlplus connected I write.. select * from addetti and all work fine.
    My problem is that when I try to make the same select on a table with many columns oracle database kill me a session.
    My table (ic_lav) is long 174 colums 1924 byte for row. Well when I write a query with select * from ic_lav all oracle close my session.
    So I began to change my query I start to
    select field1 from ic_lav... and work
    select field1,field2,field3,..........field50 from ic_lav and work
    select field1,field2,field3,..........field70 from ic_lav and doesn't work
    the select work with 68 columns
    problem: the query with more then 1064 byte for row doesn't work.
    I've tryed with anoter big table with the same problem, but the select fwork with 65 columns...
    Iit is obvious that there is any problem with the limit of the query.
    The same query (select * from ic_lav) in localMilano)l work fine.
    The same query (select * from ic_lav) in vpn with a better adsl line and openvpn software (NO CISCO firewall) WORK FINE.
    The same query connectetd in Milano with a vpn make with analogic modem and remote access by windows work fine.
    the query (make on my laptop connectet with vpn by cisco doesn't work.
    In cisco firewall we haven't any error (cisco man tell me so)
    on database 9 I found :
    *** 2009-06-12 09:49:45.509
    *** SESSION ID:(66.44406) 2009-06-12 09:49:45.497
    FATAL ERROR IN TWO-TASK SERVER: error = 12152
    *** 2009-06-12 09:49:45.509
    ksedmp: internal or fatal error
    Current SQL statement for this session:
    select * from ic_lis where ditta
    ----- Call Stack Trace -----
    but I don't understand why the lost connection problem (bug 3816595 A processstate dump is produced for a lost connection (12152) ) is caused by len of row
    Anybody have some idea ?
    Thank you

    My table (ic_lav) is long 174 colums 1924 byte for row. Well when I write a query with select * from ic_lav all oracle close my session.Do you get any error?
    If the query length is a problem, you could create a view and query the view instead to see if this problem is resolved.

Maybe you are looking for

  • In Elements 13, how do I turn off default setting that sends my usage info to Adobe?

    In Elements 13, how do I turn off default setting that sends my usage info to Adobe? Vendors of proprietary software want to track everything you do.  Adobe says that it is possible to turn off sending info to them, but doesn't include any info on ho

  • HT1338 my startup disk does not have enough space

    When I try to update I get a message start up disk is full. What needs to be done? and How do I do it step by step? Any help is appreciated Thank you

  • Regarding return delivery

    Hi spgurus, suppose i received 100 pc (migo) of exciseable item and i did MIRO (100 pc) and the management found that 20 pc as damage part, so at MIGO , i selected return delievy with capture and post of Excsie Invoice but whenever i do check the err

  • The Pen Tool

    Once I close the selection of the pen tool how do I copy it to a transparent canvas? I right clicked and chose copy but when I pasted it onto the new canvas the whole background came with it. Or maybe the path isn't completely closed because I don't

  • Exchange 2013 Cumulative Update 5 Install Issue

    I have tried installing Exchange 2013 Cumulative Update 5 on our server but it is failing at the Mailbox role: Transport Service section with the following error. I am running the command prompt as Administrator. Any help would be great.  Error: The