Issue with Drag&Drop between table and tree component

I want to drag table rows and drop it on the tree node. I use following code to achieve this:
<af:table value="#{bindings.pricingObjects.collectionModel}"
var="row"
rows="#{bindings.pricingObjects.rangeSize}"
emptyText="#{bindings.pricingObjects.viewable ? 'No data to display.' : 'Access Denied.'}"
fetchSize="#{bindings.pricingObjects.rangeSize}"
selectionListener="#{workspaceBean.onTableSelect}"
rowBandingInterval="0" id="poTable"
partialTriggers=":::csTree :::cbRefresh"
columnStretching="column:c4"
displayRow="selected"
contentDelivery="immediate"
clientComponent="true"
binding="#{workspaceBean.table}"
rowSelection="multiple">
<af:dragSource actions="MOVE" defaultAction="MOVE" discriminant="rowmove"/>
</af:table>
<af:tree value="#{bindings.privateChangeSets.treeModel}"
var="node" displayRow="selected"
selectionListener="#{workspaceBean.onTreeSelect}"
rowSelection="single" id="csTree"
expandAllEnabled="false"
binding="#{workspaceBean.tree}">
<af:dropTarget dropListener="#{workspaceBean.dropListener}" actions="MOVE">
<af:dataFlavor flavorClass="org.apache.myfaces.trinidad.model.RowKeySet"
discriminant="rowmove"/>
</af:dropTarget>
</af:tree>
With this code I am getting the data of dragged rows but I am not able to get the tree node where rows are dropped. Dropevent.getDropSite() always returns NULL.
Strangely, I tried to use deprecated tags <af:collectionDragSource> and <af:collectionDropTarget> and everything works fine. Dropevent.getDropSite() returns me the correct rowkey of tree node.
Any idea why am I not getting desired result with <af:dropTarget>?

Hi,
+" Please note that dropSite==null is a legal value for collection components. dropSite=null and DropOrientation==ON indicates that the drop has happened outside the data portion of the collection component and should be treated as a drop on the entire component Also note that dropSite==null and DropOrientation==AFTER indicates that the drop has happened on an empty collection component and the user intends to append the data."+
http://download.oracle.com/docs/cd/E17904_01/apirefs.1111/e10684/oracle/adf/view/rich/event/DropEvent.html#getDropSite__
List dropRowKey = (List) dropEvent.getDropSite();
        //if no dropsite then drop area was not a data area
        if(dropRowKey == null){
            return DnDAction.NONE;
        }Frank
Edited by: Frank Nimphius on Feb 18, 2011 11:18 PM

