AutoComplete in Relationship Editor

Dear Unification experts
We are now in the process of implementation of Drag and Relate to a R/3 type applications with business objects successfully imported to a business objects folder by following the help.com.  We use NW 04 SR1, portal sp9 and would like to use autocomplete feature in relationship editors so that we can have the system automatically created some relations between 2 business objects.  I find there are 3 problems and 1 query,  not knowing if I have done something wrong.
1)  Is it able to use autocomplete feature to automatically add all business objects to both source and target in the relationship matrix.  WRT SAP help, it should be able to use CTRL or SHIFT key together with add, however, I have tried no way I can add business objects in multiple batches.  In fact, is it required to add each one of them even with autocomplete feature, or even autocomplete is working, adding business objects to source or target is always a must?
2)  I have added some possibly related business objects, however, when I click autocomplete, it does not get any relationship generated at all.  Any clues?  As we have those Drag and relate in EP 5, I can see some relationships for same 2 objects possible in Unification console at EP 5 but seems nothing shown up in EP 6.
3)  After applying autocomplete, the source & target nor needless to day their relations were not stored at all.  Any clues to this.
Can anyone advise me a simple way to do it?  Is there any "how to" guides on these.  Help.com is just like a dictionary, difficult to a new guy.
Lastly, 1 question, is the metadata we added before to a backend R/3 system or BW system for use in EP5.0.  Can we use this metadata the same for EP 6.0
Rgds

Thks Vadim
In fact "on the fly" is not good because everytime I want to check which BO has been auto-related to which BO.  Adding source and target by brute force is even worse than those in EP 5 age.  At EP 5, I can easily check the relationship matrix without adding sources and targets and seems the results are not "on the fly" already.
Why come to EP6, even it is worse than before.  I don't know why SAP has stepped back.
BTW, It is really a good point to bring it out for better design.  OTherwise, it is totally messy.
I have called up an OSS message to bring your point and clarify my problem. SAP is really inexperienced in this area and the response has been terrible.
So far, I can't put up an immediate design change but obliged to accept the fact of "on the fly" and adding sources and targets by brute force everytime, which is really very very bad in design.
However, my immediate problem is even I can't see any results shown up "on the fly".  Very disappointed, it has wasted me 2 weeks already and got no progress at all.  See if you can have any good tips to this. 
Rgds
Stephen

