Problem in adding a reference to a dll while creating a plugin.

I need to create a connection between Adobe indesign (layout design tool) and Mark logic server.
For that i have to create a plugin for indesign which establishes connection with marklogic.
As a test project, i was successful in creating a sample web form application that connects to marklogic and fetches data from it.There i was getting directly an option to browse for marklogic dll under "add reference".
To create a plgin,a tool has been given by Indesign sdk,called dollyXs which generates basic vc++ code (vc++ project in visual studio 2005) for developing plugins.
In this VC++ project of visual studio, when i tried to add a reference to marklogic dll, im not getting any option under "add reference" for browsing that dll and adding it to the vc++ project.
Kindly help me and thnx in advance.
please mail me at [email protected]
Regards,
sunny.

you can only add .lib files under add reference and not dll.
When you are creating a dll, an import library with the same name as of dll and extension with .lib is getting generated.
Copy the lib file say Marklogic.lib and put it in the sdkprj folder and put the reference of this file ( marklogic.lib) in the add reference ( BTW I am using Visual Studio 2003 version 7.1.And in it I add this reference under ProjectPropertyPages->linker->Input->Additonal Dependancies).
When you are starting the InDesign application make sure that u put the Makrlogic.dll InDesign application's folder.
Hope this helps.
Regards,
Yopangjo.

