Forcing State to Refresh in an ItemRenderer during a Drag and Drop

Following the excellent dicussion here
http://forums.adobe.com/message/2091088
I override getCurrentRendererState so that my itemRender can reflect the new states that I've declared. I want the state to update during a drag and drop operation within a Tree control. Within a dragOverHandler, I set a boolean property on the itemRenderer (which causes the return value of getCurrentRendererState to change). Nothing happens during the drag since getCurrentRendererState isn't being called by...
How can I force the itemRenderer to refresh its state? When I just mouse over the item renderer, I see that 'getCurrentRendererState' is being invoked and the state updates. I've tried invoking invalidateDisplayList, invalidateProperties, invalidateSize, validateNow but they seem to be on hold during a drag operation.
Any insights?

After you change something that might affect your renderer's state, you need to call:
  setCurrentState(getCurrentRendererState(), (mx_internal::playTransitions as Boolean));
Unfortunately, state can depend on many things, and it's difficult to make sure that you make this call every single time you change any of those things that may ultimately affect a renderer's self-determined state.  In fact, if you're trying to write extensible code, it's impossible to implement it this way, because you have no way of knowing what properties will affect state in some future implementation that someone might come up with.
So... instead of calling the above directly, I suggest that you simply override commitProperties() and do it there - like this:
  override protected function commitProperties():void
    setCurrentState(getCurrentRendererState(), (mx_internal::playTransitions as Boolean));
    super.commitProperties();