Similar Messages

  • Strange UI sticking issue with drag/drop and JList

    Hi all,
    I have implemented drag/drop between a jtree and jlist. The jtree can accept drops from the jtree (nodes to other parent nodes) and from the jlist. The jlist can accept nodes of the tree being dropped on it.
    Let me say this much, it all works. Works fine and great. BUT, the purpose of my post is I am seeing a very strange and not easily reproducible problem.
    I should first say that after a successful drop, the list removes the selected items. I do support drag/drop for multiple items.
    When I drag items from the list to the tree, reasonbly normal (not too fast), everything seems to work every time. But if I drag an item quickly from the list to the tree, for some reason after the items are removed from the list, another item is selected, sometimes NOT in the place of where the item(s) were selected. Infact, when I drag quickly, I notice the selection changes in the list itself. I only accept tree objects being dropped in the list, so there is no ability to drag/drop list items onto itself, and thus if I drag a list item around the list normally, nothing changes..the item I am dragging stays selected and the cursor shows the drag arrow.
    So this problem seems seems odd. I can reproduce it fairly easily, but only when I click and drag quickly.
    Anyone have ideas? I don't see where in my list code that as I drag, when drop is done, etc that I select anything in the list. I have tried JDK 1.4.1 and 1.4.2 and it does it in both. I don't see a bug in the bug database for it, and I am not sure its a bug in the JVM or my own code!
    Any help is appreciated. Can't really post code as its a large set of code and it is dependent on our company project, so it would take some time to take the code out into its own app to test it again.

    Hi,
    +" Please note that dropSite==null is a legal value for collection components. dropSite=null and DropOrientation==ON indicates that the drop has happened outside the data portion of the collection component and should be treated as a drop on the entire component Also note that dropSite==null and DropOrientation==AFTER indicates that the drop has happened on an empty collection component and the user intends to append the data."+
    http://download.oracle.com/docs/cd/E17904_01/apirefs.1111/e10684/oracle/adf/view/rich/event/DropEvent.html#getDropSite__
    List dropRowKey = (List) dropEvent.getDropSite();
            //if no dropsite then drop area was not a data area
            if(dropRowKey == null){
                return DnDAction.NONE;
            }Frank
    Edited by: Frank Nimphius on Feb 18, 2011 11:18 PM

  • Any issues with file sharing between Windows and latest Mac client?

    We're running Lync 2013. My Windows client is 15.0.4551.1005. Mac client is version 14.0.8.
    I open a conversation with a coworker on his Mac. I then try to share a png file. He clicks accept but then my client says the attempt timed out, and his client says that I canceled the file transfer. The coworker then boots the Mac into Windows and we try
    again, and the file share works fine. When I jump on my Mac, I can send files to his Mac without issue. When he tries to send from his Mac to my PC it fails, but when he tries to send from Windows on his Mac to my PC, it works.
    I can't find anything specific in the logs that would indicate a firewall issue. Is there a bug with file sharing between the Mac and PC clients?
    Thanks,
    Matt

    No, There isn't a bug with file sharing between Mac and Pc client.
    2941640 Desktop sharing session stops in Lync 2013 when all screen data is updated
    Also you can check below links
    http://support.microsoft.com/kb/2952672/en-us
    http://support.microsoft.com/kb/2880474/en-gb
    Please remember, if you see a post that helped you please click "Vote As Helpful" and if it answered your question, please click "Mark As Answer"
    Mai Ali | My blog: Technical | Twitter:
    Mai Ali

  • Issue with Drag/Drop of multiple rows from ListView

    I am working on a sample application with 2 list views i.e. players and team, and implement drop and drop such that players can be dropped from one list view to the other. Everything is working as expected when there is single selection model is enabled on the source list view. However, if I enabled Multiple selection model and drag 2 or more rows from source list view to target list view, seeing the following exception after the drop is completed.
    Exception:
    java.lang.IllegalArgumentException: Only serializable objects or ByteBuffer can be used as data with data format [subListPlayers]
      at com.sun.javafx.tk.quantum.QuantumClipboard.putContent(QuantumClipboard.java:513)
      at javafx.scene.input.Clipboard.setContent(Clipboard.java:230)
    1) What should be the DataFormat used in order to be able to drag and drop multiple rows? Looks like we do not have for Object type, so I have created the following one which does not solve the problem.
       private DataFormat dataFormat = new DataFormat("subListPlayers");
    2) I have made changes to support serialization on the data object which also does not seem to solve the issue. Tried by implementing Serializable interface as well as by implementing Externalize interface.
    Can someone please guide if there is an easy way to implement this behavior?
    Code:
    public class Player
       private String name;
       public Player(String name)
          this.name = name;
       public String getName()
          return name;
       public void setName(String name)
          this.name = name;
       @Override
       public boolean equals(Object o)
          if (this == o) return true;
          if (o == null || getClass() != o.getClass()) return false;
          Player player = (Player) o;
          if (name != null ? !name.equals(player.name) : player.name != null) return false;
          return true;
       @Override
       public int hashCode()
          return name != null ? name.hashCode() : 0;
    public class JavaFXDnDApplication extends Application
       private static final ListView<Player> playersListView = new ListView<Player>();
       private static final ObservableList<Player> playersList = FXCollections.observableArrayList();
       private static final ListView<Player> teamListView = new ListView<Player>();
       private static final GridPane rootPane = new GridPane();
       private DataFormat dataFormat = new DataFormat("subListPlayers");
       public static void main(String[] args)
          launch(args);
       @Override
       public void start(Stage primaryStage)
          primaryStage.setTitle("Drag and Drop Application");
          initializeComponents();
          initializeListeners();
          buildGUI();
          populateData();
          primaryStage.setScene(new Scene(rootPane, 400, 325));
          primaryStage.show();
       private void initializeListeners()
          playersListView.setOnDragDetected(new EventHandler<MouseEvent>()
             @Override
             public void handle(MouseEvent event)
                System.out.println("setOnDragDetected");
                Dragboard dragBoard = playersListView.startDragAndDrop(TransferMode.MOVE);
                ClipboardContent content = new ClipboardContent();
    //            content.putString(playersListView.getSelectionModel().getSelectedItem().getName());
                content.put(dataFormat, playersListView.getSelectionModel().getSelectedItems());
                dragBoard.setContent(content);
          teamListView.setOnDragOver(new EventHandler<DragEvent>()
             @Override
             public void handle(DragEvent dragEvent)
                dragEvent.acceptTransferModes(TransferMode.MOVE);
          teamListView.setOnDragDropped(new EventHandler<DragEvent>()
             @Override
             public void handle(DragEvent dragEvent)
    //            String player = dragEvent.getDragboard().getString();
    //            ObservableList<Player> player = (ObservableList<Player>) dragEvent.getDragboard().getContent(dataFormat);
                String player = dragEvent.getDragboard().getString();
                teamListView.getItems().addAll(new Player(player));
                playersList.remove(new Player(player));
                dragEvent.setDropCompleted(true);
       private void buildGUI()
    //      rootPane.setGridLinesVisible(true);
          rootPane.setPadding(new Insets(10));
          rootPane.setPrefHeight(30);
          rootPane.setPrefWidth(100);
          rootPane.setVgap(20);
          rootPane.setHgap(20);
          rootPane.add(playersListView, 0, 0);
          rootPane.add(teamListView, 1, 0);
       private void populateData()
          playersList.addAll(
                new Player("Adam"), new Player("Alex"), new Player("Alfred"), new Player("Albert"),
                new Player("Brenda"), new Player("Connie"), new Player("Derek"), new Player("Donny"),
                new Player("Lynne"), new Player("Myrtle"), new Player("Rose"), new Player("Rudolph"),
                new Player("Tony"), new Player("Trudy"), new Player("Williams"), new Player("Zach")
          playersListView.setItems(playersList);
       private void initializeComponents()
          playersListView.setPrefSize(250, 290);
          playersListView.setEditable(true);
          playersListView.getSelectionModel().setSelectionMode(SelectionMode.MULTIPLE);
          playersListView.setCellFactory(new Callback<ListView<Player>, ListCell<Player>>()
             @Override
             public ListCell<Player> call(ListView<Player> playerListView)
                return new ListCell<Player>()
                   @Override
                   protected void updateItem(Player player, boolean b)
                      super.updateItem(player, b);
                      if (player != null)
                         setText(player.getName());
          teamListView.setPrefSize(250, 290);
          teamListView.setEditable(true);
          teamListView.getSelectionModel().setSelectionMode(SelectionMode.MULTIPLE);
          teamListView.setCellFactory(new Callback<ListView<Player>, ListCell<Player>>()
             @Override
             public ListCell<Player> call(ListView<Player> playerListView)
                return new ListCell<Player>()
                   @Override
                   protected void updateItem(Player player, boolean b)
                      super.updateItem(player, b);
                      if (player != null)
                         setText(player.getName());

    Yeah, this is a pain. I filed https://javafx-jira.kenai.com/browse/RT-29082 a while back. Go ahead and vote for it if you are inclined...
    I think the issue in your case is that the observable list provided by MultipleSelectionModel.getSelectedItems() is not Serializable. So even if you make your Player class Serializable, the list itself isn't. The first thing I would try, I think, is to make Player implement Serializable and then pass in an ArrayList instead of the observable list. So you can do
    content.put(dataFormat, new ArrayList<Player>(playersListView.getSelectionModel().getSelectedItems()));
    and
    List<Player> player = (List<Player>) dragEvent.getDragboard().getContent(dataFormat);
    teamListView.getItems().addAll(player);
    If that doesn't work, a workaround is just to store the "dragged list" in a property:
    final ListProperty<Player> draggedPlayers = new SimpleListProperty<Player>();
    // Drag detected handler:
    content.putString("players");
    draggedPlayers.set(playersListView.getSelectionMode().getSelectedItems());
    // Drag dropped handler:
    if (dragboard.hasString() && dragboard.getString().equals("players")) {
         teamListView.getItems().addAll(draggedPlayers.get());
         draggedPlayers.set(null);

  • Drag and Drop between JTree and another component

    Hi,
    I have searched the forum for answer to this question but am not sure I found something similar to this. So, please help me out on this.
    I have a JTree and a JPanel, which basically shows images (as thumbnails) for the child nodes of one node in the tree heirarchy.
    I need to be able to drag and drop components from the JPanel to the JTree and vice versa, and of course, when you drop them on the tree, they should go under the correct node.
    I am using Swing 1.4.1, and have successfully implemented DnD in the JTree itself. But I am a little unclear about the DnD between the tree and the panel.
    Would really appreciate if someone could throw some light on this.
    Thanks a lot,
    Sri.

    Hi clairesheridan,
    thanks for your response. Your answer would have helped me if I was using JDK 1.3 but I am try to use the Swing API in jdk1.4.1, in which you have to set a transferhandler etc.
    Please let me know if you have any ideas or solutions.
    Thanks,
    sriharmya.

  • Issue with VPN compatibility between 2811 and 2911

         hello
    I would like to ask anyone have had any issues with setting up a VPN tunnel between 2811 and 2911?
    The IPSec VPN is established but for some reason I cannot ping the LAN side to the other LAN side of the other end of the VPN Router?
    Any experience would be much appreciated
    Thanks           

    IPSec VPN can be with no problem set up between any cisco routers (and not nesesserely cisco),  so there are should be no issues in your case.
    If you say that tunnel is established successfully, then problem most probably related to routing issues between sites or incorrect crypto-acl configured. Check if hosts on both sites have correct routing information on how to get to subnets on the other site.
    To make more accurate assumptions it would help if you provide config on both sites and describe your topology.

  • Issue with RN messages between 10g and 11g

    Hi All,
    We are facing some issues for RN messages;
    We have configured Rosettanet Actions on both 10G and 11G . In 11G we have the RNTP (remote trading partner) in 10G we have host. The messages posted from host(10g) are not reaching the 11g remote TP, but failing due to the below errors;
    <29-Aug-2012 14:47:07 o'clock IST> <Error> <oracle.soa.b2b.engine> <BEA-000000> <B2B Label:PCBPEL_11.1.1.6.0_GENERIC_111
    214.0600.1553: java.lang.NullPointerException
    at oracle.tip.b2b.exchange.rnif11.RNExchangePlugin.decodeIncomingMessage(RNExchangePlugin.java:212)
    at oracle.tip.b2b.exchange.rnif11.RNExchangePlugin.decodeIncomingMessage(RNExchangePlugin.java:582)
    at oracle.tip.b2b.engine.Engine.processIncomingMessageImpl(Engine.java:1919)
    at oracle.tip.b2b.engine.Engine.processIncomingMessage(Engine.java:1650)
    at oracle.tip.b2b.engine.Engine.incomingContinueProcess(Engine.java:4042)
    at oracle.tip.b2b.engine.Engine.handleMessageEvent(Engine.java:3718)
    at oracle.tip.b2b.engine.Engine.processEvents(Engine.java:3205)
    at oracle.tip.b2b.engine.ThreadWorkExecutor.processEvent(ThreadWorkExecutor.java:677)
    at oracle.tip.b2b.engine.ThreadWorkExecutor.run(ThreadWorkExecutor.java:211)
    at oracle.integration.platform.blocks.executor.WorkManagerExecutor$1.run(WorkManagerExecutor.java:120)
    at weblogic.work.j2ee.J2EEWorkManager$WorkWithListener.run(J2EEWorkManager.java:184)
    at weblogic.work.DaemonWorkThread.run(DaemonWorkThread.java:30)
    Could anyone help us on this issue?
    Regards,
    Raj

    Hi Dheeraj ,
    1. With Both 10G we are getting the below error with Rosettanent Exchange Protocol Version 01.10 :
    Description: An unexpected error occurred during validation
    StackTrace:
    Error -: AIP-51505: General Validation Error: Error -: AIP-51505: General Validation Error: oracle.xml.parser.schema.XSDException
    at oracle.tip.adapter.b2b.document.rn20.RNDocumentPlugin.processIncomingDocument(RNDocumentPlugin.java:163)
    at oracle.tip.adapter.b2b.engine.Engine.processIncomingMessage(Engine.java:1927)
    at oracle.tip.adapter.b2b.engine.Engine.incomingContinueProcess(Engine.java:2617)
    at oracle.tip.adapter.b2b.engine.Engine.handleMessageEvent(Engine.java:2487)
    at oracle.tip.adapter.b2b.engine.Engine.processEvents(Engine.java:2442)
    at oracle.tip.adapter.b2b.data.MsgListener.onMessage(MsgListener.java:527)
    at oracle.tip.adapter.b2b.data.MsgListener.run(MsgListener.java:374)
    at java.lang.Thread.run(Thread.java:534)
    However , when we changed the Exchange Protocol Version to V02.00 we got the below error :
    Machine Info: (APT3VW03)
    Description: B2B adapter general error
    StackTrace:
    Error -: AIP-50031: B2B adapter general error: Error -: AIP-50025: Repository error : Error -: AIP-50547: Trading partner agreement not found for the given input values: From party[NAME] "null", To party[NAME] "null", Business action name "RequestPurchaseOrderAction"; also verify agreement effectiveToDate
    at oracle.tip.adapter.b2b.engine.Engine.processIncomingMessage(Engine.java:2006)
    at oracle.tip.adapter.b2b.engine.Engine.incomingContinueProcess(Engine.java:2617)
    at oracle.tip.adapter.b2b.engine.Engine.handleMessageEvent(Engine.java:2487)
    at oracle.tip.adapter.b2b.engine.Engine.processEvents(Engine.java:2442)
    at oracle.tip.adapter.b2b.data.MsgListener.onMessage(MsgListener.java:527)
    at oracle.tip.adapter.b2b.data.MsgListener.run(MsgListener.java:374)
    at java.lang.Thread.run(Thread.java:534)
    2. With both 11G Environments we are getting the below error (Exchange Protocol Version 01.10):
    <05-Sep-2012 13:49:36 o'clock IST> <Error> <oracle.soa.b2b.engine> <BEA-000000> <B2B Label:PCBPEL_11.1.1.6.0_GENERIC_111
    214.0600.1553: java.lang.NullPointerException
    at oracle.tip.b2b.exchange.rnif11.RNExchangePlugin.decodeIncomingMessage(RNExchangePlugin.java:212)
    at oracle.tip.b2b.exchange.rnif11.RNExchangePlugin.decodeIncomingMessage(RNExchangePlugin.java:582)
    at oracle.tip.b2b.engine.Engine.processIncomingMessageImpl(Engine.java:1919)
    at oracle.tip.b2b.engine.Engine.processIncomingMessage(Engine.java:1650)
    at oracle.tip.b2b.engine.Engine.incomingContinueProcess(Engine.java:4042)
    at oracle.tip.b2b.engine.Engine.handleMessageEvent(Engine.java:3883)
    at oracle.tip.b2b.engine.Engine.processEvents(Engine.java:3205)
    at oracle.tip.b2b.engine.ThreadWorkExecutor.processEvent(ThreadWorkExecutor.java:677)
    at oracle.tip.b2b.engine.ThreadWorkExecutor.run(ThreadWorkExecutor.java:211)
    at oracle.integration.platform.blocks.executor.WorkManagerExecutor$1.run(WorkManagerExecutor.java:120)
    at weblogic.work.j2ee.J2EEWorkManager$WorkWithListener.run(J2EEWorkManager.java:184)
    at weblogic.work.DaemonWorkThread.run(DaemonWorkThread.java:30)
    >
    <05-Sep-2012 13:49:36 o'clock IST> <Error> <oracle.soa.b2b.engine> <BEA-000000> <java.lang.NullPointerException
    at oracle.tip.b2b.msgproc.DbAccess.insertMsgTblRowImpl(DbAccess.java:621)
    at oracle.tip.b2b.msgproc.DbAccess.insertMsgTblRow(DbAccess.java:524)
    at oracle.tip.b2b.msgproc.DbAccess.updateWireBusinessToErrorState(DbAccess.java:6241)
    at oracle.tip.b2b.engine.Engine.handleInboundException(Engine.java:5130)
    at oracle.tip.b2b.engine.Engine.handleExceptionBeforeIncomingTPA(Engine.java:5062)
    at oracle.tip.b2b.engine.Engine.processIncomingMessageImpl(Engine.java:1983)
    at oracle.tip.b2b.engine.Engine.processIncomingMessage(Engine.java:1650)
    at oracle.tip.b2b.engine.Engine.incomingContinueProcess(Engine.java:4042)
    at oracle.tip.b2b.engine.Engine.handleMessageEvent(Engine.java:3883)
    at oracle.tip.b2b.engine.Engine.processEvents(Engine.java:3205)
    at oracle.tip.b2b.engine.ThreadWorkExecutor.processEvent(ThreadWorkExecutor.java:677)
    at oracle.tip.b2b.engine.ThreadWorkExecutor.run(ThreadWorkExecutor.java:211)
    at oracle.integration.platform.blocks.executor.WorkManagerExecutor$1.run(WorkManagerExecutor.java:120)
    at weblogic.work.j2ee.J2EEWorkManager$WorkWithListener.run(J2EEWorkManager.java:184)
    at weblogic.work.DaemonWorkThread.run(DaemonWorkThread.java:30)
    Regards,
    Raj

  • Issue with Data flow between Unicode and Non Unicode systems

    Hello,
    I have scenario as below,
    We have  a Unicode – ECC 6.0 and a UTF 7 – Legacy system.
    A message flow between Legacy system to ECC 6.0 system and the data is of 700 KB size.
    Will there be any issue in this as one is Unicode and other is non Unicode?
    Kindly let me know.
    Thanks & Regards
    Vivek

    Hi,
    To add to Mike's post...
    You indicate that your legacy system is non-Unicode and the ERP system is Unicode.  You also said that the data flow is only <i>from</i> the legacy system <i>to</i> the ERP system.  In this case, you should have no data issues, since the Unicode system is the receiving system.  There <b>are</b> data issues when the data flow is in the other direction: <i>from</i> a Unicode system <i>to</i> a non-Unicode system.  Here, the non-Unicode system can only process characters that exist on its codepage and care must be taken from sending systems to ensure that they only send characters that are on the receiving system's codepage (as Mike says above).
    Best Regards,
    Matt

  • DataSet and Tree component binding

    Could you please tell me how you set up data binding between
    DataSet and Tree component?

    download "Dataset connection wizard" extension.
    its simple useful and visual ;)

  • Problem with Drag & Drop and multiselection in tables

    Hi,
    we have a problem concerning drag and drop and multiselection in tables. It is not possible to drag a multiselection of table rows, as the selection event is recognized or handled before the drag event. So before the drag starts, the selection will be changed and only a single row is selected at the position where you started the drag with a mouse click.
    There was also a java bug with the id 4521075 regarding this problem a couple of years ago. See http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4521075.
    This bug has been resolved but in our application we have not enabled drag by setting setDragEnabled(true) on the table as we have an own implementation of a DragSource (which is the table component), and a DragGestureRecognizer to control mimetype and data to be dragged.
    So my question is: Is there any solution for this case without calling setDragEnabled(true) on the table? Or is it possible to enable drag on the table and override some method where the drag recognition happens and the transferable object is created?
    Thanks,

    Thanks for reply,
    Steps to reproduce the problem:
    1) user clicks the ascending sorting icon in the table(the button get disabled after sorting the table).
    2) After sorting user drag and drop some row over another row.
    3) Now the table is no longer sorted.
    4) If user again wants to sort the table now, he cannot do it because the sorting button is still disabled.
    So I want the user to sort the table again, without refreshing the page
    Thanks and Regards,
    Tarun

  • Memory leak issue with link server between SQL Server 2012 and Oracle

    Hi,
    We are trying to use the linked server feature with SQL Server 2012 to connect SQL server and Oracle database. We are concerned about the existing memory leak issue.  For more context please refer to the link.
    http://blogs.msdn.com/b/psssql/archive/2009/09/22/if-you-use-linked-server-queries-you-need-to-read-this.aspx
    The above link talks about the issues with SQL Server versions 2005 and 2008, not sure if this is still the case in 2012.  I could not find any article that talks about if this issue was fixed by Microsoft in later version.
    We know that SQL Server process crashes because of the third-party linked server provider which is loaded inside SQL Server process. If the third-party linked server provider is enabled together with the
    Allow inprocess option, the SQL Server process crashes when this third-party linked server experiences internal problems.
    We wanted to know if this fixed in SQL Server 2012 ?

    So your question is more of a information type or are you really facing OOM issue.
    There can be two things for OOM
    1. There is bug in SQL Server which is causing the issue which might be fixed in 2012
    2. The Linked server provider used to connect to Oracle is not upto date and some patch is missing or more recent version is to be used.  Did you made sure that you are using latest version.
    What is Oracle version you are trying to connect(9i,10g, R2...)
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it
    My Technet Wiki Article
    MVP

  • Htmlb:tree differentiate between nodeclick and tree node expander click

    Hi,
    how can i differentiate between nodeclick and tree node expander (to get to its children) click in my event processing in htmlb:tree element.
    <u><b>What i am trying to achieve?</b></u>
    Onload just load root node and its immediate children.
    On node expand get the children of the current node and modify htmlb:tree table2 with additional node inofs.
    on node click  call some client function.
    But my issue is that i am not able to differentiate between node expander click and node click in my event handling. Any help on this is appreciated.
    (I am not using MVC)
    Thanks in advance.
    Regards
    Raja
    Message was edited by: Durairaj Athavan Raja

    After reading your weblog I think I understand better. I did some testing with my example.  I am using the toggle = "true", so that the page returns to the server each time an expander is selected.
    <htmlb:tree id          = "myTree1"
                  height      = "75%"
                  toggle      = "true"
                  title       = "<b><otr>EQI Reporting Tree</otr></b>"
                  width       = "90%"
                  onTreeClick = "myTreeClick"
                  table       = "<%= application->selection_model->itview                             %>" >
      </htmlb:tree>
    However I have not added any coding in my event handler to respond to the expander event.  I only respond to myTreeClick (which loads some data for the given selection).  The BSP tree element itself must be doing the hard work for me. 
      if event_id cs 'tr_myTree1'.
        data: tree_event type ref to cl_htmlb_event_tree.
        tree_event ?= htmlb_event.
        if tree_event->server_event = 'myTreeClick'.
          clear appl->message1.
          appl->selection_model->get_chart_data( appl = appl
                                                 node = tree_event->node ).
        endif.
      endif.
    I pass my entire tree defintion to the element.  It appears that it only sends visible nodes to be rendered. When the expander is selected, I don't have to do anything, the tree re-renders with only the newly visible rows. 
    I tested and turned off the toggle (toggle = "false") and my page took forever to load because it was sending all the nodes to the frontend on the first load.

  • Drag&Drop between two windows

    Hi
    I am interested to know if in the latest version of abap webdynpro it is possible to do drag&drop between two windows?
    And if it is possible to have a floating part of a window ( that I can move it around the screen )?
    Thanks
    Nitsan

    Hi
    Thank u Thomas and Chris for your helpful answers!
    Still there is something I want to be sure about, the interaction that can be done between this floating window
    and the opening window.
    Can both window stay active and communicate between them?
    Ill give an example of what I mean:
    Lets say that I have window with few tables from this window I open another window with a list. now I want to dynamically
    move an item from this list to one of the tables in the parent window or move an item from one of the tables to this list.
    Can this scenario be implemented in abap webdynpro?
    Thanks,
    Nitsan

  • How to move a picture in another folder with drag & drop

    I want to move a picture in another folder with drag&drop. I work´s any more. What I do wrong?

    Hi all!
    Thanks.
    The problem was between the flatscreen and the chair...:-) I clicked always on the gray frame around and not in the image.
    Now it works!

  • How to maintain gap between table and graph in a report

    HI,
    I have a report in which a graph is placed below a table  and data in the table gets increased with time , then how to maintain the gap as constant between table and the graph ?? Like i have 50 rows in a table and then next day 10 rows are added but then i want maintain same gap between the table and graph???

    >Right click on chart.
    >Open the property and go to the relative position.
    >Select the distance of the upper left point of the chart in relation to another report element by entering - the number of pixels; the part of the tavfrom which youble want to measure the pixels (in the first drop-down list); the report element from which you want to measure the pixels (in the second drop-down list).
    >Repeat this for the distance of the lower left point of the chart.
    Hope this will help you out.

Maybe you are looking for