Similar Messages

  • Drag & Relate Relation Editor ins't accessiable for source and destination

    Dear all,
    we've install a EP 7 SPS 15 and want to use the relationship editor, after we've import the business objects from a systeme where we have already a connection with ep6 the objects are available, but when we want to add them as source / destination to the relationshipeditor, there comes up an Website error :
    mtxSelect error no object
    we try this with IE 7 and 6 and Firefox, but for fierfox there wasn't any message.
    So we need some ideas why or what can we do to fix / find the reason for this error.
    Best regards
    Thorsten Stracke

    I am getting the same error. If anyone know what might be causing this, please help.
    Thanks,
    Alex

  • The "Show To/Cc label in message list" doesn't work

    Hi all,
    I use Apple Mail 5.2, and i have created some mailboxes which i use to archive the emails i sent and receive. I have noticed that when i move emails i have sent to these mailboxes, in the message list i only see the Sender (who is me of course) and not the recipient (in the default Sent folder everything works OK). You realize that this creates a huge problem because if i want to find an email i sent to someone, i have to click each email and see the recipient from the preview column.
    I thought that it was the setting "Show To/Cc label in message list" but even with this marked, it still doesn;t show anything... The only thing that is changed is that in some emails it shows a little greyed "TO" but next to that, there is only the email Subject, and not the recipient (as expected).
    Is this a bug?
    Of course this problem doesn't exist in Classic layout because there you have all availiable columns, but i really like the default view and i want to keep that..

    #{userlist.userList()
    #{ul.edituser}Spot the difference there. I do believe "ul" should be "userlist"; in other words it will link to an action method "edituser()" in a JSF managed bean which I assume will be named Userlist. Its really simple when you run into the problem of an action method not working: 99/100 times the action method EL declaration is wrong. Now it could be typo, but I've been known to forget the #{} part too...
    I use the JBoss Tools Eclipse plugin myself; it has nice JSF additions that add EL validation and autocompletion to the editor. That way I know already from the code view when I've made a mistake in stead of "at runtime". A missing action method turns up as a warning in the jsf editor for example. That is of course only helpful when you're actually using Eclipse ;)

  • Clicking an element in a list doesn't work

    Sorry about my rather vague subject - my problem is not so easy to sum up in a few words.
    I am working on an application that
    - Displays a list of items from a MySQL table
    - Each item should be clickable, and on clicking should open an edit page with the clicked item pre-loaded
    This must have been done millions of times before and should be simple. It doesn't work, presumably because I know too little. This is what I have done:
    The clickable item list looks like this (without all the trimmings):
    <h:dataTable id="users" value="#{userlist.userList()}" var="ul">
    <h:commandLink action="#{ul.edituser}" value="#{ul.uid}"/>
    This displays a list of the right sort of items, but the clickable item (the UID) doesn't do anything. Also, the resulting html looks the same no matter what I put into the action element - this is the inside of the a-tag:
    href="#" onclick="mojarra.jsfcljs(document.getElementById('j_idt9'),{'j_idt9:users:1:j_idt15':'j_idt9:users:1:j_idt15'},'');return false"
    I'm not entirely sure what that means; all I know is that it does not call the edituser() method.
    But what is the right way, then? I haven't found any examples that highlight this particular situation although it must be used all the time, I expect.

    #{userlist.userList()
    #{ul.edituser}Spot the difference there. I do believe "ul" should be "userlist"; in other words it will link to an action method "edituser()" in a JSF managed bean which I assume will be named Userlist. Its really simple when you run into the problem of an action method not working: 99/100 times the action method EL declaration is wrong. Now it could be typo, but I've been known to forget the #{} part too...
    I use the JBoss Tools Eclipse plugin myself; it has nice JSF additions that add EL validation and autocompletion to the editor. That way I know already from the code view when I've made a mistake in stead of "at runtime". A missing action method turns up as a warning in the jsf editor for example. That is of course only helpful when you're actually using Eclipse ;)

  • Dsv - Sorting tables by name vs. added order

    Does anyone know if it is possible to sort the tables in dsv relationship editor, new dimension, etc. by Alphabetical name vs. the order it was added to the dsv?  I have a large dsv, and when adding relationships (on views) it can be a bit tedious digging
    through the dimension tables.  It would be helpful if I could make them sort by name vs. added order.
    Thanks in advance,
    John

    I haven't had to work with views in the past, so I never tried this...  in case anyone else stumbles into this post.  The answer is too darn simple - you can simple drag and drop columns in the dsv between the tables and it will create the relationship. 
    Bonus material - sub diagrams can easily be created for each fact table to ensure relationships aren't missed, and easily add relationships on a small scale.
    I feel dumb - hopefully this will save others frustration. :)
    John

  • CMR module problems

    I made some changes to a relationship between 2 CMP EJBs in a module that was generated by S1S4U1 for S1AS7; however, despite the EJB Relationship editor showing the right values, and the Bean class having the right type, when verifying with the S1Verifier, I get an error that the the field has in invalid type.
    When I disasemble the class to view the signatures, sure enough, the included class file shows the old signature with the older types. Where is S1S4 picking up the old values - the source & all editors in S1S4 show the modified values. Thanks.
    Arshad Noor
    P.S. As an aside, how on earth does one crete a new module with Related CMP EJB's from a database, without overwriting exisitng interface and bean source files?
    P.P.S. Any idea why, when deleting a .dbschema file and creating a new DB schema (after the schema has been changed in the DB), with the same .dbschema filename, S1S4 does not see the changed schema in the DB?

    What is the error you are getting? Are you able to deploy the application without running the verifier? What version of studio are you using? If the studio is not updating, then you can post the same question in studio forum, Create the dbschema using the command line utility (appserv install>bin/dbschema).In previos version of studio, there was a bug with the db schema utility. If you have problem with studio, then post it at studio forum.
    http://forte.sun.com/ffj/forums/index.html

  • Find/Understand joins in DSV

    I am having a problem with a big Cube. So I am maing parts of it so I can better understand whats going on. Two of the tables have four joins together. How do you tell what is joined to what? And if its a left or right join?

    Hi M,
    If you double click on the join line between the two tables, ssas will give you a relationship editor that has Source(foreign key) table and Destination (primary key) table, along with the key column(s).
    Hope that helps,
    Richard

  • Combobox Autocomplete editor inside Jtable cell

    I have a custom combobox editor which supports the autocomplete feature as follows:
    as soon as the user keys in any character, this editor searches for the item that starts with keyed in character. This item is displayed in the editor text field and the combobox popup is set to visible and the this item is set to selected.
    this editor works fine when standalone. but the popup fails to become visible when this combobox is used as an celleditor inside jtable. infact the focus is lost from the entire table.
    can anyone suggest the possible reason (and solution if possible).
    following are the code snippets for the same: -
         private TableCellEditor addCellEditor() {
              final JComboBox myJComboBox = new PIComboBox();
              myJComboBox.setModel(new DefaultComboBoxModel(// some data model //));
              //change the size of popup window
              BasicComboPopup comboPopup = null;
              for (int i=0, n=getUI().getAccessibleChildrenCount(myJComboBox); i<n; i++) {
                  Object component = getUI().getAccessibleChild(myJComboBox, i);
                  if (component instanceof BasicComboPopup) {
                   comboPopup = (BasicComboPopup) component;
                   break;
              if(null != comboPopup)
                  comboPopup.setLayout(new GridLayout(1,1));
                  comboPopup.setPopupSize(new Dimension(200, 150));
              myJComboBox.setEditable(true);
              myJComboBox.setEditor(new ComboBoxAutoCompleteEditor(myJComboBox, 3));
              myJComboBox.setUI(new ComboBoxAutoCompleteUI());
              TableCellEditor myCellEditor = new DefaultCellEditor(myJComboBox );
              return myCellEditor;
         public class ComboBoxAutoCompleteEditor extends BasicComboBoxEditor {
         public ComboBoxAutoCompleteEditor(PIComboBox comboBox, int maxLength) {
              super();
              this.comboBox = comboBox;
              this.maxLength = maxLength;
         @Override
         public Component getEditorComponent() {
              if(null == editorComponent)
                   editorComponent = new PITextField();
                   editorComponent.setBorder(null);
                   editorComponent.setMaxLength(maxLength);
                   editorComponent.setDocument(getDocument());
              return editorComponent;
         private ComboBoxAutoCompleteDocument getDocument()
              if(null == comboBoxAutoCompleteDocument)
                   comboBoxAutoCompleteDocument = new ComboBoxAutoCompleteDocument(
                             this.comboBox.getModel());
                   comboBoxAutoCompleteDocument.addDocumentListener(new ComboBoxDocumentListener());
              return comboBoxAutoCompleteDocument;
         private class ComboBoxDocumentListener implements DocumentListener {
              public void insertUpdate(DocumentEvent e) {
                   if (updatingSelection) {
                        return;
                   SwingUtilities.invokeLater(new ScrollHandler());
              public void removeUpdate(DocumentEvent e) {
              public void changedUpdate(DocumentEvent e) {
         private class ScrollHandler implements Runnable {
              private String scrollToString;
              private int scrollToRow;
              private ScrollHandler() {
                   try {
                        int length = getDocument().getLength();
                        String text = getDocument().getText(0, length);
                        scrollToRow = -1;
                        scrollToString = (String) comboBox.getSelectedItem();
                        ComboBoxModel model = comboBox.getModel();
                        int size = model.getSize();
                        for (int i = 0;  i < size; i++) {
                             String item = model.getElementAt(i).toString();
                             if (item.startsWith(text)) {
                                  scrollToString = item;
                                  break;
                             scrollToRow++;
                   } catch (BadLocationException ble) {
                        // TODO: handle
                        ble.printStackTrace();
              public void run() {
                   final int matchCount = getDocument()
                             .getCurrentMatchCount();
                   updatingSelection = true;
                   comboBox.setSelectedItem(scrollToString);
                   if (comboBox.isDisplayable())
                        comboBox.showPopup();
                   updatingSelection = false;
                   if (scrollToRow != comboBox.getItemCount() - 1) {
                        ComboBoxAutoCompleteUI ui = (ComboBoxAutoCompleteUI) comboBox
                                  .getUI();
                        JList popupList = ui.getPopupList();
                        int rowsToAdd = Math.min(comboBox.getMaximumRowCount(), comboBox
                                  .getItemCount()
                                  - scrollToRow - 1);
                        popupList.scrollRectToVisible(popupList.getCellBounds(
                                  scrollToRow + rowsToAdd, scrollToRow + rowsToAdd));
                   if (matchCount > 0) {
                        ((PITextField)getEditorComponent()).setSelectionStart(matchCount);
                        ((PITextField)getEditorComponent()).setSelectionEnd(
                                  getDocument().getLength());
         public class ComboBoxAutoCompleteUI extends BasicComboBoxUI {
             JList getPopupList() {
                 return popup.getList();
         public class ComboBoxAutoCompleteDocument extends PlainDocument {
         public void insertString(int offs, String str, AttributeSet a) throws BadLocationException {
            currentMatchCount = getLength() + str.length();
            String currentText = getText(0, getLength());
            //search the matching string here
            offs = 0;
            remove(0, getLength());
            super.insertString(offs, str, a);
         **************

    You need to create a custom CellEditor which will prevent these problems from occurring. The explanation behind the problem and source code for the new editor can be found at Thomas Bierhance's site http://www.orbital-computer.de/JComboBox/. The description of the problem and the workaround are at the bottom of the page.

  • Stopping cell editing in a JTable using a JComboBox editor w/ AutoComplete

    Hi there! Me again with more questions!
    I'm trying to figure out the finer parts of JTable navigation and editing controls. It's getting a bit confusing. The main problem I'm trying to solve is how to make a JTable using a combo box editor stop editing by hitting the 'enter' key in the same fashion as a JTextField editor. This is no regular DefaultCellEditor though -- it's one that uses the SwingX AutoCompleteDecorator. I have an SSCCE that demonstrates the issue:
    import java.awt.Component;
    import java.awt.EventQueue;
    import javax.swing.AbstractCellEditor;
    import javax.swing.JComboBox;
    import javax.swing.JFrame;
    import javax.swing.JTable;
    import javax.swing.WindowConstants;
    import javax.swing.table.DefaultTableModel;
    import javax.swing.table.TableCellEditor;
    import javax.swing.table.TableModel;
    import org.jdesktop.swingx.autocomplete.AutoCompleteDecorator;
    public class AutoCompleteCellEditorTest extends JFrame {
      public AutoCompleteCellEditorTest() {
        JTable table = new JTable();
        Object[] items = {"A", "B", "C", "D"};
        TableModel tableModel = new DefaultTableModel(2, 2);
        table.setModel(tableModel);
        table.getColumnModel().getColumn(0).setCellEditor(new ComboCellEditor(items));
        getContentPane().add(table);
        setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
        pack();
      private class ComboCellEditor extends AbstractCellEditor implements TableCellEditor {
        private JComboBox comboBox;
        public ComboCellEditor(Object[] items) {
          this.comboBox = new JComboBox(items);
          AutoCompleteDecorator.decorate(this.comboBox);
        public Object getCellEditorValue() {
          return this.comboBox.getSelectedItem();
        public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) {
          comboBox.setSelectedItem(value);
          return comboBox;
      public static void main(String[] args) {
        EventQueue.invokeLater(new Runnable() {
          public void run() {
            new AutoCompleteCellEditorTest().setVisible(true);
    }Problem 1: Starting to 'type' into the AutoCompleteDecorate combo box doesn't cause it to start editing. You have to hit F2, it would appear. I've also noticed this behaviour with other JComboBox editors. Ideally that would be fixed too. Not sure how to do this one.
    Problem 2: After editing has started (say, with the F2 key), you may start typing. If you type one of A, B, C, or D, the item appears. That's all good. Then you try to 'complete' the edit by hitting the 'enter' key... and nothing happens. The 'tab' key works, but it puts you to the next cell. I would like to make the 'enter' key stop editing, and stay in the current cell.
    I found some stuff online suggesting you take the input map of the table and set the Enter key so that it does the same thing as tab. Even though that's not exactly what I desired (I wanted the same cell to be active), it didn't work anyway.
    I also tried setting a property on the JComboBox that says that it's a table cell editor combo box (just like the DefaultCellEditor), but that didn't work either. I think the reason that fails is because the AutoCompleteDecorator sets isEditable to true, and that seems to stop the enter key from doing anything.
    After tracing endless paths through processKeyBindings calls, I'm not sure I'm any closer to a solution. I feel like this should be a fairly straightforward thing but I'm having a fair amount of difficulty with it.
    Thanks for any direction you can provide!

    Hi Jeanette,
    Thanks for your advice. I looked again at the DefaultCellEditor. You are correct that I am not firing messages for fireEditingStopped() and fireEditingCancelled(). Initially I had copied the behaviour from DefaultCellEditor but had trimmed it out. I assumed that since I was extending AbstractCellEditor and it has them implemented correctly that I was OK. But I guess that's not the case! The problem I'm having with implementing the Enter key stopping the editing is that:
    1) The DefaultCellEditor stops cell editing on any actionPerformed. Based on my tests, actionPerformed gets called whenever a single key gets pressed. I don't want to end the editing on the AutoCompleteDecorated box immediately -- I'd like to wait until the user is happy with his or her selection and has hit 'Enter' before ending cell editing. Thus, ending cell editing within the actionPerformed listener on the JComboBox (or JXComboBox, as I've made it now) will not work. As soon as you type a single key, if it is valid, the editing ends immediately.
    2) I tried to add a key listener to the combo box to pick up on the 'Enter' key and end the editing there. However, it appears that the combo box does not receive the key strokes. I guess they're going to the AutoCompleteDecorator and being consumed there so the combo box does not receive them. If I could pick up on the 'Enter' key there, then that would work too.
    I did more reading about input maps and action maps last night. Although informative, I'm not sure how far it got me with this problem because if the text field in the AutoCompleteDecorator takes the keystroke, I'm not sure how I'm going to find out about it in the combo box.
    By the way, when you said 'They are fixed... in a recent version of SwingX', does that mean 1.6.2? That's what I'm using.
    Thanks!
    P.S. - Maybe I should create a new question for this? I wanted to mark your answer as helpful but I already closed the thread by marking the answer to the first part as correct. Sorry!
    Edited by: aardvarkk on Jan 27, 2011 7:41 AM - Added SwingX versioning question.

  • Problem in updating relationships - Oracle Design Editor

    Hello
    I am using the tool Oracle Design Editor of the Oracle suite Desginer for ERD modeling.
    I'm having trouble updating the changes in primary keys of tables in their relationships children (FK), is not updating. When I delete a primary key field, the table has the reference field is not being deleted.
    This is a software failure or is a normal behavior?
    Someone could help me.

    I'd love to try this out and see what really happens, so I can give you the absolutely correct answer. Unfortunately, I've been snowed in and haven't been in the office all week, and I don't have Designer on the home computer on which I'm typing this.
    My guess from faulty memory is that if you delete a column from a multi-column PK, Designer will remove the column from the FK constraints that reference it, but will not remove the corresponding column from the related tables. After all, Designer doesn't know that this column is ONLY used as part of an FK. As far as it knows, you may need that column for some other purpose.
    Let me give you two hints about the way Designer was designed to work that may clarify this:
    First of all, Designer has an Entity/Relationship diagrammer that works on the logical design level - modeling Entities rather than Tables, and Relationships rather than Foreign Keys. It was expected by the creators of the tool that you would do most of your design in the ER diagrams, then use the Database Design Transformer (DDT) to translate that design to the Table Definitions of your physical design. In the E/R diagrammer, you can designate key attributes (attributes become your columns), but you don't have to. DDT will create key columns for you when it translates your logical design to a physical one.
    Secondly, Designer expects that most of your primary keys will be surrogate primary keys that are single columns set from Oracle Sequences. There are many advantages to using surrogate keys for PKs and FKs, while natural keys are used only for unique keys. One of the advantages is that surrogate keys are non-updatable, which will greatly reduce the chore of maintaining foreign keys. If you do a web search, you will see a lot of discussion of the pros and cons of surrogate PKs.

  • AutoComplete JComboBox As JTable cell editor

    Hello, when I try to use AutoComplete JComboBox as my JTable cell editor, I facing the following problem
    1) Exception thrown when show pop up. - Exception in thread "AWT-EventQueue-0" java.awt.IllegalComponentStateException: component must be showing on the screen to determine its location
    2) Unable to capture enter key event.
    Here is my complete working code. With the same JComboBox class, I face no problem in adding it at JFrame. But when using it as JTable cell editor, I will have the mentioned problem.
    Any advice? Thanks
    import javax.swing.*;
    import javax.swing.JTable.*;
    import javax.swing.table.*;
    import java.awt.event.*;
    * @author  yccheok
    public class NewJFrame extends javax.swing.JFrame {
        /** Creates new form NewJFrame */
        public NewJFrame() {
            initComponents();
                    /* Combo Box Added In JFrame. Work as expected. */
                    final JComboBox comboBox = new JComboBox();
                    comboBox.addItem("Snowboarding");
                    comboBox.addItem("Rowing");
                    comboBox.addItem("Chasing toddlers");   
                    comboBox.setEditable(true);
                    comboBox.getEditor().getEditorComponent().addKeyListener(new KeyAdapter() {
                       public void keyReleased(KeyEvent e) {
                           if(e.getKeyCode() == KeyEvent.VK_ENTER) {
                               System.out.println("is enter");
                               return;
                           System.out.println("typed");
                           comboBox.setSelectedIndex(0);
                           comboBox.showPopup();
                    getContentPane().add(comboBox, java.awt.BorderLayout.SOUTH);
        public JTable getMyTable() {
            return new JTable() {
                 Combo Box Added In JTable as cell editor. Didn't work as expected:
                 1. Exception thrown when show pop up.
                 2. Unable to capture enter key event.
                public TableCellEditor getCellEditor(int row, int column) {
                    final JComboBox comboBox = new JComboBox();
                    comboBox.addItem("Snowboarding");
                    comboBox.addItem("Rowing");
                    comboBox.addItem("Chasing toddlers");   
                    comboBox.setEditable(true);
                    comboBox.getEditor().getEditorComponent().addKeyListener(new KeyAdapter() {
                       public void keyReleased(KeyEvent e) {
                           if(e.getKeyCode() == KeyEvent.VK_ENTER) {
                               System.out.println("is enter");
                               return;
                           System.out.println("typed");
                           comboBox.setSelectedIndex(0);
                           comboBox.showPopup();
                    return new DefaultCellEditor(comboBox);
        /** This method is called from within the constructor to
         * initialize the form.
         * WARNING: Do NOT modify this code. The content of this method is
         * always regenerated by the Form Editor.
        // <editor-fold defaultstate="collapsed" desc=" Generated Code ">                         
        private void initComponents() {
            jScrollPane1 = new javax.swing.JScrollPane();
            jTable1 = getMyTable();
            setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
            jTable1.setModel(new javax.swing.table.DefaultTableModel(
                new Object [][] {
                    {null, null, null, null},
                    {null, null, null, null},
                    {null, null, null, null},
                    {null, null, null, null}
                new String [] {
                    "Title 1", "Title 2", "Title 3", "Title 4"
            jScrollPane1.setViewportView(jTable1);
            getContentPane().add(jScrollPane1, java.awt.BorderLayout.CENTER);
            pack();
        }// </editor-fold>                       
         * @param args the command line arguments
        public static void main(String args[]) {
            java.awt.EventQueue.invokeLater(new Runnable() {
                public void run() {
                    new NewJFrame().setVisible(true);
        // Variables declaration - do not modify                    
        private javax.swing.JScrollPane jScrollPane1;
        private javax.swing.JTable jTable1;
        // End of variables declaration                  
    }

    You need to create a custom CellEditor which will prevent these problems from occurring. The explanation behind the problem and source code for the new editor can be found at Thomas Bierhance's site http://www.orbital-computer.de/JComboBox/. The description of the problem and the workaround are at the bottom of the page.

  • Editor's autocomplete option for " in JSE

    Hi,
    I'm new to Sun's Java Studio Enterprise and i found a default option that i don't like.
    Can someone tell me how to turn off the autocomplete for the ". I'm getting " all over the place when i cut an paste. I've looked all over the place anc cant find were to turn it off
    Thanks in advance

    To disable autocomplete:
    1) For JSE 8
    Tools ->Options
    Expand
    Editing->Editor Settings->Java Editor and uncheck appropriate checkbox
    2) For Ent Pack 5.5
    Tools->Options and then
    Editor->Code Completion and uncheck the check boxes

  • The security database on the server does not have a computer account for this workstation trust relationship

    When I try to log on to my DC it says "The security database on the server does not have a computer account for this workstation trust relationship". It won't let me log on. I installed another server server 2012r2  (its virtual )
    and I can get to ADSI edit. 
    I think what happened was I had a pc that could not connect without unplugging the network cable. So I found this fix 
    FIX: “The security database on the server does not have a computer account for this workstation trust relationship”2032011
    I’ve seen a lot of solutions, or suggestions rather, with regard to the error in the title of this post.  In my experience, the problem can almost always be resolved without extra domain add/removes and reboots, which is the most prevalent solution I have
    seen around.  Usually, this issue is due to a mismatch between attributes of the computer account in Active Directory and those values on the system itself.  Here are the steps I take to fix this issue when it crops up:
    Open up Active Directory Users & Computers pointed to the domain the computer account resides in
    From the “View” pull-down menu, make sure that “Advanced Features” is checked
    Navigate to the part of your organizational unit (OU) structure where the computer account for this server resides
    Open the Properties for the computer object
    Choose the “Attribute Editor” tab on the Properties dialog box
    Check the Attributes dNSHostName & servicePrincipalName – anywhere that a fully qualified hostname is specified (e.g. myserver.mydomainname.com), make sure that the entry matches the hostname
    you have configured when you go here on your server: Start -> Computer -> Right-Click, Properties -> Change Settings (under “Computer name, domain… settings”) -> Full Computer Name
    As an example, for a fictitious W2K8 R2 server whose Full Computer Name is “srv1.mydomainname.com”, these attribute/value pairs should be in Active Directory:
    dNSHostName:
    srv1.mydomainname.com
    servicePrincipalName:
    HOST/SRV1
    HOST/srv1.mydomainname.com
    RestrictedKrbHost/SRV1
    RestrictedKrbHost/srv1.mydomainname.com
    TERMSRV/SRV1
    TERMSRV/srv1.mydomainname.com"
    Not reading it carefully I add a computer with the same name as the pc having the issue and followed the above. The problem is that I did not notice that the spn did not want the name of my server (serv1) but the name of the trouble
    pc.
    dcdiag output
    PS C:\Users\administrator.TOM> dcdiag.exe
    Directory Server Diagnosis
    Performing initial setup:
       Trying to find home server...
       ***Error: DC3 is not a Directory Server.  Must specify /s:<Directory Server> or  /n:<Naming Context> or nothing to
       use the local machine.
       ERROR: Could not find home server.
    PS C:\Users\administrator.TOM> dcdiag.exe /s:DC2
    Directory Server Diagnosis
    Performing initial setup:
       * Identified AD Forest.
       Done gathering initial info.
    Doing initial required tests
       Testing server: Default-First-Site\DC2
          Starting test: Connectivity
             The host 9e0dca7a-d017-445a-b354-adee5ff53d48._msdcs.TOM could not be resolved to an IP address. Check the DN
             server, DHCP, server name, etc.
             Neither the the server name (DC2.TOM) nor the Guid DNS name (9e0dca7a-d017-445a-b354-adee5ff53d48._msdcs.TOM)
             could be resolved by DNS.  Check that the server is up and is registered correctly with the DNS server.
             Got error while checking LDAP and RPC connectivity. Please check your firewall settings.
             ......................... DC2 failed test Connectivity
    Doing primary tests
       Testing server: Default-First-Site\DC2
          Skipping all tests, because server DC2 is not responding to directory service requests.
       Running partition tests on : ForestDnsZones
          Starting test: CheckSDRefDom
             ......................... ForestDnsZones passed test CheckSDRefDom
          Starting test: CrossRefValidation
             ......................... ForestDnsZones passed test CrossRefValidation
       Running partition tests on : DomainDnsZones
          Starting test: CheckSDRefDom
             ......................... DomainDnsZones passed test CheckSDRefDom
          Starting test: CrossRefValidation
             ......................... DomainDnsZones passed test CrossRefValidation
       Running partition tests on : Schema
          Starting test: CheckSDRefDom
             ......................... Schema passed test CheckSDRefDom
          Starting test: CrossRefValidation
             ......................... Schema passed test CrossRefValidation
       Running partition tests on : Configuration
          Starting test: CheckSDRefDom
             ......................... Configuration passed test CheckSDRefDom
          Starting test: CrossRefValidation
             ......................... Configuration passed test CrossRefValidation
       Running partition tests on : TOM
          Starting test: CheckSDRefDom
             ......................... TOM passed test CheckSDRefDom
          Starting test: CrossRefValidation
             ......................... TOM passed test CrossRefValidation
       Running enterprise tests on : TOM
          Starting test: LocatorCheck
             ......................... TOM passed test LocatorCheck
          Starting test: Intersite
             ......................... TOM passed test Intersite
    PS C:\Users\administrator.TOM> regsvr32 schmmgmt.dll
    PS C:\Users\administrator.TOM> netdig /fix
    netdig : The term 'netdig' is not recognized as the name of a cmdlet, function, script file, or operable program.
    Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
    At line:1 char:1
    + netdig /fix
    + ~~~~~~
        + CategoryInfo          : ObjectNotFound: (netdig:String) [], CommandNotFoundException
        + FullyQualifiedErrorId : CommandNotFoundException
    PS C:\Users\administrator.TOM> Setup /PrepareSchema
    Setup : The term 'Setup' is not recognized as the name of a cmdlet, function, script file, or operable program. Check
    the spelling of the name, or if a path was included, verify that the path is correct and try again.
    At line:1 char:1
    + Setup /PrepareSchema
    + ~~~~~
        + CategoryInfo          : ObjectNotFound: (Setup:String) [], CommandNotFoundException
        + FullyQualifiedErrorId : CommandNotFoundException
    PS C:\Users\administrator.TOM> netdiag /test
    netdiag : The term 'netdiag' is not recognized as the name of a cmdlet, function, script file, or operable program.
    Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
    At line:1 char:1
    + netdiag /test
    + ~~~~~~~
        + CategoryInfo          : ObjectNotFound: (netdiag:String) [], CommandNotFoundException
        + FullyQualifiedErrorId : CommandNotFoundException
    PS C:\Users\administrator.TOM> nslooup
    nslooup : The term 'nslooup' is not recognized as the name of a cmdlet, function, script file, or operable program.
    Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
    At line:1 char:1
    + nslooup
    + ~~~~~~~
        + CategoryInfo          : ObjectNotFound: (nslooup:String) [], CommandNotFoundException
        + FullyQualifiedErrorId : CommandNotFoundException
    PS C:\Users\administrator.TOM>

    Ok fixed. 
    At a elevated cmd prompt run ;
    C:\Users\administrator.TOM>setspn -x
    As you can see the DC serv1 had duplicate SPNs.
    Checking domain DC=TOM
    Processing entry 1
    HOST/serv1.TOM is registered on these accounts:
            CN=SERV1,OU=Domain Controllers,DC=TOM
            CN=C00049,CN=Computers,DC=TOM
    {14E52635-0A95-4a5c-BDB1-E0D0C703B6C8}/TOWN-HBWJ29ZOQC is registered on these ac
    counts:
            CN=Administrator,CN=Users,DC=TOM
            CN=TOWN-HBWJ29ZOQC,CN=Computers,DC=TOM
    {14E52635-0A95-4a5c-BDB1-E0D0C703B6C8}/town-hbwj29zoqc.TOM is registered on thes
    e accounts:
            CN=Administrator,CN=Users,DC=TOM
            CN=TOWN-HBWJ29ZOQC,CN=Computers,DC=TOM
    RestrictedKrbHost/serv1 is registered on these accounts:
            CN=C00049,CN=Computers,DC=TOM
            CN=SERV1,OU=Domain Controllers,DC=TOM
    RestrictedKrbHost/serv1.TOM is registered on these accounts:
            CN=C00049,CN=Computers,DC=TOM
            CN=SERV1,OU=Domain Controllers,DC=TOM
    found 5 groups of duplicate SPNs.
    Went to the computers OU and changed computer c00049 to the correct SPN. Now I have a new issues, I'll start a new thread.

  • AutoComplete not working properly in Outlook 2013

    The AutoComplete List is a feature which displays suggestions for names and e-mail addresses as you begin to type them. These suggestions are possible matches from a list of names and e-mail addresses from the e-mail messages that you have
    sent.
    AutoComplete is a convenient feature when we send an email message, if it suddenly stops working, it becomes a real pain to the sender. If you encountered this problem, you can use the steps below to troubleshoot it and make it work again.
    1. Check if the AutoComplete feature is turned on.
    By default, the AutoComplete feature is enabled. If it isn’t working, of course the first thing to check is whether the feature is enabled. To check it, go to
    File tab> Options > Mail, scroll down to the
    Send Messages section and make sure the “Use Auto-Complete List to suggest names when typing in the To, CC, and Bcc lines” option is selected.
    2. Check if AutoComplete works in OWA
    Since Outlook 2010 and Outlook 2013 doesn’t store nicknames in .NK2 file, it stores the autocomplete cache in the user’s mailbox and caches to a local cache file. So, the OWA uses the same autocomplete list, we can log into OWA and check if AutoComplete
    works.
    If it works in OWA, it means the autocomplete list is OK. The problem lies in the Outlook client side. If the autocomplete doesn’t even work in OWA, the autocomplete list could be corrupt.
    3. An Add-in may cause AutoComplete to not work correctly.
    Problematic add-in may cause a number of issues in Outlook. If an add-in cause Outlook to crash, the AutoComplete lists could be affected and become corrupt.
    To determine if a problematic add-in is the culprit, go to File > Options > Add-ins, disable all add-ins and then check if the problem continues. If the problem is gone with all add-in disabled, we can try re-enabling add-ins one-by-one to isolate
    the problematic add-in:
    (1) Start Outlook.
    (2) On the File tab, click Options,
    then click Add-Ins.
    (3) In the bottom of the Outlook Options dialog box, make sure the
    Manage drop-down shows COM Add-ins, and then click
    Go.
    (4) In the COM Add-Ins dialog box, select to enable an add-in and then click
    OK.
    (5) Repeat step 4 until you have all of the required Outlook functionality and Outlook remains stable.
    If Outlook becomes unstable after re-enabling a particular COM add-in, disable that COM add-in and then contact the add-in vendor to see if they have an updated version that is more stable with Outlook.
    For detailed steps about this, you can refer to the following KB article and look at the “Re-enabling COM add-ins one-by-one” section.
    http://support.microsoft.com/kb/2934538
    4. Reset the AutoComplete list.
    If AutoComplete is enabled but still not working in OWA, it could be that the corruption within the AutoComplete list is causing auto-complete not to work correctly. You’ll need to manually delete the AutoComplete list to fix the issue.
    Note: You will lose all addresses stored in AutoComplete.
    If there is only one or several AutoComplete entries are corrupt, we can remove them by clicking ‘X’ or pressing
    Delete key.
    If all entries are corrupt, we can use one of the following two methods to delete the AutoComplete lists:
    Method 1: Use the Empty Auto-complete List button.
    1. Open Outlook.
    2. On the File tab, click Options > Mail
    tab.
    3. Under Send Messages, click Empty Auto-Complete List.
    It’s also recommended to untick the “Use Auto-Complete List to suggest names when typing in the To, Cc, and Bcc lines”.
    4.  Restart Outlook and tick the “Use Auto-Complete List to suggest names when typing in the To, Cc, and Bcc lines” box again.
    Test if the issue persists.
    Method 2: Use the /CleanAutoCompleteCache switch.
    1. Exit Outlook.
    2. Press Windows key + R to open the Run command.
    3. Type Outlook.exe /CleanAutoCompleteCache in the Run box and press
    Enter.
    5. Reach the maximum number of AutoComplete entries
    Outlook limits the number of entries that you can save in the AutoComplete list. If you find some names unexpectedly removed from your autocomplete list, you may consider this situation.
    Outlook 2013 has a limit of 1000 entries for the AutoComplete list. After you reach this limit, Outlook uses an internal algorithm to determine the best names to remove from the list. It does this based on a usage weighting. To avoid
    this situation, you can use one of the following two methods:
    Method 1: You can manually remove some AutoComplete entries that you no longer use. We can remove them by clicking ‘X’ or pressing
    Delete key as we mentioned in portion 4.
    Method 2: You can change the limit for the AutoComplete list by modifying the registry.
    Because this configuration is untested, we do not recommended it. If you have a larger AutoComplete list, you could also lose a larger number of cached entries if your AutoComplete cache becomes unusable because of corruption. Given this disclaimer,
    you can use the following registry data to increase the AutoComplete list limit in Outlook.
    Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these
    steps carefully. For added protection, back up the registry before you modify it.
    1. Exit Outlook.
    2. Start Registry Editor. Press the Windows key, type regedit and then press
    Enter.
    3. Add the following value:
    HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Outlook\AutoNameCheck
    DWORD: MaxNickNames
    Value: Type the number in
    decimal form.
    Note: Try increasing the limit by only a marginal amount to test the new limit. For example, to create a 20 percent increase in the limit in Outlook 2013, you would specify 1200 for the
    MaxNickNames value.
    4. Exit Registry Editor and restart Outlook.
    More information
    To avoid the risk of losing your AutoComplete list entries, it’s recommended to back up them regularly. In Outlook 2013, the AutoComplete list entries are stored in a hidden message in your default message store. To back up the entries, please follow
    these steps:
    1. Exit Outlook, and then close Outlook Web Access or Outlook Web App (OWA) on all workstations that are connected to your mailbox.
    2. Download and install MFCMAPI here:
    http://mfcmapi.codeplex.com
    3. Run mfcmapi.exe.
    4. Click Session > Logon.
    5. Select your profile, and then click OK.
    6. Select the data file that use your email address as the filename, and then double-click it.
    7. Expand Root Mailbox, and then expand IPM_SUBTREE.
    8. Find Inbox and right-click on it, and then click Open Associated Content Table.
    9. In the newly opened MFCMAPI window, under the Subject column, right-click the item that has the subject
    IPM.Configuration.Autocomplete, and then click Export Message.
    10. In the Save Message To File window, select
    MSG file (UNICODE) from the drop-down list, and then click
    OK.
    11. Select a folder location to which you want to save the message, and then click
    Save.
    If you have any questions and comments on this topic, please feel free to post here.
    Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

    Hi,
    I'm marking the reply as answer as there has been no update for a couple of days.
    If you come back to find it doesn't work for you, please reply to us and unmark the answer.
    Regards,
    Melon Chen
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please click
    here

  • Can't I use my Scanner with the Elements 10 editor without the organizer??

    I have been using Photoshop Elements for a looong time to help me create the product images I need for my online business. It's been a love-love relationship... until I took advantage of a special offer and bought Elements 10. Now it seems the only way I can scan images is thru the Organizer.... and the organizer is something I don't need.
    Is there a way to scan my images thru the Editor only... and completely bypass the organizer (as I'm able to do with my older version of Elements)? Like a twain plugin I can install or something?
    I may scan 10 images and decide to use only 3 of them... and those are the only ones I save.
    With the way PSE10 is set up using the Organizer to scan, it's saving all 10 of them. Not to mention the extra steps of scanning thru the Organizer... (which means that pop-up window for my scanner every time), back over to the editor to pull the images in for editing, back to my files to delete the ones the organizer saved that I don't want... etc etc etc.
    It's like 5-6 extra steps altogether and a huge time-sink for me (you know the old saying... time is money).
    If there's no way to bypass the Organizer for scanning.... can I get a refund on my purchase? My older version of Elements works beautifully for me...  I was just hoping for  more sophisticated image editing capabilities.
    VERY frustrated right now.

    Thank you very much for your explanation which I fully understand.  Since a "fix", as you say, is not a solution might it not be a good idea to alert purchasers of the latest editions of Elements that they have an option to try this alteration to the installation in order to be able to import images from a scanner?  (My own experience with versions prior to 9 always worked perfectly!)  I do not know but does Photoshop CS5 allow the user to import images from a scanner or does the user have to use a similar solution to what applies to Photoshop Elements?  I find Elements to be a very good app and am sure it is a good selling product for Adobe for amateur/semi-pro users that the alternative that I suggest may be a useful tool for existing or new users who want or need the capability to import from a scanner rather than having to go through other more difficulty and time consuming ways of doing the same task.  Kindest regards and with my best intentions.
    Fergus Cooper
    Date: Tue, 20 Dec 2011 12:50:51 -0700
    From: [email protected]
    To: [email protected]
    Subject: Can't I use my Scanner with the Elements 10 editor without the organizer??
        Re: Can't I use my Scanner with the Elements 10 editor without the organizer??
        created by Barbara B. in Photoshop Elements - View the full discussion
    It's not a "fix", exactly. The TWAIN plug-in causes a lot of crashing in PSE so in the past couple of versions adobe makes you install it if you want it.
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4096095#4096095
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4096095#4096095. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Photoshop Elements by email or at Adobe Forums
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

Maybe you are looking for