Subtotal on Ytd column changes when adding a date-filter

Hi everybody,
I am facing a challenge in BIEE which I can't explain.
BI Server version: 10.1.3.4.1 Build 090414.1900
Using Sample Sales Reduced
I've defined the following request
Columns:
Region, Year, Month, Day Date, Revenue, Year to Date Revenue (Aggregation Rule: Server Complex Aggregate)
Filter:
Year = 2008
and month = 2008/01
and region = East
Results shown in a table view and adding a subtotal on month
Revenue column: 428261.97
Year to Date Revenue: 428261.97
The challenge:
Adding the following filter
Day Date <= 1/31/2008
leads to the following subtotals
Revenue column: 428261.97
Year to Date Revenue: 6867366.46
The subtotal in Year to Date Revenue is now a total of all the values (aggregation rule is still Server Complex aggregate) and I can't get back to the correct number as long as the Day Date filter exists. I would have expected the 428261.97 as the subtotal.
Is there anything I've misunderstood?
Thanks for your help
Regards
Andy

Hi Andy,
Other than equal to/is in filter if u apply u ll get *6,867,366.46* ....why because its dividing the data for all the day date that u mentioned let say less than 31st jan -08....if u want to get *428261.97* remove the extra filter
have u seen the formula for YTD column ? ( TODATE("Sample Sales"."F0 Rev Base Measures"."1-01 Revenue (Sum All)", "Sample Sales"."H0 Time"."Year"))
from the formula ,Less than equal to means it ll consider all the dates and add up the revenue then how come you will get 428261.97?
thanks,
Saichand.v