Similar Messages

  • Not able to GET_SCHEMA from MYSQL using mysql_ecma2.dll while creating MYSQL_ECMA

    i have made a MYSQL_ECMA.dll (using sql_ecma.dll) but when i create that ECMA it is unable to create get_schemafrom my sql
    Database=test
    table=HR
    public Schema GetSchema(KeyedCollection<string, ConfigParameter> configParameters)
    Microsoft.MetadirectoryServices.SchemaType personType = Microsoft.MetadirectoryServices.SchemaType.Create("Person", false);
    myServer = configParameters["Server"].Value;
    myDB = configParameters["Database"].Value;
    myTable = configParameters["Table"].Value;
    DataSet myData = this.MYSQLSchema(myServer, myDB, myTable);
    string[] MYSQLSchema =new string[myData.Tables["Columns"].Rows.Count];
    for (int i = 0; i <= myData.Tables["Columns"].Rows.Count - 1; i++)
    MYSQLSchema[i]=myData.Tables["Columns"].Rows[i].ItemArray.GetValue(0).ToString().Trim();
    string myattrib=MYSQLSchema[i];
    if (myattrib == "EmployeeID")
    personType.Attributes.Add(SchemaAttribute.CreateAnchorAttribute(myattrib, AttributeType.String));
    else
    personType.Attributes.Add(SchemaAttribute.CreateSingleValuedAttribute(myattrib, AttributeType.String));
    Schema schema = Schema.Create();
    schema.Types.Add(personType);
    return schema;
    public DataSet MYSQLSchema(string server,string database, string table)
    myconnectionc =("Server = '" + server + "';Initial Catalog='" + database + "';Integrated Security=True");
    conc =new MySqlConnection(myconnectionc);
    cmdc =new MySqlCommand();
    cmdc.CommandType=CommandType.Text;
    string cmdtextc="Select COLUMN_NAME from Information_Schema.Columns where TABLE_Name = '" + table + "'";
    cmdc.CommandText=cmdtextc;
    cmdc.Connection=conc;
    adapter =new MySqlDataAdapter(cmdc);
    dac =new DataSet();
    adapter.Fill(dac, "Columns");
    return dac;

    It must be problem with your query. You are converting date into DD/MM/YYYY format and passing it to the query. As per my knowledge, MySQL default date format is YYYY-MM-DD. YYYY-MM-DD is not equal to DD/MM/YYYY. Hence you would not get any result. I would suggest you to validate the query. yOu try executing query directly in mySQL
    select edate, particulars, chequeno, fromto, deposit, withdrawal, cleared,cdate, details from passbook WHERE edate BETWEEN 01/01/2007 and 31/12/2007 order by edate desc
    If you are able to execute above query in MySQL without fail, then it is something we may need to investigate further. Hope above query may not yields you any records. If so, that could be the problem. You may need to convert your date (SimpleDateFormat) in below format:
    YYYY-MM-DD.
    It should work. Let me know, still if you have any questions further.

  • Unable to load DLL ELCOMProxies.dll while creating Enterprise Message Sourc

    Hi All,
    I am getting following error when I try to create Enterprise Message Source of type "Oracle (AS JMS and OJMS)”.
    Oracle.BAM.Common.Exceptions.CommonException: Unable to create Message Receiver Admin COM object: Error=System.DllNotFoundException: Unable to load DLL (ELCOMProxies.dll).
    at Oracle.BAM.Middleware.Persistence.COMProxyGeneral.fnCreateObject(String strCLSIDObject, String strCLSIDInterface, IntPtr& ipInterface, String& rstrErrorCode)
    at Oracle.BAM.Middleware.Persistence.COMProxyGeneral.Create(String strCLSIDObject, String strCLSIDInterface)
    at Oracle.BAM.Middleware.Persistence.EnterpriseMessageSourceTypes.RetrieveCharacteristics()
    at Oracle.BAM.Middleware.Persistence.EnterpriseMessageSourceTypes.InternalLoad(SystemObject soEMST)
    at Oracle.BAM.Middleware.Persistence.EnterpriseMessageSourceTypes.LoadByID(String strID)
    at Oracle.BAM.Architect.Sources.CreateEdit()
    Please let me know if anybody has any idea about it.
    Thanks,
    Netra

    Hiya,
     The error is because the app tried to import that driver but it was not found. So, you will need
    to recheck your project setup, provide locations for imports, etc. I am not familar with Intermec Printer.
    The code snippet does not show any information about the DLL import, check there too.
    Hope this helps. :)

  • DBDriver failed to load dbd_oci.dll while creating universe

    Hello All,
           I am trying  to create a universe with Oracle as source. When I logged into Universe Designer and proceed to created a universe by selecting oracle 11 as data source, the designer throws an error:
    " (CS) "DBDriver failed to load : C:\Program Files (x86)\Business Objects\BusinessObjects Enterprise 12.0\win32_x86\dataAccess\connectionServer\dbd_oci.dll (%1 is not a valid Win32 application.)" .
    Below are the environment details:
    OS : windows 2008 server 64 bit
    BO Server : BOE 3.1 sp3 32 bit
    CMS : MySQL 5.1
    Oracle Client:  Oracle 11g 64 bit client is installed.
    I have set the path and environment variables relating to oracle as well.
    If I create a DSN and test connection it works fine. Please let me know your suggestions and inputs to resolve this error.
    Thanks
    Mahesh

    As BOCP-BOE, said, BOE XI 3.1 is a 32-bit application and is designed to 32-bit middleware connectivity. This is mentioned in the SAP BusinessObjects Enterprise XI 3.1 SP3 for Windows u2013 Supported Platforms document.
    The document is available at http://service.sap.com/~form/sapnet?_SHORTKEY=01100035870000726132&_SCENARIO=01100035870000000202&_OBJECT=011000358700000555642010E
    (You will need an SMP login)

  • Adding a column at item level while creating PO using ME21N

    Hi,
    My requirement is to add new column in Item overview of PO at the time of creation. Same should be displayed in ME22N and ME23N.
    I tried doing same using BADI ME_PROCESS_PO_CUST using interface PROCESS_ITEM after adding field QSSYS in EKPO table.
    I have also tried exit MM06E005  / EXIT_SAPMM06E_013.
    Kindly let me know steps.
    Thanks & Regards,
    Vidhi

    Hi Vidhi,
    I think you can not add new column in standard one. Create a custom tab at item level and use that.
    [Me21n Tab|http://wiki.sdn.sap.com/wiki/display/ABAP/DetailedexplanationaboutBADIandthewaystofindtheBADIwithanexample%28ME23n+transaction%29]
    Regards,
    Madhu.

  • Solved: "Error in loading DLL" adding vb Reference to Photoshop CS5.1 (CS5.5)

    It took me a while to solve this so I thought I'd post the solution.
    On two machines (one 32-bit the other 64-bit) running the new Phonoshop CS5.1 that ships with CS5.5, I had trouble adding a reference in vb (vba) to the Photoshop Object Library for scripting:
    I would just get: Error in Loading DLL
    It appears that on both machines, the CS5.5 installer incorectly referenced the dll which is called "ScriptingSupport.8li" (not exactly a .dll-looking name but anyway ;-)
    The Adobe CS5.5 installer set the system registry to look for the file in:
    C:\Program Files\Adobe\Adobe Photoshop CS5.1 (64 Bit)\Plug-ins\Automate
    or
    C:\Program Files\Adobe\Adobe Photoshop CS5.1\Plug-ins\Automate
    but installed the file to:
    C:\Program Files\Adobe\Adobe Photoshop CS5.1 (64 Bit)\Plug-ins\Extensions
    or
    C:\Program Files\Adobe\Adobe Photoshop CS5.1\Plug-ins\Extensions
    I copied ScriptingSupport.8li from the Extensions folder to the Automate folder and it started working.
    Hope this helps someone else. :-)
    Tony

    Yes, another user has the issue with windows "mandatory profiles", where rights are severely limited for users (french forum): http://forums.adobe.com/thread/948264

  • JTable sorting - problem when adding elements (complete code inside)

    I�m writing this email with reference to a recent posting here but this time with the code example. (I apologize for the duplicated posting � this time it will be with the code)
    Problem: when adding more elements to the JTable (sorted) the exception: ArrayIndexOutOfBoundsException is thrown.
    Example: If the elements in the table are 10 and then the user requests for 8 � the table will produce the correct result. However, if the user will ask for 11 items (>10) the exception will be thrown.
    The program: The program below (compiles and running). A JTable is constructed with 3 items, when you click the button - the return result should be 4 items - this will generate the error, WHY?
    I would highly appreciate your thoughts why this is happening and most importantly � how to fix it.
    Thanks a lot
    3 files:
    (1) TableSorterDemo
    (2) Traveler
    (3)TableSorter
    //TableSorterDemo:
    package sorter;
    import javax.swing.DefaultListModel;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JScrollPane;
    import javax.swing.JTable;
    import javax.swing.table.AbstractTableModel;
    import java.awt.BorderLayout;
    import java.awt.Dimension;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    * TableSorterDemo is like TableDemo, except that it
    * inserts a custom model -- a sorter -- between the table
    * and its data model.  It also has column tool tips.
    public class TableSorterDemo implements ActionListener
         private JPanel superPanel;
         private JButton clickMe = new JButton("click me to get diff data");
         private boolean DEBUG = false;
         private DefaultListModel defaultListModel;
         private JTable table;
        public TableSorterDemo()
             superPanel = new JPanel(new BorderLayout());
             defaultListModel = new DefaultListModel();
             init1();
            TableSorter sorter = new TableSorter(new MyTableModel(defaultListModel)); //ADDED THIS     
            table = new JTable(sorter);             //NEW
            sorter.setTableHeader(table.getTableHeader()); //ADDED THIS
            table.setPreferredScrollableViewportSize(new Dimension(500, 70));
            //Set up tool tips for column headers.
            table.getTableHeader().setToolTipText(
                    "Click to specify sorting; Control-Click to specify secondary sorting");
            //Create the scroll pane and add the table to it.
            JScrollPane scrollPane = new JScrollPane(table);
            //Add the scroll pane to this panel.
            superPanel.add("Center", scrollPane);
            superPanel.add("South",clickMe);
            clickMe.addActionListener(this);              
        public JPanel getPanel()
             return superPanel;
        public void init1()
             //in real life this will be done from the db
             Traveler a = new Traveler();
             Traveler b = new Traveler();
             Traveler c = new Traveler();
             a.setFirstName("Elvis");
             a.setLastName("Presley");
             a.setSprot("Ping Pong");
             a.setNumYears(3);
             a.setVegetarian(true);
             b.setFirstName("Elton");
             b.setLastName("John");
             b.setSprot("Soccer");
             b.setNumYears(2);
             b.setVegetarian(true);
             c.setFirstName("shaquille");
             c.setLastName("oneil");
             c.setSprot("Golf");
             c.setNumYears(22);
             c.setVegetarian(true);
             defaultListModel.addElement(a);
             defaultListModel.addElement(b);
             defaultListModel.addElement(c);
        public void init2()
             //in real life this will be done from the db
             Traveler d = new Traveler();
             Traveler e = new Traveler();
             Traveler f = new Traveler();
             Traveler g = new Traveler();
             d.setFirstName("John");
             d.setLastName("Smith");
             d.setSprot("Tennis");
             d.setNumYears(32);
             d.setVegetarian(true);
             e.setFirstName("Ron");
             e.setLastName("Cohen");
             e.setSprot("Baseball");
             e.setNumYears(12);
             e.setVegetarian(true);
             f.setFirstName("Donald");
             f.setLastName("Mac Novice");
             f.setSprot("Vallyball");
             f.setNumYears(1);
             f.setVegetarian(true);
             g.setFirstName("Eithan");
             g.setLastName("Superstar");
             g.setSprot("Vallyball");
             g.setNumYears(21);
             g.setVegetarian(true);
             defaultListModel.addElement(d);
             defaultListModel.addElement(e);
             defaultListModel.addElement(f);
             defaultListModel.addElement(g);            
        class MyTableModel extends AbstractTableModel
             private DefaultListModel myModel;
             public MyTableModel(DefaultListModel m)
                  myModel=m;
            private String[] columnNames = {"First Name",
                                            "Last Name",
                                            "Sport",
                                            "# of Years",
                                            "Vegetarian"};
            public int getColumnCount()
                return columnNames.length;
            public int getRowCount()
                return myModel.size();
            public String getColumnName(int column)
                 return getNames()[column];             
             public String[] getNames()
                  String[] names = {"First Name", "Last Name", "Sport", "# of Years", "Vegetarian"};
                  return names;
            public Object getValueAt(int row, int col)
                 return distributeObjectsInTable(row, col, (Traveler) myModel.elementAt(row));
            public Object distributeObjectsInTable(int row, int col, Traveler tr)
               switch(col)
                         case 0:
                              return tr.getFirstName();
                         case 1:
                           return tr.getLastName();
                      case 2:
                           return tr.getSprot();
                      case 3:
                           return new Integer(tr.getNumYears());
                      case 4:
                           return new Boolean (tr.isVegetarian());
                     default:
                         return "Error";
            public Class getColumnClass(int c)
                return getValueAt(0, c).getClass();
        private static void createAndShowGUI()
            //Make sure we have nice window decorations.
            JFrame.setDefaultLookAndFeelDecorated(true);
            //Create and set up the window.
            JFrame frame = new JFrame("TableSorterDemo");
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            //Create and set up the content pane.
            TableSorterDemo newContentPane = new TableSorterDemo();
            newContentPane.getPanel().setOpaque(true); //content panes must be opaque
            frame.setContentPane(newContentPane.getPanel());
            //Display the window.
            frame.pack();
            frame.setVisible(true);
        public static void main(String[] args)
            //Schedule a job for the event-dispatching thread:
            //creating and showing this application's GUI.
            javax.swing.SwingUtilities.invokeLater(new Runnable()                   
                public void run()
                    createAndShowGUI();
         public void actionPerformed(ActionEvent ae)
              if (ae.getSource()==clickMe)
                   defaultListModel.removeAllElements();
                   init2(); //if the size of the model was less than 2 items - the result will be ok.
                              //in other words, if you commens the last 2 rows of this method (addElement(f) & g)
                             // the result will be fine.
                   table.updateUI();          
    }//(2) Traveler
    package sorter;
    public class Traveler
         private String firstName;
         private String lastName;
         private String sprot;
         private int numYears;
         private boolean vegetarian;
         public String getFirstName()
              return firstName;
         public String getLastName()
              return lastName;
         public int getNumYears()
              return numYears;
         public String getSprot()
              return sprot;
         public boolean isVegetarian()
              return vegetarian;
         public void setFirstName(String firstName)
              this.firstName = firstName;
         public void setLastName(String lastName)
              this.lastName = lastName;
         public void setNumYears(int numYears)
              this.numYears = numYears;
         public void setSprot(String sprot)
              this.sprot = sprot;
         public void setVegetarian(boolean vegetarian)
              this.vegetarian = vegetarian;
    }//(3)TableSorter
    package sorter;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    import java.util.List;
    import javax.swing.*;
    import javax.swing.event.TableModelEvent;
    import javax.swing.event.TableModelListener;
    import javax.swing.table.*;
    public class TableSorter extends AbstractTableModel {
        protected TableModel tableModel;
        public static final int DESCENDING = -1;
        public static final int NOT_SORTED = 0;
        public static final int ASCENDING = 1;
        private static Directive EMPTY_DIRECTIVE = new Directive(-1, NOT_SORTED);
        public static final Comparator COMPARABLE_COMAPRATOR = new Comparator() {
            public int compare(Object o1, Object o2) {
                return ((Comparable) o1).compareTo(o2);
        public static final Comparator LEXICAL_COMPARATOR = new Comparator() {
            public int compare(Object o1, Object o2) {
                return o1.toString().compareTo(o2.toString());
        private Row[] viewToModel;
        private int[] modelToView;
        private JTableHeader tableHeader;
        private MouseListener mouseListener;
        private TableModelListener tableModelListener;
        private Map columnComparators = new HashMap();
        private List sortingColumns = new ArrayList();
        public TableSorter() {
            this.mouseListener = new MouseHandler();
            this.tableModelListener = new TableModelHandler();
        public TableSorter(TableModel tableModel) {
            this();
            setTableModel(tableModel);
        public TableSorter(TableModel tableModel, JTableHeader tableHeader) {
            this();
            setTableHeader(tableHeader);
            setTableModel(tableModel);
        private void clearSortingState() {
            viewToModel = null;
            modelToView = null;
        public TableModel getTableModel() {
            return tableModel;
        public void setTableModel(TableModel tableModel) {
            if (this.tableModel != null) {
                this.tableModel.removeTableModelListener(tableModelListener);
            this.tableModel = tableModel;
            if (this.tableModel != null) {
                this.tableModel.addTableModelListener(tableModelListener);
            clearSortingState();
            fireTableStructureChanged();
        public JTableHeader getTableHeader() {
            return tableHeader;
        public void setTableHeader(JTableHeader tableHeader) {
            if (this.tableHeader != null) {
                this.tableHeader.removeMouseListener(mouseListener);
                TableCellRenderer defaultRenderer = this.tableHeader.getDefaultRenderer();
                if (defaultRenderer instanceof SortableHeaderRenderer) {
                    this.tableHeader.setDefaultRenderer(((SortableHeaderRenderer) defaultRenderer).tableCellRenderer);
            this.tableHeader = tableHeader;
            if (this.tableHeader != null) {
                this.tableHeader.addMouseListener(mouseListener);
                this.tableHeader.setDefaultRenderer(
                        new SortableHeaderRenderer(this.tableHeader.getDefaultRenderer()));
        public boolean isSorting() {
            return sortingColumns.size() != 0;
        private Directive getDirective(int column) {
            for (int i = 0; i < sortingColumns.size(); i++) {
                Directive directive = (Directive)sortingColumns.get(i);
                if (directive.column == column) {
                    return directive;
            return EMPTY_DIRECTIVE;
        public int getSortingStatus(int column) {
            return getDirective(column).direction;
        private void sortingStatusChanged() {
            clearSortingState();
            fireTableDataChanged();
            if (tableHeader != null) {
                tableHeader.repaint();
        public void setSortingStatus(int column, int status) {
            Directive directive = getDirective(column);
            if (directive != EMPTY_DIRECTIVE) {
                sortingColumns.remove(directive);
            if (status != NOT_SORTED) {
                sortingColumns.add(new Directive(column, status));
            sortingStatusChanged();
        protected Icon getHeaderRendererIcon(int column, int size) {
            Directive directive = getDirective(column);
            if (directive == EMPTY_DIRECTIVE) {
                return null;
            return new Arrow(directive.direction == DESCENDING, size, sortingColumns.indexOf(directive));
        private void cancelSorting() {
            sortingColumns.clear();
            sortingStatusChanged();
        public void setColumnComparator(Class type, Comparator comparator) {
            if (comparator == null) {
                columnComparators.remove(type);
            } else {
                columnComparators.put(type, comparator);
        protected Comparator getComparator(int column) {
            Class columnType = tableModel.getColumnClass(column);
            Comparator comparator = (Comparator) columnComparators.get(columnType);
            if (comparator != null) {
                return comparator;
            if (Comparable.class.isAssignableFrom(columnType)) {
                return COMPARABLE_COMAPRATOR;
            return LEXICAL_COMPARATOR;
        private Row[] getViewToModel() {
            if (viewToModel == null) {
                int tableModelRowCount = tableModel.getRowCount();
                viewToModel = new Row[tableModelRowCount];
                for (int row = 0; row < tableModelRowCount; row++) {
                    viewToModel[row] = new Row(row);
                if (isSorting()) {
                    Arrays.sort(viewToModel);
            return viewToModel;
        public int modelIndex(int viewIndex)
            return getViewToModel()[viewIndex].modelIndex;
        private int[] getModelToView()
            if (modelToView == null) {
                int n = getViewToModel().length;
                modelToView = new int[n];
                for (int i = 0; i < n; i++) {
                    modelToView[modelIndex(i)] = i;
            return modelToView;
        // TableModel interface methods
        public int getRowCount() {
            return (tableModel == null) ? 0 : tableModel.getRowCount();
        public int getColumnCount() {
            return (tableModel == null) ? 0 : tableModel.getColumnCount();
        public String getColumnName(int column) {
            return tableModel.getColumnName(column);
        public Class getColumnClass(int column) {
            return tableModel.getColumnClass(column);
        public boolean isCellEditable(int row, int column) {
            return tableModel.isCellEditable(modelIndex(row), column);
        public Object getValueAt(int row, int column) {
            return tableModel.getValueAt(modelIndex(row), column);
        public void setValueAt(Object aValue, int row, int column) {
            tableModel.setValueAt(aValue, modelIndex(row), column);
        // Helper classes
        private class Row implements Comparable {
            private int modelIndex;
            public Row(int index) {
                this.modelIndex = index;
            public int compareTo(Object o) {
                int row1 = modelIndex;
                int row2 = ((Row) o).modelIndex;
                for (Iterator it = sortingColumns.iterator(); it.hasNext();) {
                    Directive directive = (Directive) it.next();
                    int column = directive.column;
                    Object o1 = tableModel.getValueAt(row1, column);
                    Object o2 = tableModel.getValueAt(row2, column);
                    int comparison = 0;
                    // Define null less than everything, except null.
                    if (o1 == null && o2 == null) {
                        comparison = 0;
                    } else if (o1 == null) {
                        comparison = -1;
                    } else if (o2 == null) {
                        comparison = 1;
                    } else {
                        comparison = getComparator(column).compare(o1, o2);
                    if (comparison != 0) {
                        return directive.direction == DESCENDING ? -comparison : comparison;
                return 0;
        private class TableModelHandler implements TableModelListener {
            public void tableChanged(TableModelEvent e) {
                // If we're not sorting by anything, just pass the event along.            
                if (!isSorting()) {
                    clearSortingState();
                    fireTableChanged(e);
                    return;
                // If the table structure has changed, cancel the sorting; the            
                // sorting columns may have been either moved or deleted from            
                // the model.
                if (e.getFirstRow() == TableModelEvent.HEADER_ROW) {
                    cancelSorting();
                    fireTableChanged(e);
                    return;
                // We can map a cell event through to the view without widening            
                // when the following conditions apply:
                // a) all the changes are on one row (e.getFirstRow() == e.getLastRow()) and,
                // b) all the changes are in one column (column != TableModelEvent.ALL_COLUMNS) and,
                // c) we are not sorting on that column (getSortingStatus(column) == NOT_SORTED) and,
                // d) a reverse lookup will not trigger a sort (modelToView != null)
                // Note: INSERT and DELETE events fail this test as they have column == ALL_COLUMNS.
                // The last check, for (modelToView != null) is to see if modelToView
                // is already allocated. If we don't do this check; sorting can become
                // a performance bottleneck for applications where cells 
                // change rapidly in different parts of the table. If cells
                // change alternately in the sorting column and then outside of            
                // it this class can end up re-sorting on alternate cell updates -
                // which can be a performance problem for large tables. The last
                // clause avoids this problem.
                int column = e.getColumn();
                if (e.getFirstRow() == e.getLastRow()
                        && column != TableModelEvent.ALL_COLUMNS
                        && getSortingStatus(column) == NOT_SORTED
                        && modelToView != null) {
                    int viewIndex = getModelToView()[e.getFirstRow()];
                    fireTableChanged(new TableModelEvent(TableSorter.this,
                                                         viewIndex, viewIndex,
                                                         column, e.getType()));
                    return;
                // Something has happened to the data that may have invalidated the row order.
                clearSortingState();
                fireTableDataChanged();
                return;
        private class MouseHandler extends MouseAdapter {
            public void mouseClicked(MouseEvent e) {
                JTableHeader h = (JTableHeader) e.getSource();
                TableColumnModel columnModel = h.getColumnModel();
                int viewColumn = columnModel.getColumnIndexAtX(e.getX());
                int column = columnModel.getColumn(viewColumn).getModelIndex();
                if (column != -1) {
                    int status = getSortingStatus(column);
                    if (!e.isControlDown()) {
                        cancelSorting();
                    // Cycle the sorting states through {NOT_SORTED, ASCENDING, DESCENDING} or
                    // {NOT_SORTED, DESCENDING, ASCENDING} depending on whether shift is pressed.
                    status = status + (e.isShiftDown() ? -1 : 1);
                    status = (status + 4) % 3 - 1; // signed mod, returning {-1, 0, 1}
                    setSortingStatus(column, status);
        private static class Arrow implements Icon {
            private boolean descending;
            private int size;
            private int priority;
            public Arrow(boolean descending, int size, int priority) {
                this.descending = descending;
                this.size = size;
                this.priority = priority;
            public void paintIcon(Component c, Graphics g, int x, int y) {
                Color color = c == null ? Color.GRAY : c.getBackground();            
                // In a compound sort, make each succesive triangle 20%
                // smaller than the previous one.
                int dx = (int)(size/2*Math.pow(0.8, priority));
                int dy = descending ? dx : -dx;
                // Align icon (roughly) with font baseline.
                y = y + 5*size/6 + (descending ? -dy : 0);
                int shift = descending ? 1 : -1;
                g.translate(x, y);
                // Right diagonal.
                g.setColor(color.darker());
                g.drawLine(dx / 2, dy, 0, 0);
                g.drawLine(dx / 2, dy + shift, 0, shift);
                // Left diagonal.
                g.setColor(color.brighter());
                g.drawLine(dx / 2, dy, dx, 0);
                g.drawLine(dx / 2, dy + shift, dx, shift);
                // Horizontal line.
                if (descending) {
                    g.setColor(color.darker().darker());
                } else {
                    g.setColor(color.brighter().brighter());
                g.drawLine(dx, 0, 0, 0);
                g.setColor(color);
                g.translate(-x, -y);
            public int getIconWidth() {
                return size;
            public int getIconHeight() {
                return size;
        private class SortableHeaderRenderer implements TableCellRenderer {
            private TableCellRenderer tableCellRenderer;
            public SortableHeaderRenderer(TableCellRenderer tableCellRenderer) {
                this.tableCellRenderer = tableCellRenderer;
            public Component getTableCellRendererComponent(JTable table,
                                                           Object value,
                                                           boolean isSelected,
                                                           boolean hasFocus,
                                                           int row,
                                                           int column) {
                Component c = tableCellRenderer.getTableCellRendererComponent(table,
                        value, isSelected, hasFocus, row, column);
                if (c instanceof JLabel) {
                    JLabel l = (JLabel) c;
                    l.setHorizontalTextPosition(JLabel.LEFT);
                    int modelColumn = table.convertColumnIndexToModel(column);
                    l.setIcon(getHeaderRendererIcon(modelColumn, l.getFont().getSize()));
                return c;
        private static class Directive {
            private int column;
            private int direction;
            public Directive(int column, int direction) {
                this.column = column;
                this.direction = direction;
    }

    The table listens to the TableModel for changes. Changing the table by adding/removing
    rows or columns has no affect on its table model. If you make changes to the table model
    the table will be notified by its TableModelListener and change its view. So tell
    MyTableModel about the change of data:
    public class TableSorterDemo implements ActionListener
        MyTableModel tableModel;
        public TableSorterDemo()
            defaultListModel = new DefaultListModel();
            init1();
            tableModel = new MyTableModel(defaultListModel);
            TableSorter sorter = new TableSorter(tableModel);
        public void actionPerformed(ActionEvent ae)
            if (ae.getSource()==clickMe)
                defaultListModel.removeAllElements();
                init2();
                tableModel.fireTableStructureChanged();
    }

  • [svn:osmf:] 10711: Adding missing reference to the VAST library.

    Revision: 10711
    Author:   [email protected]
    Date:     2009-09-29 21:38:56 -0700 (Tue, 29 Sep 2009)
    Log Message:
    Adding missing reference to the VAST library.
    Modified Paths:
        osmf/trunk/framework/MediaFrameworkAirTest/.actionScriptProperties

    Hi Marius,
    I think this problem could be linked to the changes in the layout API and the order of the loading of the video elements.
    Please try to add layoutmetadata with index property to parallel videos so they render in the correct order, something like:
                var layout1:LayoutMetadata = new LayoutMetadata();
                layout1.index= 10 ;
                videoElement.addMetadata(LayoutMetadata.LAYOUT_NAMESPACE, layout1);
                var layout2:LayoutMetadata = new LayoutMetadata();
                 layout2.index= 20 ;
                 vpaidNonLinear.addMetadata(LayoutMetadata.LAYOUT_NAMESPACE, layout2);
    Tell me if that worked,
    S.

  • Problem with adding Sun JSF RI v1.2 as a new library in JDeveloper 10.1.3.1

    Hi,
    I have a problem with adding a latest JSF 1.2 RI from Sun (https://javaserverfaces.dev.java.net/files/documents/1866/44998/jsf-1_2_03.zip) to JDeveloper as a new library.
    I created a new User library and added into it jsf-impl.jar and jsf-api.jar from JSF 1.2 RI.
    Then I try to create two new JSP Tag libraries based from .tld files.
    When a .tld file is placed in "TLD File:" field there is no information below about Library Version and Required JSP Version. If I check "Execute Tags in JSP Visual Editor" and click "Customize" button - list of tags in "Customize Tag Library" window is empty.
    I have errors when I try to use JSF Tags from this new library in JSP page like :
    "Can't create tag instance: f:view (class: null). Make sure, that the tag class or a library contained this class is available in this application"
    (free translation to English)
    Is this possible to add JSF RI v1.2 as another library in Jdeveloper 10.1.3.1 ?
    thanks for help
    koli

    Hi,
    This solution is not exactly for Jdeveloper 10.1.3.x I think.
    - "Create a JSF system library." section, point 2. - there is not possible to add library in folder other than User I see, so I added it in User folder.
    - "Register the JSF JSP tag libraries." section, point 5. - in JD 10.1.3 there is no dialog box, I checked checkbox "Show Tag Library in Palette". A new library was added to User folder but there is no new libraries in component Palette.
    Even as I use "Edit tag libraries .." from Component Palette context menu and add manually new tag libraries to selected, there is no libraries in Component Palette after it.
    I feel so problem is with different .tld files format, not with adding libraries method.
    Sun RI tld file (from version 1.2_03) fragment:
    <taglib xmlns="http://java.sun.com/xml/ns/javaee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-jsptaglibrary_2_1.xsd"
    version="2.1">
    <!-- ========== Tag Library Description Elements ========================= -->
    <description>
    The core JavaServer Faces custom actions that are independent of
    any particular RenderKit.
    </description>
    <tlib-version>1.2</tlib-version>
    <short-name>f</short-name>
    <uri>http://java.sun.com/jsf/core</uri>
    tld included in JD:
    <!DOCTYPE taglib
    PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
    "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
    <taglib>
    <!-- ========== Tag Library Description Elements ========================= -->
    <tlib-version>1.0</tlib-version>
    <jsp-version>1.2</jsp-version>
    <short-name>f</short-name>
    <uri>http://java.sun.com/jsf/core</uri>
    <description>
    The core JavaServer Faces custom actions that are independent of
    any particular RenderKit.
    </description>
    Did JDeveloper 10.1.3.x maintain with taglib version 1.2 ?
    Regards
    koli

  • [SOLVED] Problem with adding a SSH connection to startup

    Hi guys. I have a problem with adding ssh connection to startup. i want this command to run before kde login screen  and keep running all time.
    ssh -D 9292 remoteuser@remotehost
    but it doesnt connect. Thanks for help!
    Last edited by alperenel (2011-03-11 00:10:27)

    cactus wrote:
    ssh -fN -D 9292 remoteuser@remotehost
    you need -f, which sends ssh to the background, and -N which does not execute a remote command.
    If you need it to run as a user other than root, then you probably need to utilize su as well.
    it didnt work either. i am putting it in rc.local but doesnt work.

  • Problem with adding new field to the mass change screen in FBL5N

    Hi,
    We have a problem with adding the field XREF3 to the mass change screen. We followed steps described in the SAP Note 640908, but the result is that when we try to mass change some documents in FBL5N and enter some values in the mass change screen, a message appears: "Please enter at least one new value" and nothing is changed.
    If you have faced with such a problem, we would be grateful if you give us some tips.
    Regards,
    Miłosz Włodarczyk

    The problem has been resolved: we didn't activate a code in SE80.

  • Problem in adding custom metada properties

    Hi All,
    I want to add some custom properties while creating a document in KM repository. I am getting problem while adding the custom group in the property structure "all_groups"...
    This is waht i have done so far,
    1) I created the custom metadata properties..
    2) Created one property struture group XXX and added all the metadata properties in the gruop items field...
    3) Added this structure group in all_groups. While saving the changes, its saying "<b>These changes would introduce problematic settings: Group item "XXX" is neither a property ID nor a group name defined in the configuration. Check whether it is the ID of an unmodelled property or the ID is misspelled. Click on OK or Apply to confirm these changes. </b>"
    After saving it, following massege is displayed, 
    "<b>The following configuration objects have some invalid or problematic properties: "all_groups</b>"..
    Also the newly created structure is not getting displayed in the document properties.
    Please help me.
    Regards,
    Sandip<i></i>
    Message was edited by: Sandip Agarwal

    Hi Robert,
    Thanks for your reply. I guess I have taken care of the spelling (have done it 4-5 times )....So may be something else is wrong.
    I have sent you a screen shot of the problem to your mail id
    Thanks again for you help.
    Regards,
    Sandip
    Message was edited by: Sandip Agarwal

  • Problem in adding fields in ADRC

    We are finding problem in adding and deleing fields n ADRC. We have added few fields to ADRC however when we are adding same through Append structure and adjust its giving problem.
    We are suspecting field created in data dictionary but not added in database (Oracle).
    Please let us know your views and suggest proceeding further.

    We are suspecting field created in data dictionary but not added in database (Oracle).
    So let's make sure:
    Check ABAP dictionary in SE11.
    Check Oracle dictionary in sqlplus:
    sqlplus <schema>/<password>
    describe ADRC

  • Problems with adding Library for a MySQL JDBC driver

    Good day,
    I am new with the JDeveloper package, so the following could be a user fault.
    I found the following:
    - I downloaded and installed Oracle JDeveloper 10.1.2.1.10 (latest version).
    - I downloaded the latest JDBC drivers for MySQL. ( mysql-connector-java-3.1.10 )
    Now, I did the following steps extracted from the link http://www.oracle.com/technology/products/jdev/tips/duff/mysql_and_oc4j3.html it should be quite easy to add the JDBC Drivers to the project.
    I did the steps with the following results:
    When I Edit the Project properties, follow Profiles -> Development -> Libraries
    When I do ' New' , fill in at JS2E the value 'MySQL' and fill in the Class Path (in my case 'C:\javaInstalls\mysql-connector-java-3.1.10\mysql-connector-java-3.1.10-bin.jar').
    In that case the [OK] is disabled. I should expect the [OK] button was enabled!
    My question: Is this a bug? When not, what am I doing wrong!
    Regards,
    Mike

    I tried it on an other system and had no problems with adding the libraries. It still is a problem on that particular system using the Dutch version of XP. The problem is that the Ok button stays disabled !
    Could it bw a version problem with Java? How ever no changes are made to the original configuration, so it should pick up as default the java version of JDeveloper self.

  • DataLoad-Problem after adding Nav-Attribute to InfoObject

    hi there,
    i added a navigational attribute, which i newly created, to an existing infoobject, which had already data loads.
    i activated the infoobject and modified the transformationrule to fill the new attribute of the infoobject.
    after i activated the transformationrule, i started the infopackage to fill the new attribute.
    after the load has finished, i i started a master-data-changerun.
    but when i let me show the data in the infoobject, i view only the SID of the infoobject. all other attributes are empty.
    i am not using a startroutine in the transformationrule.
    when i debug the transformationrule, i can see all values (SIDs and attributes of the infoobject).
    i tried the RSRV transaction to check the masterdata of the infoobject, but it shows no errors.
    what can i do, to repair the infoobject?
    i'm using BI 7.0.
    regards,
    philipp

    Hi,
    First step is the check the data insde P table ( example /BIC/PXXX which will be there in the in master data and text tab)
    if you find the data for newely added attributes then it works fine.
    or else
    Delete the master data
    programs for individual IinfoObject  master data deletion:
    RSDMD_DEL_BACKGROUND or RSDMD_DEL_MASTER_DATA_TEXTS
    then delete the transformation and recreate the transformation followed by DTP once again
    activate all atributes individually once again
    load data to the infoobject and check it.
    you should be able to relove the problem
    santosh

Maybe you are looking for