Make sure you call setCurrentState() *before* you call super.commitProperties().  If you do it the other way around, then other state-dependent properties in your renderer (like state-dependent mxml attributes) will reflect the old state instead of the new state.  This is not as inefficient as it looks, since setCurrentState is basically a no-op when the current state is already equal to the requested new state.
Now, just call invalidateProperties() whenever you change anything that might affect your renderer's state.  For example:
  // a custom property setter, "revealed"
  // when revealed is false, the renderer will stay in the "notLoaded" state
  // [see getCurrentRendererState(), below]
  public function set revealed(value:Boolean):void {
    _revealed = value;
    invalidateProperties();
  // the built-in property setter, "data"
  // set by the renderer owner (the list component) when the data item is bound
  // to the renderer instance. Our state depends on the contents of data, so we override
  // here, and call invalidateProperties(), which ultimately causes the framework to call
  // commitProperties(), which in turn will cause the renderer state to be set via a call
  // to our state logic in getCurrentRendererState().
  override public function set data(value:Object):void {
    super.data = value;
    invalidateProperties();
  // override built-in state logic to include logic for our own custom state, "notLoaded".
  override protected function getCurrentRendererState():String {
    if( (!_revealed) || (data==null) ) {
      return "notLoaded";
    return super.getCurrentRendererState();
good luck!
-Lee

Similar Messages

  • My drag images disappear when they are dropped on a correct drop target during the drag and drop interaction.

    What am I missing. The opacity is at 100%. The drop target is a highlighted box from objects. I am using Captivate 8.

    Hi there,
    You might want to make sure your Depth setting is not set to Back instead of Front on your drop target(s).
    The Depth setting is accessed via the Drag and Drop window/panel under Format setting while you have your drop target selected.
    If your Depth setting is set to Back, especially if your opacity is set to 100% on your highlight box/drop target, your drag image would go behind your drop target giving the effect of disappearing behind your highlight box - especially if the drop target is larger than the drag image.

  • "forcing" drag and drop to full finder window

    i sometimes find myself needing to drag and drop (Move or Copy) a Folder from the Documents section of my macbookpro to somewhere on my MBP or my MacPro but the Finder window on the MBP for the destination is full up with folders and files and there is no "free space" to "drop" it. Sometimes I try to drop it to the right of the items list where it seems blank but if I don't get this just right it goes into a folder where I don't want it.
    I know there is a file path at the bottom of the finder window but often this is hidden below my computer screen because I am trying to keep something else (like another finder window) above it. Also, I sometime am holding down the Option key during the drag and drop to force a move.
    Is there a way to understand where I can drop items when the Finder is full or some other way to "force" it to drop in there even if the list is full up?
    TIA

    If you drop the item on top of a file in the list, the item will be moved into the folder. However, if you drop it on top of a folder in the list, chances are the item will end up in that folder instead of the parent folder.
    Here's a trick that works in Lion, and maybe earlier OS X versions, and should helpn with your issue -
    Click the file you want to move; press Command-C
    Open the folder you want to move it into. With that folder active, press Option-Command-V
    This will move the file into the folder you opened.

  • How to outline selected cells during drag and drop in the jtable

    Hi,
    I have spent a lot of time to find out how to outline selected cells during drag in the jtable, but I did not find the answer.
    Can anybody give me a tip, where to read more about this problem or even better, give an example...
    I have the following situation:
    1.Table has 10 rows and 10 columns
    2.setSelectionMode(ListSelectionModel.SINGLE_INTERVAL_SELECTION) and setCellSelectionEnabled(true)
    3.user select 5 cells in 4th row (for example cell45,cell46,cell47,cell48 and cell49)
    4.user starts dragging. During dragging an outline should be drawn. Outline should be a rectangular with width of 5 cells and height of one cell. Outline should move according to the mouse position.
    5.rectangular disappears when dropped
    Regards,
    Primoz

    In "createTransferable" you can create a drag image
    which you can paint in "dragOver" and clear in "drop" method of DropTarget :
    package dnd;
    * DragDropJTableCellContents.java
    import javax.swing.*;
    import javax.swing.border.*;
    import javax.swing.table.*;
    import java.awt.*;
    import java.awt.datatransfer.*;
    import java.awt.dnd.*;
    import java.awt.event.*;
    import java.awt.image.BufferedImage;
    import java.io.IOException;
    public class DragDropJTableCellContents extends JFrame {
        public DragDropJTableCellContents() {
            setTitle("Drag and Drop JTable");
            setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            getContentPane().add(createTable("JTable"), BorderLayout.CENTER);
            setSize(400, 300);
            setLocationRelativeTo(null);
        private JPanel createTable(String tableId) {
            DefaultTableModel model = new DefaultTableModel();
            for (int i = 0; i < 10; i++) {
                model.addColumn("Column "+i);
            for (int i = 0; i < 10; i++) {
                String[] rowData = new String[10];
                for (int j = 0; j < 10; j++) {
                    rowData[j] = tableId + " " + i + j;
                model.addRow(rowData);
            JTable table = new JTable(model);
            table.getTableHeader().setReorderingAllowed(false);
            table.setSelectionMode(ListSelectionModel.SINGLE_INTERVAL_SELECTION);
            table.setCellSelectionEnabled(true);
            JScrollPane scrollPane = new JScrollPane(table);
            table.setDragEnabled(true);
            TableTransferHandler th = new TableTransferHandler();
            table.setTransferHandler(th);
            table.setDropTarget(new TableDropTarget(th));
            table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
            JPanel panel = new JPanel(new BorderLayout());
            panel.add(scrollPane);
            panel.setBorder(BorderFactory.createTitledBorder(tableId));
            return panel;
        public static void main(String[] args) {
            new DragDropJTableCellContents().setVisible(true);
        abstract class StringTransferHandler extends TransferHandler {
            public int dropAction;
            protected abstract String exportString(JComponent c);
            protected abstract void importString(JComponent c, String str);
            @Override
            protected Transferable createTransferable(JComponent c) {
                return new StringSelection(exportString(c));
            @Override
            public int getSourceActions(JComponent c) {
                return COPY;
            @Override
            public boolean importData(JComponent c, Transferable t) {
                if (canImport(c, t.getTransferDataFlavors())) {
                    try {
                        String str = (String) t.getTransferData(DataFlavor.stringFlavor);
                        importString(c, str);
                        return true;
                    } catch (UnsupportedFlavorException ufe) {
                    } catch (IOException ioe) {
                return false;
            @Override
            public boolean canImport(JComponent c, DataFlavor[] flavors) {
                for (int ndx = 0; ndx < flavors.length; ndx++) {
                    if (DataFlavor.stringFlavor.equals(flavors[ndx])) {
                        return true;
                return false;
        class TableTransferHandler extends StringTransferHandler {
            private int dragRow;
            private int[] dragColumns;
            private BufferedImage[] image;
            private int row;
            private int[] columns;
            public JTable target;
            @Override
            protected Transferable createTransferable(JComponent c) {
                JTable table = (JTable) c;
                dragRow = table.getSelectedRow();
                dragColumns = table.getSelectedColumns();
                createDragImage(table);
                return new StringSelection(exportString(c));
            protected String exportString(JComponent c) {
                JTable table = (JTable) c;
                row = table.getSelectedRow();
                columns = table.getSelectedColumns();
                StringBuffer buff = new StringBuffer();
                for (int j = 0; j < columns.length; j++) {
                    Object val = table.getValueAt(row, columns[j]);
                    buff.append(val == null ? "" : val.toString());
                    if (j != columns.length - 1) {
                        buff.append(",");
                return buff.toString();
            protected void importString(JComponent c, String str) {
                target = (JTable) c;
                DefaultTableModel model = (DefaultTableModel) target.getModel();
                String[] values = str.split("\n");
                int colCount = target.getSelectedColumn();
                int max = target.getColumnCount();
                for (int ndx = 0; ndx < values.length; ndx++) {
                    String[] data = values[ndx].split(",");
                    for (int i = 0; i < data.length; i++) {
                        String string = data;
    if(colCount < max){
    model.setValueAt(string, target.getSelectedRow(), colCount);
    colCount++;
    public BufferedImage[] getDragImage() {
    return image;
    private void createDragImage(JTable table) {
    if (dragColumns != null) {
    try {
    image = new BufferedImage[dragColumns.length];
    for (int i = 0; i < dragColumns.length; i++) {
    Rectangle cellBounds = table.getCellRect(dragRow, i, true);
    TableCellRenderer r = table.getCellRenderer(dragRow, i);
    DefaultTableModel m = (DefaultTableModel) table.getModel();
    JComponent lbl = (JComponent) r.getTableCellRendererComponent(table,
    table.getValueAt(dragRow, dragColumns[i]), false, false, dragRow, i);
    lbl.setBounds(cellBounds);
    BufferedImage img = new BufferedImage(lbl.getWidth(), lbl.getHeight(),
    BufferedImage.TYPE_INT_ARGB_PRE);
    Graphics2D graphics = img.createGraphics();
    graphics.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 1f));
    lbl.setBorder(BorderFactory.createLineBorder(Color.LIGHT_GRAY));
    lbl.paint(graphics);
    graphics.dispose();
    image[i] = img;
    } catch (RuntimeException re) {
    class TableDropTarget extends DropTarget {
    private Insets autoscrollInsets = new Insets(20, 20, 20, 20);
    private Rectangle rect2D = new Rectangle();
    private TableTransferHandler handler;
    public TableDropTarget(TableTransferHandler h) {
    super();
    this.handler = h;
    @Override
    public void dragOver(DropTargetDragEvent dtde) {
    handler.dropAction = dtde.getDropAction();
    JTable table = (JTable) dtde.getDropTargetContext().getComponent();
    Point location = dtde.getLocation();
    int row = table.rowAtPoint(location);
    int column = table.columnAtPoint(location);
    table.changeSelection(row, column, false, false);
    paintImage(table, location);
    autoscroll(table, location);
    super.dragOver(dtde);
    public void dragExit(DropTargetDragEvent dtde) {
    clearImage((JTable) dtde.getDropTargetContext().getComponent());
    super.dragExit(dtde);
    @Override
    public void drop(DropTargetDropEvent dtde) {
    Transferable data = dtde.getTransferable();
    JTable table = (JTable) dtde.getDropTargetContext().getComponent();
    clearImage(table);
    handler.importData(table, data);
    super.drop(dtde);
    private final void paintImage(JTable table, Point location) {
    Point pt = new Point(location);
    BufferedImage[] image = handler.getDragImage();
    if (image != null) {
    table.paintImmediately(rect2D.getBounds());
    rect2D.setLocation(pt.x - 15, pt.y - 15);
    int wRect2D = 0;
    int hRect2D = 0;
    for (int i = 0; i < image.length; i++) {
    table.getGraphics().drawImage(image[i], pt.x - 15, pt.y - 15, table);
    pt.x += image[i].getWidth();
    if (hRect2D < image[i].getHeight()) {
    hRect2D = image[i].getHeight();
    wRect2D += image[i].getWidth();
    rect2D.setSize(wRect2D, hRect2D);
    private final void clearImage(JTable table) {
    table.paintImmediately(rect2D.getBounds());
    private Insets getAutoscrollInsets() {
    return autoscrollInsets;
    private void autoscroll(JTable table, Point cursorLocation) {
    Insets insets = getAutoscrollInsets();
    Rectangle outer = table.getVisibleRect();
    Rectangle inner = new Rectangle(outer.x + insets.left,
    outer.y + insets.top,
    outer.width - (insets.left + insets.right),
    outer.height - (insets.top + insets.bottom));
    if (!inner.contains(cursorLocation)) {
    Rectangle scrollRect = new Rectangle(cursorLocation.x - insets.left,
    cursorLocation.y - insets.top,
    insets.left + insets.right,
    insets.top + insets.bottom);
    table.scrollRectToVisible(scrollRect);
    Edited by: Andre_Uhres on Nov 18, 2007 10:03 PM

  • Datagrid not refreshing after drag and drop

    Please help me solve this: my datagrid DOES refresh itself,
    but only after the SECOND drag and drop.
    Here's an example of my datagrid :
    1. Label a Description a
    2. Label b Description b
    3. Label c Description c
    When I drag the third row to the top of the datagrid, I want
    to see updated row numbers like this:
    1. Label c Description c
    2. Label a Description a
    3. Label b Description b
    But I see this
    3. Label c Description c
    1. Label a Description a
    2. Label b Description b
    Now let's swap rows 2 and 3; now the datagrid will correctly
    show 1. in the first row! (Of course 3. and 2 are messed up until
    the next drag and drop).
    1. Label c Description c
    2. Label b Description b
    1. Label a Description a
    As you can see, row #1 is now correctly displaying "1." This
    is happening only after the second drag and drop occurs.
    Here's my strategy:
    1. I'm using a datagrid with an ArrayCollection as the
    dataprovider.
    2. The datagrid uses the dragComplete event to call a
    function (function shown below).
    3. This function uses a loop to update the property GOALORDER
    of each row in the ArrayCollection
    4. This function also creates an object of new GOALORDER's to
    update the database (this part is working fine).
    I've noticed somewhere in the docs that, when a datagrid is
    experiencing multiple changes it turns on
    ArrayCollection.disableAutoUpdate automatically. IS THIS TRUE? This
    could explain why my datagrid does not immediately refresh.
    Is there some way to drag and drop, update the
    ArrayCollection, and refresh the datagrid- in that order?
    Thanks!
    Here's the misbehaving function!
    // re-sort the list NOTE first index=0, first goalorder=1
    private function reSort():void
    var params:Object = new Object();
    params.DBACTION = "reorder";
    var i:int;
    var g:int;
    for (i = 0; i < acGoals.length; i++)
    g=i+1;
    // replace GOALORDER in ArrayCollection
    var editRow:Object = acGoals
    editRow.GOALORDER = g;
    acGoals.setItemAt(editRow, i);
    // create multiple entries to edit database
    params["GOALID"+g]= acGoals.getItemAt(i).GOALID;
    params["GOALORDER"+g]= g;
    params["rowsToUpdate"] = g;
    //HTTPService to
    hsGoalAction.send(params);

    Fateh wrote:
    I just forgot to make the event scope of the dynamic action LIVE...and that the <tt>font</tt> element has been deprecated since 1999 and now does not exist in HTML?

  • How to change mouse cursor during drag and drop

    Hi Guys,
    Iam performing a Drag and drop from Table1(on top of the figure) to Table2(down in the figure).
    see attached figure
    http://www.upload-images.net/imagen/e80060d9d3.jpg
    Have implemented the Drag and drop functionality using "Transferable" and "TransferHandler"using the java tutorial
    http://java.sun.com/docs/books/tutorial/uiswing/examples/dnd/index.html#ExtendedDndDemo
    Now My problem is that ,I want to make the 1st column in Table2(ie: Column2-0) not to accept any drops so that the cursor appears like a "No-Drop" cursor but with selection on the column cell during a drop action.
    Also when I move my cursor between "column2-0" and "column2-1",want to to have the "No-Drop" and "Drop" cursor to appear depending on the column.
    How can I achieve it using the TransferHandle class.Dont want to go the AWT way of implementing all the source and target listeners on my own.
    Have overridded the "CanImort" as follows:
    public boolean canImport(JComponent c, DataFlavor[] flavors) {
         JTable table = (JTable)c;      
    Point p = table.getMousePosition();
    /* if(p==null)
         return false;
    int selColIndex = table.columnAtPoint(p);
    if(selColIndex==0)
         return false;*/
    If I execute the above commented code,The "No-Drop" Icon appears in "column2-0",but no cell selection.Also If I move to "column2-1",which is the 1st column,Still get the "No-Drop" Icon there,also with no cell selection.
    for (int i = 0; i < flavors.length; i++) {
    if ((DataFlavor.stringFlavor.equals(flavors))) {
    return true;
    return false;
    Thanks in advance.....
    Edited by: Kohinoor on Jan 18, 2008 3:47 PM

    If you found the selection column based on the mouse pointer, then based on the column, you can set the cursor pointer as any one as below :
    setCursor(new Cursor(Cursor.DEFAULT_CURSOR));
    setCursor(new Cursor(Cursor.HAND_CURSOR));

  • DataGrid with TextArea in itemRenderer using drag and drop

    I have a DataGrid and in one of the columns I am using an itemRenderer, in this itemRenderer I have a spark textArea, with this textArea I am have scrolling enabled.  Also with this dataGrid I have drag enabled (for drag/drop). 
    I am seeing two problems if anyone has any suggestions:
    1. When you try to scroll the textArea, dragging kicks in, so you get partial scrolling then dragging.
    2. Using the up/down symbols of the scroller, the scrollbar moves but the text in the dataGrid cell does not.
    Thanks,
    John
    This is the itemRenderer:
    ?xml version="1.0" encoding="utf-8"?>
    <mx:VBox xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/halo"
    implements="mx.controls.listClasses.IDropInListItemRenderer">
    <fx:Script>
    <![CDATA[
    import mx.events.FlexEvent;
    import mx.controls.dataGridClasses.DataGridListData;
    import mx.controls.listClasses.BaseListData;
    import mx.controls.listClasses.IDropInListItemRenderer;
    import flashx.textLayout.elements.TextFlow;
    import flashx.textLayout.conversion.TextConverter;
    private var _listData:BaseListData;
    [Bindable]
    private var thisTextFlow:TextFlow;
    public function get listData():BaseListData
    return _listData;
    public function set listData(value:BaseListData):void
    _listData = value;
    override public function set data(value:Object):void
    if (value != null)
    super.data = value;
    thisTextFlow = TextConverter.importToFlow(data[(listData as DataGridListData).dataField], TextConverter.TEXT_FIELD_HTML_FORMAT);
    dispatchEvent(new FlexEvent(FlexEvent.DATA_CHANGE));
    ]]>
    </fx:Script>
    <s:TextArea id="textArea" textFlow="{thisTextFlow}"
    editable="false" borderVisible="false"
    width="100%"
    contentBackgroundAlpha="0"
    heightInLines="4"
    verticalScrollPolicy="auto" horizontalScrollPolicy="auto"/>
    </mx:VBox>

    Below is code that is working and is re-usable, and if a textArea has a visible scrollbar than when that scrollbar has mouse down/up it sets the dataGrid to dragEnable = false/true to take care of the problem with the textArea dragging and scrolling at the same time.
    One minor thought/issue is:
    1. The size of this renderer using both a VBox and a textArea - but I wanted a scrollable text area that handles textflow.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:VBox xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/halo"
    implements="mx.controls.listClasses.IDropInListItemRenderer"
    creationComplete="init()">
    <fx:Script>
    <![CDATA[
    import mx.controls.DataGrid;
    import mx.events.FlexEvent;
    import mx.controls.dataGridClasses.DataGridListData;
    import mx.controls.listClasses.BaseListData;
    import mx.controls.listClasses.IDropInListItemRenderer;
    import flashx.textLayout.elements.TextFlow;
    import flashx.textLayout.conversion.TextConverter;
    private var dg:DataGrid;
    private var _listData:BaseListData;
    [Bindable]
    private var thisTextFlow:TextFlow;
    private function init():void
    dg = DataGrid(_listData.owner);
    textArea.scroller.verticalScrollBar.addEventListener(MouseEvent.MOUSE_DOWN, mouseDown_handler);
    textArea.scroller.horizontalScrollBar.addEventListener(MouseEvent.MOUSE_DOWN, mouseDown_handler);
    private function mouseDown_handler(event:MouseEvent):void
    dg.dragEnabled = false;
    textArea.scroller.verticalScrollBar.addEventListener(MouseEvent.MOUSE_UP, mouseUp_handler);
    textArea.scroller.horizontalScrollBar.addEventListener(MouseEvent.MOUSE_UP, mouseUp_handler);
    private function mouseUp_handler(event:MouseEvent):void
    dg.dragEnabled = true;
    textArea.scroller.verticalScrollBar.removeEventListener(MouseEvent.MOUSE_UP, mouseUp_handler);
    textArea.scroller.horizontalScrollBar.removeEventListener(MouseEvent.MOUSE_UP, mouseUp_handler);
    public function get listData():BaseListData
    return _listData;
    public function set listData(value:BaseListData):void
    _listData = value;
    override public function set data(value:Object):void
    if (value != null)
    super.data = value;
    thisTextFlow = TextConverter.importToFlow(data[(listData as DataGridListData).dataField], TextConverter.TEXT_FIELD_HTML_FORMAT);
    dispatchEvent(new FlexEvent(FlexEvent.DATA_CHANGE));
    ]]>
    </fx:Script>
    <s:TextArea id="textArea" textFlow="{thisTextFlow}"
    editable="false" borderVisible="false"
    width="100%"
    contentBackgroundAlpha="0"
    heightInLines="4"/>
    </mx:VBox>

  • How to address relative cell in TileList during drag-and-drop processing

    Is there a way to address the tile cell being dropped onto
    during the dragDrop function processing?
    private function myDragDrop(e:DragEvent):void {
    // e.whatthe#*&$
    <mx:TileList id="tilelist1" rowCount="9" columnCount="9"
    dragDrop="myDragDrop(event);" dataProvider="{anyOldAC}"/>
    If I'm dropping an object on the 3rd row and 5th column, I'd
    like to be able to manipulate the15th entry in the dataProvider
    without having to figure out the cell number from the component
    geometry and mouseX/mouseY. Using component geometries just seems
    WAY too brittle.

    Got the answer from Joan Lafferty on the FlexCoders forum:
    Use calculateDropIndex(event:DragEvent) that is a function
    for a TileList. In will return the index where the item was
    dropped.
    And that works:
    private function myDragDrop(e:DragEvent):void {
    var dropIndex:int = tilelist1.calculateDropIndex(e);
    Alert.show("dropIndex: " + dropIndex);
    Thanks Joan!

  • ADF Gantt Chart refresh on drag and drop not working

    Hi All,
    I am using jDev 11.1.1.6.
    I have a bounded task flow with two page fragments. On the first fragment, I have some filters and on the second fragment I show the Gantt Chart.
    I have a data change listener associated to it. When I move a task from one time to the other, the data change listener is invoked and I can see that the database values are also updated with the new time values.
    But, after the refresh the task still shows up on its old time period and not the new one. But, if I open the application again as a fresh one, it shows up in the new time period.
    I have tried refreshing the iterator within the data change listener but it still doesn't work and the gantt chart in not getting updated instantly.
    Need help.
    Thanks in advance,
    Ankit

    Hi All,
    I raised a SR for this and the analyst filed a defect. The bug number is "Bug 18195263 : ADF GANTT CHART NOT UPDATED PROPERLY WHEN MOVING A TASK".
    As a workaround, I am manually refreshing the child rows after calling the update DB procedure (Procedure that updates the start date and end date).
    //Get the Master View
    ViewObjectImpl empVO = this.getemployeeList1();
    Row[] grpRow = empVO.findByKey(new Key(new Object[] { empNo }), 1); 
    // Get Child Rows using ViewLink Accessor
    if(grpRow.length>0){
    RowSet childRows = (RowSet)grpRow[0].getAttribute("empTasksView"); 
    //Execute Child Rowset
    childRows.executeQuery(); 
    Thanks,
    Ankit

  • My 4S iphone keeps trying to turn off during phone calls and drops the calls.  Sometimes I have to call back 3-4 times to finish a conversation.

    While talking on my iphone, the phone tries to turn itself off.  Not just once, but continuous, and not just dropping the call, but actually tries to turn itself off.

    Well, then I'm glad this is most probably not a hardware issue - at least not an exceptional, maybe defect of all? -. This seems to be a good idea, because 2G will nearly everywhere available, so phone calls are not likely to drop at all. I'm just a bit confused, because they promised intelligent switch even during calls. For me that means that if the better, faster connection is available, then it uses that, and if it wouldn't be, then it switches to the slower one.
    Anyways, thanks for your reply. I guess it's a "just get used to it" issue.

  • I updated my Touch to 6.0.1 or .2 but now I cannot get my music back on my Ipod. I have sync'd and dragged and dropped and stood on my head in the yard at night during a full moon. Nothing is working. Help before the neighbors complain.

    I bought a new laptop over the holidays and decided to finally get my itunes set up on it. I went to itunes and purchased four new songs all excited. I plugged in my...I think..fifth generation ipod touch to the computer. I had the usually update box appear. I decided to do the complete update. I see there are updates to 6.0.1 or 6.0.2. I thought it said 6.0.1.  All went well.
    l have been able to sync a few times. I now have those four new songs on my ipod. I still have music that appears on my computer in itunes and I am able to play it there. I just cannot figure out how to get my music onto my touch. I spent hours trying to figure it out last night. I am so frustrated. What am I missing here? Can anyone help? Please.

    Okay. I hope I can remeber all my steps exactly because I fixed my own problem...with absolutely no help from Apple. I opened itunes. I connected my ipod touch to my computer. On my itunes page that shows my songs in the upper right side under the search library box there is an itunes button and since I am connected there is an ipod button. DO NOT CLICK THE ARROW in the ipod button...just click in the mail part of the button. On mine it opened to a summary page that gave info on my ipod. The menu bar has Summary, Apps, Tones, Music and more. I clicked on the Music button. I chose to Sync the entire music library. That replaced what was on my ipod but what was on there was going to be put back on so I was okay with it. I then clicked the Sync button on the lower right side and it sync'd and all my songs are on my ipod again. I hope this might help someone else. Good luck.

  • Drag and Drop inside JTable: what draws the 'insert' line during the drag?

    I'm trying to reconfigure a rather complex table with a fair number of custom renderers to include drag & drop of rows for resorting the table. Everything is working great, except that as I drag the rows there is no indication of the current insert point (i.e. the line that appears between rows). When I make a simpler table I see the line... I'm not sure what aspect of my current table is blocking this function. I'm writing in the hope that can someone can direct me to the method(s) responsible for drawing this line.
    Thanks!

    To elaborate a bit for anyone who might read this. I inquired with the Substance developers and they hope to support this feature in v5.1 (which requires SE6), but have no plans to update v4.3 (the last release before a switch to SE6).
    Also, I'd still be grateful for any info pointing me to the Swing methods that draw the drag line.

  • Issue during drag and drop in vb

    Hi Uwe,
    I want an urgent help on the following scenario.
    When i do a drag and drop anywhere on vb other than a link or spot.The screen freezes and when i try to do at lead selection on any of the FPM objects at the same time I get an assert condition violated dump.After my analysis I think its still possess the drop event when i try to do any other action on fpm at same time.This issue is happening for me in ie11 but for ie10 its working fine.
    Please suggest some remedy!
    Thanks
    Siju

    Hello Siju,
    I am aware of multiple issues with drag and drop in the context of VB embedded in FPM/WD. In order to sort this out correctly and get the right solution I suggest to open a support ticket on BC-WD-CMP-FPM.
    Best regards,
    Uwe

  • IPhoto file creation date inconsistencies during drag and drop

    I have noticed that if I drag and drop a photo from iPhoto to Finder, the file creation dates in Finder are inconsistent.
    (This question is related to drag and drop only and not File->Export, which always uses the export date and timestamp for the file creation date and thus does not suit my needs).
    TEST A -- If the EXIF DateTimeOriginated is 01/01/2013, and today's date is 03/03/2013, then:
    In some cases when I drag a file to Finder, the EXIF date is used as the file modification/creation date in Finder
    In some cases, today's date is used as the file modification/creation date in Finder
    In some cases, a date in between the EXIF date and today's date is used
    It appears that for case A1, these are files that do not have a modified copy.  That is, if you select the photo in iPhoto and then click "File" -> "Reveal In Finder", the "Modified File" choice will be greyed out.
    For cases A2 & A3, iPhoto has inexplicably decided to create modified versions of these files either today or sometime in the past.
    TEST B -- I have read that unexplained modifications are tied to the auto-rotate function in cameras, and it does seem to be the case when I performed the test below:
    Select a large group of landscape format photos (these would not have been auto-rotated), then drag and drop to Finder.  The file creation dates are set to the EXIF date
    Add some portrait photos to the group in (1).  Now the file creation date of ALL photos including the non auto-rotated photos are set to the current date
    The behaviour in B2 is clearly wrong, since the landscape photos should be the same as in B1.  This is bug #1.
    Furthermore, iPhoto appears to be inconsistent with when these modifications are made.  For example, I dragged & dropped an auto-rotated photo on 02/02/2013, then dragged & dropped it again today, then the file creation date in Finder (and also the date of the modified file in iPhoto, as shown in iPhoto File->Reveal In Finder->Modified File) can either the EXIF date (01/01/2013), the late of the last drag & drop (02/02/2013), or today's date (03/03/2013); there does not appear to be any rhyme or reason to this.  This is bug #2.
    In any case, saying "you should never use drag & drop in iPhoto" (as I have read in some other forum posts) isn't a solution, because Apple should either (a) support this function correctly or (b) remove it altogether.  Furthermore, I regularly burn photos to disk for others so having the file date and timestamps correctly set to the EXIF date helps keeping the photos sorted in the directory listings for multiple OS, so File->Export isn't a solution.

    File data is file data. Exif is photo data. A file is not a photo.  It's a container for a photo.
    When you export you're not exporting a file. You're exporting a Photo. The medium of export is a new file. That file is created at the time of export, so that's its creation date. The Photo within that file is dated by the Exif.
    There are apps that will modify the file date to match the Exif.
    The variation you're seeing is likely due to the changes in how the iPhoto library works over the past few versions. Drag and drop is handy, but is not a substitute for exporting, nor intended to be.

  • CS5 Bridge repeatedly crashing during drag and drop

    I've recently purchased Photoshop CS5 and I'm getting used to a new workflow using raw (DNG) images with my new camera. Since raw images pretty much must be browsed within Bridge (would be nice if Windows Explorer could recognize DNG files some day), I'm learning the ins and outs of working in Bridge.
    My problem has been repeated crashing of Bridge while sorting and moving around a bunch of images. I find it easier to view thumbnails in Bridge on one screen and use Windows Explorer on a second screen to create subfolders and as a place to drag-and-drop selected photos. I can usually move several groups of images to Windows Explorer before Bridge crashes but I'd say Bridge never runs for more than a minute or two between crashes. I've read a few other messages on this forum which have suggested holding down <ctrl> while starting Bridge to reset the preferences. That seems (though possibly coincidentally) to have changed the place where Bridge crashes from the StackHash module to the ntdll.dll module. The following is an example of the problem signature of one of these crashes in case this looks familiar or provides any sort of clue:
    Problem signature:
    Problem Event Name: APPCRASH
    Application Name: Bridge.exe
    Application Version: 4.0.2.1
    Application Timestamp: 4bff9363
    Fault Module Name: ntdll.dll
    Fault Module Version: 6.1.7600.16559
    Fault Module Timestamp: 4ba9b29c
    Exception Code: c0000005
    Exception Offset: 0002e25b
    OS Version: 6.1.7600.2.0.0.768.3
    Locale ID: 1033
    Additional Information 1: 0a9e
    Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
    Additional Information 3: 0a9e
    Additional Information 4: 0a9e372d3b4ad19135b953a78882e789
    Before anybody suggests I am running Windows7 Home Premium (x64) with an Intel i7 CPU, 8GB of RAM and a 1TB hard drive. I have all the available updates applied to the CS5 software, my video driver, and Windows itself. The problem is persistent and repeatable and rebooting and closing down all other applications have no effect.
    Am I the only CS5 user in the known universe having such issues or are there known problems dragging and dropping with Bridge?

    Rabbit of Caerbannog wrote:
      I find it easier to view thumbnails in Bridge on one screen and use Windows Explorer on a second screen to create subfolders and as a place to drag-and-drop selected photos.
    This may be causing the problem.  Drag and drop requires more resources of the OS and video card.  Can you use "move or copy to" instead and see it that works?
    Also, I can see no reason to use Windows Explorer to create subfolders and your method to drag and drop may cause other problems.  If you move files with an XMP file attached make sure it moves with it. 
    I think you are making it more difficult that you need to.  Also, Win. Exp does not display thumbs of Raw images as you mentioned. 
    If you want 2 browsers open click File/new window and now you have 2 copies of Bridge open.  Put one on each monitor.
    If you enter ntdll.dll in a web search you will see it is somewhat of a gereric hard drive error.
    Hope this helps.

Maybe you are looking for

  • How can i combine several JFrame into one

    I has several JFrames running with different tasks eg. using various eventlistener and runnable. but when i try to combine all these JFrames into one, compiling is ok but running always has missing information. pls kindly advise the easiest method to

  • Audio and video timing thrown off on export to Adobe Media Encoder

    Hi. I have a two and a half minute video which includes a lip-synched character.  Everything is working perfectly inside Premiere Pro CS4. When I export this using F4V format, I set it to match frame rate as source then typed in 24fps for good measur

  • Ledger 0 has fiscal year variant instead of V3 - Message - GI174

    Hi all, i am geting below message when i am doing KP06 for cost center planning Ledger 0 has fiscal year variant instead of V3 Message no. GI174 Diagnosis When transferring planning data, the receiver ledgers must have the same fiscal year variant as

  • Album work display on ipod

    I just got the new 30gb ipod with video and i want the album cover work to show up on the ipod with the song. i went to itunes went to preferences and selected that the ipod be updated automatically with the album cover work. then i update it but non

  • Possible to use both Front Row AND Media Central with same Apple Remote?

    Dear Fellow Mac Users, I have just got a copy of Media Central as i want to use it to view movie files with due to its great codec support. however due to its slightly sluggish and cumbersome design i'd like to continue to use front row for my itunes