Similar Messages

  • Level change when adding audio keyframes

    Hi all,
    I've been in Avid Land for the last few months and just came back and noticed something that was getting on my nerves when I left (I don't recall seeing this before FCP 6). When I add keyframes to my audio levels with the pen tool, I get a keyframe, but at the same time, it lowers my level as if I had added a keyframe and then dragged it down. As far as I can tell it does this every time.
    Does anyone know what this is about?
    Thanks,
    Matt

    I was having this problem, so just before I composed this reply I did some tests. It could well be 'sloppy mouse work' but I don't think so. This time the audio level went up by 1 db but before it was dropping by 1 db when adding a keyframe. During the test, no matter how accurate I was the audio level changed when adding a keyframe. The track I was working on was enlarge somewhat and the problem didn't happen on standard sized tracks. I feel that this has to be some sort of bug.
    I have always found FCP a little bit on the 'accurate' side. You have to be very precise when clicking on items otherwise you will miss. Some buttons are way too small and I think Apple could improve the FCP workflow by enlarging some buttons and allowing more space around clickable items.
    A good example of this is the 3 way colour corrector. The left and right buttons for blacks/mids/whites are very hard to hit and I quite often hit the maximum by mistake.
    I have worked on many non-linear systems and FCP is the only one where mouse accuracy is so important.
    I am, to some extent used to this now and I suppose it is a minor inconvenience in comparison to the benefits of using FCP but, in the interests of improvement and ease of use it would be good if Apple could take this onboard.
    Weenie.

  • TableSorter errors when adding new data

    so here is the deal:
    I am using the TableSorter.java helper class with DefaultTableModel
    from: http://java.sun.com/docs/books/tutorial/uiswing/components/table.html
    It works great when the data is static and I get it for the first time. however, occationally, when adding new data I get a NullPointerException error.
    in use:
    DefaultTableModel.addRow()
    DefaultTableModel.removeRow() and
    DefaultTableModel.insertRow() methods.
    Error:
    java.lang.ArrayIndexOutOfBoundsException: 5
         at com.shared.model.TableSorter.modelIndex(TableSorter.java:294)
         at com.shared.model.TableSorter.getValueAt(TableSorter.java:340)
         at javax.swing.JTable.getValueAt(Unknown Source)
         at javax.swing.JTable.prepareRenderer(Unknown Source)...
    code problem I:
        public Object getValueAt(int row, int column)
            return tableModel.getValueAt(modelIndex(row), column);
        }code problem II:
        public int modelIndex(int viewIndex)
                 return getViewToModel()[viewIndex].modelIndex;     
        }TableSroter class:
    package com.shared.model;
    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.*;
    * TableSorter is a decorator for TableModels; adding sorting
    * functionality to a supplied TableModel. TableSorter does
    * not store or copy the data in its TableModel; instead it maintains
    * a map from the row indexes of the view to the row indexes of the
    * model. As requests are made of the sorter (like getValueAt(row, col))
    * they are passed to the underlying model after the row numbers
    * have been translated via the internal mapping array. This way,
    * the TableSorter appears to hold another copy of the table
    * with the rows in a different order.
    * <p/>
    * TableSorter registers itself as a listener to the underlying model,
    * just as the JTable itself would. Events recieved from the model
    * are examined, sometimes manipulated (typically widened), and then
    * passed on to the TableSorter's listeners (typically the JTable).
    * If a change to the model has invalidated the order of TableSorter's
    * rows, a note of this is made and the sorter will resort the
    * rows the next time a value is requested.
    * <p/>
    * When the tableHeader property is set, either by using the
    * setTableHeader() method or the two argument constructor, the
    * table header may be used as a complete UI for TableSorter.
    * The default renderer of the tableHeader is decorated with a renderer
    * that indicates the sorting status of each column. In addition,
    * a mouse listener is installed with the following behavior:
    * <ul>
    * <li>
    * Mouse-click: Clears the sorting status of all other columns
    * and advances the sorting status of that column through three
    * values: {NOT_SORTED, ASCENDING, DESCENDING} (then back to
    * NOT_SORTED again).
    * <li>
    * SHIFT-mouse-click: Clears the sorting status of all other columns
    * and cycles the sorting status of the column through the same
    * three values, in the opposite order: {NOT_SORTED, DESCENDING, ASCENDING}.
    * <li>
    * CONTROL-mouse-click and CONTROL-SHIFT-mouse-click: as above except
    * that the changes to the column do not cancel the statuses of columns
    * that are already sorting - giving a way to initiate a compound
    * sort.
    * </ul>
    * <p/>
    * This is a long overdue rewrite of a class of the same name that
    * first appeared in the swing table demos in 1997.
    * @author Philip Milne
    * @author Brendon McLean
    * @author Dan van Enckevort
    * @author Parwinder Sekhon
    * @version 2.0 02/27/04
    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;
    }any input will be appreciated.
    thanks
    Peter

    The code you posted doesn't help us at all. Its just a duplicate of the code from the tutorial. The custom code is what you have written. For example do you update the TableModel from the Event Thread? Do you update the SortModel or the DefaultTableModel? If you actually provide your test code and somebody has already downloaded the sort classes, then maybe they will test your code against the classes. But I doubt if people will download the sort classes and create a test program just to see if they can duplicate your results (at least I know I'm not about to).

  • Zoom settings change when adding pages

    Hi
    When adding a page to a document with this code:
    app.activeDocument.pages.add(LocationOptions.AT_END);
    InDesign automatically reverts the zoom setting to FIT_TO_PAGE
    Is there a way to prevent this from happening?
    I would like that it should stay at whatever it was.
    Help will be much appreciated!
    Thanks,
    Davey

    Davey_Doo wrote:
    1) is there a difference between what I wrote "layoutWindows[0]" and what you wrote "windows[0]"?
    Yup, "layoutWindows" refer to just the layout windows -- the ones one is normally working in. The other kind is "storyWindows", which is what you get when you open a text in the "Story Editor". There are vast differences between the two, such as "zoom" (you cannot zoom in on the story editor window).
    Using "windows", without specifying the kind, you get a list containing both types; and using "windows[0]", you get the very first one, whether it is a story window or a layout window. Then, if it happens to be a story window, csm_phil's script will Crash & Burn because you cannot zoom in on a story window.
    Your version will work correctly, and just in case you might have a story editor window open, it's best to stick to "layoutWindows" if you want to change a layout window property.
    2) Although this does help, is there a way to prevent it from happening?
         The reason I ask is because in a script which adds many pages, (e.g., MultiPageImporter script), the script needs to do this after adding each page.
    No, you cannot prevent it in any way. It's just ID's default built-in behavior (although it seems strange that this only happens when using a script!).
    But I disagree with your assessment it needs to be done "after adding each page". ID does not store the zoom percentage for each separate page and so it is enough to read the current zoom, add as much pages as you like, then set the zoom.

  • Coredump when adding new data to a document

    Hi,
    I have managed to get a coredump when adding data to a document,
    initially using the Python API but I can reproduce it with a dbxml script.
    I am using dbxml-2.2.13 on RedHat WS 4.0.
    My original application reads XML data from files, and adds them
    one at a time to a DbXML document using XmlModify.addAppendStep
    and XmlModify.execute. At a particular document (call it "GLU.xml") it
    segfaults during the XmlModify.execute call. It is not malformed data in
    the file, because if I remove some files that are loaded at an earlier stage,
    GLU.xml is loaded quite happily and the segfault happens later. Changing
    my application so that it exits just before reading GLU.xml, and loading GLU.xml's
    data into the container file using the dbxml shell's "append" command produces
    the same segfault. The stacktrace is below. Steps #0 to #7 inclusive are the
    same as the stacktrace I got when using the Python API.
    Can anyone give me any suggestions? I could send the dbxml container file and
    dbxml script to anyone who would be prepared to take a look at this problem.
    Regards,
    Peter.
    #0  ~NsEventGenerator (this=0x9ea32f8) at NsEventGenerator.cpp:110
    110                     _freeList = cur->freeNext;
    (gdb) where
    #0  ~NsEventGenerator (this=0x9ea32f8) at NsEventGenerator.cpp:110
    #1  0x009cacef in DbXml::NsPullToPushConverter8::~NsPullToPushConverter8$delete ()
        at /scratch_bernoulli/pkeller/dbxml-2.2.13/install/include/xercesc/framework/XMLRefInfo.hpp:144
    #2  0x00a5d03c in DbXml::NsDocumentDatabase::updateContentAndIndex (this=0x96b7a60,
        new_document=@0x96e3608, context=@0x96a3fc8, stash=@0x96a4098) at ../scoped_ptr.hpp:44
    #3  0x009a71b1 in DbXml::Container::updateDocument (this=0x96a71d0, txn=0x0, new_document=@0x96e3608,
        context=@0x96a3fc8) at shared_ptr.hpp:72
    #4  0x009b8465 in UpdateDocumentFunctor::method (this=0xb7d3a008, container=@0x96a71d0, txn=0x0, flags=0)
        at TransactedContainer.cpp:167
    #5  0x009b70c5 in DbXml::TransactedContainer::transactedMethod (this=0x96a71d0, txn=0x0, flags=0,
        f=@0xbff66500) at TransactedContainer.cpp:217
    #6  0x009b71e4 in DbXml::TransactedContainer::updateDocument (this=0x96a71d0, txn=0x0,
        document=@0x96e3608, context=@0x96a3fc8) at TransactedContainer.cpp:164
    #7  0x009d7616 in DbXml::Modify::updateDocument (this=0x96c1748, txn=0x0, document=@0xbff665b0,
        context=@0xbff669dc, uc=@0xbff669e4)
        at /scratch_bernoulli/pkeller/dbxml-2.2.13/dbxml/build_unix/../dist/../include/dbxml/XmlDocument.hpp:72
    #8  0x009d9c18 in DbXml::Modify::execute (this=0x96c1748, txn=0x0, toModify=@0x96a7280,
        context=@0xbff669dc, uc=@0xbff669e4) at Modify.cpp:743
    #9  0x009c1c35 in DbXml::XmlModify::execute (this=0xbff666c0, toModify=@0x96a7280, context=@0xbff669dc,
        uc=@0xbff669e4) at XmlModify.cpp:128
    #10 0x08066bda in CommandException::~CommandException ()
    #11 0x0805f64e in CommandException::~CommandException ()
    #12 0x08050c82 in ?? ()
    #13 0x00705de3 in __libc_start_main () from /lib/tls/libc.so.6
    #14 0x0804fccd in ?? ()
    Current language:  auto; currently c++

    Hi George,
    I can get the coredump with the following XML data (cut down from its original
    size of around 900Kb):
    <file name="GLU.xml">
    <_StorageUnit time="Wed Apr  5 11:06:49 2006" release="1.0.212"
    packageName="ccp.ChemComp" root="tempData" originator="CCPN Python XmlIO">
    <parent>
      <key1 tag="molType">protein</key1>
      <key2 tag="ccpCode">GLU</key2>
    </parent>
    <StdChemComp ID="1" code1Letter="E" stdChemCompCode="GLU" molType="protein" ccpCode="GLU" code3Letter="GLU" msdCode="GLU_LFOH" cifCode="GLU" merckCode="12,4477">
      <name>GLUTAMIC ACID</name>
      <commonNames>L-glutamic acid</commonNames>
    </_StorageUnit>
    <!--End of Memops Data-->
    </file>This happens when the data from 106 other files have been inserted beforehand
    (ranging in size from 1Kb to 140Kb). If I manipulate the order so that the above data
    is loaded earlier in the sequence, it inserts fine and I get the coredump when
    loading data from a different file.
    The actual XmlModify calls look something like:
      qry = mgr.prepare("/datapkg/dir[@name='dir1']/dir[@name='dir2']", qc)
      mdfy.addAppendStep(qry, XmlModify.Element, "",
                         '<file name='" + fileName + '">' +
                          data[pos:] + "</file>")
      mdfy.execute(XmlValue(doc), qc, uc)where data[pos:] points to the location in the mmap-ed file containing the
    above data just after the <?xml ...?> header.
    If you want to try to reproduce the crash at your end there are a couple of ways
    we could do it. I have just figured out that this forum software doesn't let me
    upload files or reveal my e-mail address in my profile, but you can contact me with
    username: pkeller; domain name: globalphasing.com and I can send the
    data to you.
    Regards,
    Peter.

  • Collumn order changes when i retrive data through select statement.

    Hi
    i am using the sql developer 2.1.1.64 i have below table with respected collum sequence.
    tbl_message( id,
    date,
    process_name,
    stage,
    message,
    message_type,
    parameter)
    when i retrive this table using select * from tbl_message; i got the below collumn sequence
    date process_name stage id message message_type parameter
    13-may-2011 procedure 10 1 info info null
    but when i create the table my id collumn is the first collumn?
    and when open the table through sql developer id collumn is in the first place. so why id collumn is in 3rd place when i use select statement?
    if you need more information lpease let me know.
    Thanks
    Ritesh

    SQL Developer allows you to change the order of the columns in the Output window, and it will remember it. This is probably why you see the columns in a different order when you execute "SELECT * FROM ..."
    The actual order of the columns in the database is what you see when you execute the DESC command.
    You also can verify the order of the columns in two other ways:
    1) Use SQL*PLus and exeute your "SELECT * " query. SQL*Plus will not re-arrange the columns.
    2) Query the data dictionary. Use user_tab_columns (if you are the owner of the table), or use all_tab_columns and add the schema owner to the query otherwise.
    SELECT table_name, column_name, column_id
    FROM user_tab_columns
    WHERE table_name  = 'TBL_MESSAGE';

  • Sort order changes when adding a phonetic last name?

    I have my contacts sorted and displayed by first name. If I add a phonetic last name to a contact, it changes the order of that person to the top of list. Why wouldn't it leave them in the first name alphabetic order?

    Ok this is what I'm doing...
    My last name is spelled with "liter."
    Siri pronounces that like "a 2 liter of soda."
    So I've added the phonetic last name field on the contact card to help her pronounce it like "lighter."
    On my contact info,
    First name: Bill
    Last name: Hinderliter
    Phonetic last name: Hinderlighter
    If I delete the phonetic last name field... It sorts the contact perfectly.
    If I add it, the contact is placed on top of all the "B's" in the list.
    On a side note... I found another website with a temporary fix to this problem. The person there says to use the nickname field instead of phonetic field when getting Siri to pronounce things.
    http://apple.stackexchange.com/questions/29210/how-do-i-get-siri-to-pronounce-my -name-correctly
    Thanks again for your time.

  • Settings changing when adding to another movie

    Each time I attach a new chapter (mini movie) PROJECT to the already existing main movie PROJECT the settings change. I have tried adding on the front with the new chapter as well as trying to add the main movie to the mini movie. Is there a way to lock all settings on a movie so when it is added to another movie the setting won't change oon either clip. The chapter movie is approximately 1 1/2 minutes long and the main clip is approximately 9 Minutes long. There are several transitions, and scrolls included in both clips.
    Message was edited by: jimfromdenver

    Hi Luis, thanks for the reply. I first made a video approximately 8 minutes long. I used digitized video, still images, sound tracks, titles and numerous transitions between the clips. I then opened a new project and made a movie of one of the last letters sent home by the veteran prior to his death. I also used transitions, movie clips, titles and various images. So far I have three of these last letters completed. I was able to copy and pasted two of the letter clips in front of the main generic movie. However, when I attempted to paste the third clip at the beginning of the main movie and two letters - it causes some of the titles, scrolls to overlap.

  • Columns change when trying to search a folder.

    When using Mail I change the columns that appear in different mailboxes and folders. For instance in my Sent Mail folder I don't need to see who the email is from or when it was received; I'd rather see to whom it was sent and when it was sent. Changing this is trivial from the View menu.
    However, when I want to search a mailbox or folder; as soon as I start typing to filter the results, instead of keeping the columns I selected, it reverts to some default which shows from/date received/etc. Then I have to go back and re-enable the "To" and "Date Sent" fields and disable the "From" and "Date Received" fields which is a major pain to have to do each time I search for a message.
    Is there any way to fix this so searching a folder doesn't change the column and sorting parameters? I know things didn't work this way in Tiger since I only upgraded recently.
    I'm running Leopard 10.5.2 / Mail 3.2

    Got it working again...musta been a weird glitch or something.

  • How does order of columns change when I create dimension?

    I created dimension from 3 tables, but order columns in each tables changed. And when I use drilldown in Dashboards and go to next level, all columns show in wrong order how in dimension. What should I do to change order columns in dimension?

    OK, this is a "stab in the dark" about what you're experiencing, but take a look at this: First, note the order you wish the columns to appear when doing a drilldown. Now, when you drill down, note which columns appear first (leftmost) as compared to the other columns that seem to not appear in the proper order. When the disorder appears, are there data in the left columns and no data in the columns towards the right? Here's what it seems OBI does (at least in my experience).
    If all the columns have data, the order in the drilldown will appear as expected. Let's say you have 15 columns. (There's a reason I chose this many columns.) What happens if columns 1 -5 (in your sort order) have no data, but column 6 does? OBI will put that column first at the far left. If then columns 7-9, say, have no data, but column 10 does, then column 10 will appear second. If columns 11- 15 have data, then the final order will be: 6, 10, 11- 15, 1-5, 7-9.
    As long as there are some sort of data, the column will appear in the proper order. But if a column has no data, then a column that does takes precedence. Why this behavior?
    Suppose that of the 15 columns, only column 15 had data. The number of columns would make the report very wide. Would the user wish to scroll all the way to the right just to see the one column of data? Instead, it will be column 1 with columns 2-14 following. The user would then be able to see the column with data without having to scroll. If they understood this behavior, they would know that if column 15 is appearing first, there is no need to scroll to the right.
    Again, this is my experience and it seems to explain it. (I, too, pulled my hair in frustration trying to figure this out). See if this applies to you and let me know.
    Note: The "strange" behavior appears at the lowest level drilldown. It seems to maintain the proper level at higher levels. (So in my experience, I drill from region>branch>details and it is in the detail level that I get the column disorder.)
    Edited by: LC143 on Oct 24, 2008 8:56 AM
    Edited by: LC143 on Oct 24, 2008 9:09 AM

  • Auditing lob column changes when working with dbms_lob

    Hi,
    It seems that dml trigger doesn't fire when lob field is being updated using dbms_lob package.
    As it stated in Oracle documentation:
    "Using OCI functions or the DBMS_LOB package to update LOB values or LOB attributes of object columns does not cause Oracle to fire triggers defined on the table containing the columns or the attributes."
    I need to know that table was updated (or is about to be updated), how can I do that in case it is lob field that is being updated?
    Thank you!

    I need to know that table was updatedAUDIT
    Handle:      user13133099
    Status Level:      Newbie
    Registered:      Jul 21, 2010
    Total Posts:      6
    Total Questions:      4 (4 unresolved)
    so many questions without ANY answers.
    http://forums.oracle.com/forums/ann.jspa?annID=718
    Edited by: sb92075 on Oct 26, 2010 7:43 AM

  • Alac file size changes when added to iTunes

    Hello,
    I've converted some FLAC files to ALAC using dbPowerAmp.  The file bit rate remains unchanged.  However, when I add the ALAC files to iTunes, the bit rate shown in iTunes is reduced.
    Example - Alice Cooper, Hello Hurray
    FLAC Bit Rate - 4608 kbs
    Converted ALAC Bit Rate - 4608 kbs
    iTunes ALAC Bit Rate - 3012 kbs
    Any ideas what's going on?
    I'm using iTunes 10.7.0.21
    Thanks.

    Nothing has been changed.
    Sounds like iTunes & dbPowerAmp figure the bit rate differently.
    dbPowerAmp uses the uncompressed file sizeand iTunes figures the compressed file size.
    Since the file is smaller, the bit rate will have to be lower.

  • Headers are changing when adding a new section between others

    Hi!
    I am compiling a colloquium program. For each lecture abstract, I have made a file with distinct headers. I open the page side tab, click on one page and copy it (Command+C). I click in the main file, in the page side tab, on the abstract which would be before the new one, and paste the new abstract (Command+V).
    The new abstract is neatly pasted after the old one, but the headers are changed : it has the previous abstract headers. Worse, every abstract, whose each is in a distinct section, has this previous abstract header, even if I turned off the «Same headers/footers as before» option!
    Is this a bug? Did I do something wrong?

    I may have found an explanation to this problem.
    When I put a one page document in the master document, every header I had written has been brought back! I think it is a dual page problem here. When the second page of a inserted document (left page) become an odd page (right page), it does not take in account the odd page of the inserted document, but the odd page of the section BEFORE the inserted document.
    Does anyone want to test this?
    Hope it will be fixed soon...

  • Song volume changes when adding artwork.

    I noticed this on itunes 10.7, when playing a song, if I add album artwork to the track the volumes changes and goes lower. Has anyone has experienced this?

    isabeauesby wrote:
    the background music had distinct variations in its sound, going louder and softer on its own,
    make sure the Ducking menuItem is turned off

  • Why does my footer background colour change when adding a float to a DIV element?

    Bear with me as I am a student learning dreamweaver....
    I am trying to insert a series of 4 DIVs into a footer area with a black background. WHen I insert a float to constrain them to a horizontal position, the black background disappears and the body background shows through. A strip of the footer displays on top of the area where the DIVs are placed. The float works but the problem is with the background colour. It's almost as if the divs have been pushed down below the footer area. I have tried placing my cursor in several locations before inserting the float but it doesn't change anything.
    Can anyone help?

    It all depends on the code you're working with.   In the following example, I applied overflow:hidden to the <footer> element. 
    Copy & paste this code into a new, blank HTML page to see how it works.
    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>HTML5 Layout</title>
    <style type="text/css">
    body {
        font: 100%/1.4 Verdana, Arial, Helvetica, sans-serif;
        background-color: #CCC;
        padding: 0;
        color: #000;
        width: 1000px;
        margin: 45px auto;
    header {width: 100%; display:block; background: #A5C9C9; min-height: 100px}
    section {width: 100%; display:block; background:#FFF; min-height: 300px}
    footer {width: 100%; display:block; background: #FF9; overflow:hidden;}
    aside {width: 22%; float:left; display:block; margin-right: 4%; background:#D8E9B6; min-height: 200px;}
    aside:last-child {margin-right:0}
    </style>
    </head>
    </body>
    <header>
    <h1>Content for header goes here</h1>
    </header>
    <section>Content for section goes here</section>
    <footer>
        <aside>aside 1</aside>
        <aside>aside 2</aside>
        <aside>aside 3</aside>
        <aside>aside 4</aside>
    </footer>
    </body>
    </html>
    Nancy O.

Maybe you are looking for

  • Multiple languages autocorrect issues

    On my iPhone, I added multiple languages and on the keyboard appears the 'globe' to choose one before writing an email. That way, autocorrect adjusts to that language. I added languages to my MacBook Air Air as well, but autocorrect sticks with Engli

  • I got a brand new ipod touch 5th. i backed it up and now it won't turn on. Why? what's going on?

    I bought a 5th generation iPod touch. everything was working fine. until I tried to back up my music from iTunes. it said it would restart after "backing up" and it didn't. this is the second iPod this has happened to. I left the last one on the char

  • Forms/Reports Chinese character support

    We have an existing db (10.2.0.4.0) and forms (11.1.2.1.0) application, that we're trying to extend to support Chinese characters. We're looking to add some unicode (nvarchar2) columns to existing tables, rather than converting the whole db charset.

  • T430 freezes on 1080p HDMI connection

    HI, My T430 was wokring perfectly, I got the NVS5400M card(Nvidia optimus) with intel hd4000. Drivers version: Intel - 9.17.10.2843 nvidia 9.18.13.1269 which is the latest from lenovo Lately, I got a 1080p monitor. it is connected to the mini display

  • Help i have a slight problem on my N81

    My n81 paint on the side has came off how can i replace the paint... can i use a paint can or sumthin like that...  Can i replace it Solved! Go to Solution.