Drag and drop in DVT Gantt Charts

Hi all. I am using jdev 11.1.2.1.0.
I would add this functionality in my Scheduling Gantt charts : move a horizontal bar (using the mouse) in the jsf page for example one day before.
Do you know if I can ?
Thanks in advance
Stefano

What do u mean by saying this?? Drag & Drop is possible for
components example Jtree , jtable .These are placed on containers like JApplet, Applet or frame .
So the answer is yes !
there is a seprate package devoted to Drag & Drop.

Similar Messages

  • Drag and Drop functionality for SVG charts.

    Has anyone been able to get a drag and drop functionality with charts?
    I've read where Vikas was able to accomplish this with reports, but, unfortunately, it was an old post and his example is no longer available.
    I understand that this is more on the browser/presentation layer rather than the back-end, but, judging from the replies from the mainstays in this forum along similar lines, I'm hoping someone may have accomplished this already.
    I'm trying to get this to work for a "dashboard" type application I'm trying to prove out using HTMLDB.
    Your responses are appreciated.
    Thanks

    Hello,
    I've done drag and drop using the Adobe SVG Viewer before in a whiteboard application built on top of ... you guessed it... Apex. Unfortunately I do not have an example I can share with you but I know it can be done because I did it, trust me ;) . I am planning on building out that application as an application anybody can download and use but unfortually it will be bit.
    Your best bet at the moment is looking on google http://www.google.com/search?q=svg+drag+and+drop there are quite a few examples.
    Oh also look at this file in the images directory /images/javascript/svg_js_includes/svg_common/oracle.svgNodes.js it has quite a few helper functions and that file is included in every chart by default so there are functions you can use, (no drag and drop unfortunalty)
    If you have can lock down the users in your environment to use only Firefox or Safari you can look at canvas as well it's pretty handy and can do alot of the same stuff
    http://developer.mozilla.org/en/docs/Drawing_Graphics_with_Canvas
    and of course some simple examples in Apex
    http://apex.oracle.com/pls/otn/f?p=11933:78 (it runs on keypress in the textarea I use it to mess with Canvas constructs)
    Carl
    Message was edited by:
    Carl Backstrom

  • Gantt drag and drop

    Hi.
    I'm trying to implement drag and drop in a dvt:schedulingGantt ADF component. I've managed to get it sort of working. I can click on a 'taskbar' and drag it to another 'resource'.
    But how can I get a reference to the Task that is being dragged? I can only get the key to the resource I'm dragging from, not the specific task that I'm dragging..
    I'm doing this:
    RowKeySet rowKeySet = transferable.getData(rowKeySetFlavor);
    and get the key (rowid) out of the RowKeySet, but thats the key to the resource, not to the task.
    I really need to get a reference to the dragged task, does anyone know how to do that?

    User,
    A timely question.
    Have a read of Data Visualization Components Demo - question to Oracle people
    Oracle has just posted the source for those demos.
    John

  • Dvt:hierarchy node Drag and drop functionality

    Hello,
    I noticed that in the JDeveloper 11.1.2.3 Rich Client Demo that drag and drop in heirarchical views is now available. Excellent news!
    I have tried to implement this functionality in my application but I'm having a few problems.
    The demo uses the following code to get the row data....
          UIHierarchyViewer hv = (UIHierarchyViewer)dropEvent.getDropComponent();
          TreeModel model = (TreeModel)hv.getValue();
          Map dropSite = (Map) dropEvent.getDropSite();
          String dropTargetClientRowKey = (String)dropSite.get("clientRowKey");
          Employee dropTargetEmployee = null;
          if (dropTargetClientRowKey != null)
            Object dropTargetRowKey = hv.getClientRowKeyManager().getRowKey(FacesContext.getCurrentInstance(),
                                                                            hv, dropTargetClientRowKey);
            model.setRowKey(dropTargetRowKey);
            dropTargetEmployee = (Employee)model.getRowData();
          }this works for me if I alter it slightly thus
               dropTargetEmployee = (usersFromVORowImpl)((JUCtrlHierNodeBinding) model.getRowData()).getRow();and am dragging and dropping between the highest level nodes but if I drop into a lower (child) node it fails with NPE when invoking .getRowData, presumably because the model reflects the top view of the master detail model (model.getRowCount supports this theory)
    so how do I get rowdata from child levels of the HV model? Franks example 101 of dropping into a RichTree gives a List back from the dropEvent for a tree, but HV's give back a Map
    I have started to experiment with "enterContainer" on the model variable but I can't seem to extract the values of the rowKey to use, I just get "dropTargetRowKey = [oracle.jbo.Key[], oracle.jbo.Key[]]" can anyone tell me how to get the key elements out of the object returned by getClientRowKeyManager().getRowKey? It's coming back as a Singleton but I can't get the List elements out of it although I can see them when I inspect the object in the debugger
    Any help appreciated, many thanks!
    JDeveloper version 11.1.2.3

    or more simply, does anyone have an example of dragging and dropping from a root node to a child node in a heirarchy viewer using oracle database tables as the master detail via views and view links? (e.g. departments/employees)
    Thanks

  • A question about drag and drop

    I have multiple images which can be dragged and dropped in a canvas. How can I get information about pictures into dataGrid, for instance the name and value (price) of an image? Currently my images are in array like this:
    private function init():void {
    currentExampleImage = imageExampleArray[imgExampleCurrentIndexNumber];
    private var imgExampleCurrentIndexNumber:Number = 0;
    private var imageExampleArray:Array =
    "assets/image1.png",
    "assets/image1.png"
    and they are run with loop like this:
    [Bindable] protected function get currentExampleImage():String {
        return _currentExampleImage;
    protected function set currentExampleImage(value:String) : void {
        _currentExampleImage = value;
    private function nextExampleImage(e:MouseEvent):void {
        if(imgExampleCurrentIndexNumber < imageExampleArray.length - 1)
        imgExampleCurrentIndexNumber++;
        currentExampleImage = imageExampleArray[imgExampleCurrentIndexNumber];
    else
        imgExampleCurrentIndexNumber = 0;
        currentExampleImage = imageExampleArray[imgExampleCurrentIndexNumber];
    So the question is that how can I set and get the name and the value of an image when it is dropped on a canvas and that information to be shown in a separate datagrid? Should I be using objects or classes? This is the drop function:
    private function doDragDrop(event:DragEvent):void
        var img:Image;
        if (event.dragInitiator.parent == whiteBoard)
            img = event.dragInitiator as Image;    
        else
            img = new Image();
            img.source = (event.dragInitiator as Image).source;
            img.addEventListener(MouseEvent.MOUSE_DOWN, doDragStart);
            whiteBoard.addChild(img);        
               img.x = event.localX - (event.dragSource.dataForFormat("localX") as Number);
               img.y = event.localY - (event.dragSource.dataForFormat("localY") as Number)
    Thanks beforehand and feel free to ask more information something is unclear.
    Message was edited by: SerpentChimera

    There's a separate empty datagrid in my application and the main intention is to make the information of each image (those dragged and dropped onto a canvas that is a designing area) being shown in the datagrid's columns Name - Quantity - Price. Those values should be obtained from each image but I'm currently unaware of the technique how the information could be added to the images.
    For instance Example1.png has a price value of 150€ and when that image is moved onto a canvas, the name and price should be shown in the datagrid and thus there should be simultaneous changes in the Quantity-column when I move the same image onto a canvas many times. Those images can also be removed from the canvas area and then the quantity should decrease. Obviously that same function should work on other images we have in a menu from where the images are dragged and then moved and dropped in the canvas. If I move Example1.png four times there should be Example1 in the name column, 4 in the quantity column and 600€ in the price column and of course all of them in the same row.
    Pay attention to the code I put into the first post. You may suggest better options how I can sort-of-import (couldn't invent better term) images to the application.
    Later there will be a row in the end of the datagrid/chart where the total price of every object that are moved on the canvas should be shown but that's another story.
    Hopefully this made some sense to the whole thing.

  • Stacked BarChart with drag and drop

    Hi,
    I have a BarChart with a stacked BarSet that can be drag and
    dropped. The problem is that when I click on a BarSeries in the
    chart to initiate a drag, only that BarSeries is being visually
    dragged. I would like to visually drag all the BarSeries in the
    stacked BarSet.
    This is better explained with a "picture". Suppose I have the
    following stacked mini-chart:
    XXXXXYYYYYYYYYYYYYYZZZZ
    XXXYYYYYYYYYZZZ
    XXXXXXXXXXXXXXXXXXXXXXYYYYYYYZZZ
    XXYYYYYYYYYYYZZZ
    XXXYYYZZZZZZZZZZZZZZZZZZZ
    Here X, Y and Z are BarSeries. When I click on ZZZ to
    initiate a drag, only the ZZZ is visually dragged. I understand
    that this is okay, but in my case I want to see XXXYYYZZZ visually
    dragged.
    How can I do this?
    Cheers,
    Andrej

    "mavdzee" <[email protected]> wrote in
    message
    news:gavo13$lpu$[email protected]..
    > Does anybody know this? How can I select sub-bars in a
    stacked BarSeries
    > in ActionScript? Is this possible?
    At a guess, I'd hide the real bars and make a dragProxy from
    a bitmap
    capture of the entire stack...

  • Drag and Drop inside a component

    I am using the Project Gantt component and want to drag and drop inside the component. I want to drag a timeline from one row and drop it to another row. And also drag a timeline from a row and drop it another place in the same row. Can I make the component a dragsource and droptarget?

    Hi,
    should be posted at JDeveloper and OC4J 11g Technology Preview
    Frank

  • Drag and Drop axis lock

    I am creating animations in Flash 5.5 for use in Captivate 5.5.  I have created a drag-and-drop animation for a horizontal line and a vertical line, to act as moveable "straight edges" for use on complicated charts.  How do I lock the horizontal line to just move along the Y axis, and the Vertical line to just move along the X axis?  (I'm a relative newbir working in Flash.)  Thanks for any help.
    John

    use:
    /* Drag and Drop
    Makes the specified symbol instance moveable with drag and drop.
    movieClip_1.addEventListener(MouseEvent.MOUSE_DOWN, fl_ClickToDrag);
    function fl_ClickToDrag(event:MouseEvent):void
        movieClip_1.startDrag(false,new Rectangle(0,0,0,stage.stageHeight));
    stage.addEventListener(MouseEvent.MOUSE_UP, fl_ReleaseToDrop);
    function fl_ReleaseToDrop(event:MouseEvent):void
        movieClip_1.stopDrag();
    /* Click to Position an Object
    Moves the specified symbol instance to the x-coordinate and y-coordinate you specify.
    Instructions:
    1. Replace the value 200 with the x-coordinate
       where you want to position the object.
    2. Replace the value 100 with the y-coordinate where you want to position the object.
    /* Drag and Drop
    Makes the specified symbol instance moveable with drag and drop.
    movieClip_2.addEventListener(MouseEvent.MOUSE_DOWN, fl_ClickToDrag_2);
    function fl_ClickToDrag_2(event:MouseEvent):void
       movieClip_2.startDrag(false,new Rectangle(0,0,stage.stageWidth,0));
    stage.addEventListener(MouseEvent.MOUSE_UP, fl_ReleaseToDrop_2);
    function fl_ReleaseToDrop_2(event:MouseEvent):void
        movieClip_2.stopDrag();
    Hope this helps.  Thanks for your interest.
    John

  • WAD drag and drop with table and graphs

    Dear Experts
    I create a web template with chart and query.
    I have problem with drag and drop when I change the visualization of
    the template.
    If I create a template with graph open I can add free characteristics
    only if the graph is open. If I want close it, I can only change/substitute the
    free characteristics, but not add one.
    this behavior is opposite if I create the template with graph close: I
    can add free characteristic if the graph is closed, when I open it I
    can only change/substitute the characteristics.
    Is this the correct behavior
    Thank you and best regards
    Elena

    Merci beaucoup!!
    it is also posible in AWT ?
    Message was edited by: roshca181
    [email protected]

  • Can I prevent Visio 2010 from allowing drag and drop of swimlanes?

    I am having a pesky issue while putting together my cross functional flow charts that I would like to prevent.  When I accidentally click and drag a swimlane, it moves.  Is there a way to change a flowchart property where it will not allow a user
    to drag and drop columns?  We have multiple people editing the same flowchart and sometimes people accidentally mess it up by dragging and dropping a swimlane instead of the boxes inside the swimlane.  
    Thank you for your help!  I can't seem to find a setting anywhere that disables drag and drop of swimlanes.

    First, ensure you have the Developer tab enabled. Now select a swimlane, then Developer -> Protection
    and check X Position and Y Position.
    Paul Herber, Sandrila Ltd. Engineering and software shapes for Visio
    Sandrila Ltd

  • I want to Sync my iPhone 4 to iTunes however I get an error message from iTunes each time I connect the phone to the PC saying that I should restore to factory settings. Frustrating because it's already annoying enough that I can't drag and drop mp3's!!!

    I have never been so frustrated before in my life with any phone. I find it obnoxious as it is that I cannot simply drag and drop files (especially MP3's) straight from my PC directly into my phone, which I have been used to doing up until now. Everyone who convinced me to get the iPhone has instructed me that my frustration can be fixed by downloading iTunes and syncing it all up via that program (which I have never used before). So, I downloaded the program successfully, however when I connect the iPhone 4 to the PC and iTunes is open, I get an error message that 'iTunes cannot read the content of the iPhone "iPhone" and that I should go to the Preferences tab of the iPhone and select 'restore' to restore this phone to factory settings. First of all, I don't understand why I need to do that. I have already downloaded apps and other important things in the 2 days that I have the phone. I am also scared that it will erase my contacts. This is such a headache. Music is very imporatant to me, but I am getting so frustrated that I don't have freedom over the phone which I thought was supposed to be one of the best out there. I would really appreciate help in this matter. I am sure the phone is great but I am on the verge of taking it back and getting something else.

    Hey joshuafromisr,
    If you resintall iTunes, it should fix the issue. The following document will go over how to remove iTunes fully and then reinstall. Depending on what version of Windows you're running you'll either follow the directions here:
    Removing and Reinstalling iTunes, QuickTime, and other software components for Windows XP
    http://support.apple.com/kb/HT1925
    or here:
    Removing and reinstalling iTunes, QuickTime, and other software components for Windows Vista or Windows 7
    http://support.apple.com/kb/HT1923
    Best,
    David

  • When I drag and drop an icon from the address bar to the desktop is does creat the shortcut but will not display the website icon, only the firefox icon, how can I display website icons?

    When I drag and drop a website icon from the Forefox address bar to the desk top, the short cut is created but the icon that appears is the firefox Icon. I want to disply the icon from the website that the short cut refers to. I have checked all I can think of in my computer to no avail.

    You have to assign the favicon yourself to the desktop shortcut (right-click the shortcut: Properties) after you have dragged the link to the desktop.
    You can usually find the favicon in Tools >Page Info > Media and save the icon there.
    Otherwise use the main domain of the website and add favicon.ico (e.g. mozilla.com/favicon.ico ) to display the favicon in a tab and save that image to a folder.

  • Is there any way of dragging and dropping an iCal event showing in week view across to a date in the left sidebar monthly calendar?

    Hi, Im not a frequent forum poster, as most of my questions can be found already answered on them!
    This is a question Ive had for a long time and it amazes me that no-one else seems to ask it. I check at each OS upgrade but its never there...
    Is there any way of dragging and dropping an iCal event showing in week view across to a date in the left sidebar monthly calendar?
    I was able to do this years ago in MS Outlook, and utilized it all the time when I needed to push things back, now I have to open the event and select an new date in the drop-down calendar for each & every event I want to move to a new month at the end of the month.
    If its definitely not possible, how to you ask apple to consider including it - it doesnt seem like a particularly difficult task.
    Thankyou
    Andrew.

    Andrew,
    Is there any way of dragging and dropping an iCal event showing in week view across to a date in the left sidebar monthly calendar?
    No, but you can use cut/paste. Cut (⌘X) the event, then click on the week where you want to move the event, and Paste (⌘V).
    If you have a suggestion for Apple to change that method use: Apple - Mac OS X - Feedback.

  • Why does not drag and drop work?!

    Hello,
    I am trying to implent a drag and drop from a table to an icon representing a trash.
    The drop handler fails in converting the selected rows to a list:
    com.sun.el.MethodExpressionImpl@87d9c00d javax.el.ELException: java.lang.ClassCastException: java.lang.String cannot be cast to java.util.List
    Could you help me to understand why? Below are the details.
    This is the af:table:
    <af:table var="row" rowBandingInterval="0" id="t1"
    value="#{bindings.MyView1.collectionModel}"
    rowSelection="multiple"
    columnStretching="last"
    horizontalGridVisible="false"
    verticalGridVisible="false" fetchSize="-1"
    autoHeightRows="6" width="190"
    disableColumnReordering="true">
    <af:column sortable="true" headerText="Entry" id="c1"
    align="start">
    <af:outputText value="#{row.Description}" id="ot1"/>
    </af:column>
    <af:dragSource actions="MOVE" defaultAction="MOVE"
    discriminant="delete"/>
    </af:table>
    This is the drop area:
    <af:image source="Images/empty_trash_32.png" id="i2">
    <af:dropTarget dropListener="#{backingBeanScope.DropHandlerBean.dropHandler}"
    actions="MOVE">
    <af:dataFlavor flavorClass="org.apache.myfaces.trinidad.model.RowKeySet"
    discriminant="delete"/>
    </af:dropTarget>
    </af:image>
    This is the failing listener listener (the failing point is bold):
    public DnDAction dropHandler(DropEvent dropEvent) {
    DnDAction dnda = DnDAction.NONE;
    if (dropEvent.getProposedAction() == DnDAction.MOVE) { // delete
    RichTable table = (RichTable)dropEvent.getDragComponent();
    //determine the rows that are dragged over
    Transferable t = dropEvent.getTransferable();
    //when looking for data, use the same discriminator as defined
    //on the drag source
    DataFlavor<RowKeySet> df =
    DataFlavor.getDataFlavor(RowKeySet.class, "delete");
    RowKeySet rks = t.getData(df);
    if (rks == null) {
    return DnDAction.NONE;
    Iterator iter = rks.iterator();
    while (iter.hasNext()) {
    //get next selected row key
    System.out.println(rks.toArray().length); // the number of selected rows is ok
    List key = (List)iter.next(); // here gives: java.lang.ClassCastException: java.lang.String cannot be cast to java.util.List
    //make row current so we can access it
    table.setRowKey(key);
    //the table model represents its row by the ADF binding class,
    //which is JUCtrlHierNodeBinding
    JUCtrlHierNodeBinding rowBinding =
    (JUCtrlHierNodeBinding)table.getRowData();
    Row row = (Row)rowBinding.getRow();
    //delete row;
    row.remove();
    //activate animation
    dnda = DnDAction.MOVE;
    return dnda;
    thanks.

    I did try, I obtained this:
    java.lang.NullPointerException
    Why NullPointerException?
    I don't know if this helps, but consider that the collection model comes from a ViewObject built on three EOs with many fields, although the table only shows one column.
    This is the Iterator in my pageDef:
    <table IterBinding="MyView1Iterator" id="MyView1">
    <AttrNames>
    <Item Value="Cod1"/>
    <Item Value="Cod2"/>
    <Item Value="Cod3"/>
    <Item Value="Cod4"/>
    <Item Value="Description"/>
    <Item Value="Cod5"/>
    </AttrNames>
    </table>
    Any idea?
    I will see the Key content with the debugger.

  • Did my first back up today using external hard drive and time machine now i can't drag and drop

    Hi, i did my first back up today using time machine it all went onto my external hard drive fine. Now i cant drag and drop anyhting. I assume ive cahnged some settings in time machine but cant figure it out what to do can some one help ?
    thanks

    Brandbasher wrote:
    Thanks Pondini but i have closed time machine, removed external hard drive.
    Did you eject it first?
    Now i cant drag and drop anything on my desk top, or mail or any other application. Ive tried moving folders, documents none of it works. Even moving around documents within a folder, it wont let me chnage the position of files.
    That shouldn't be related to Time Machine (especially if the backups aren't mounted).
    What happens when you try those things?  Do you get any messages?  Anything you can post a screenshot of?
    Have you tried a Restart?
    Does it happen in another user account?  (If you don't have one, create one via System Prefs > Users & Groups.)

Maybe you are looking for

  • Lync 2013 Android can't sign in with 5.4 but can sign in with 5.3

    AS Title said. I has deployed Lync 2013 Mobility. Now I got very strange things. First, I can sign in with Lync 2013 App Android 5.3.1100 and its fully functional(IM,Audio,Video). But when I update to Lync 2013 App Android 5.4.1106. I can't sign in.

  • Help with scheduling Process Flows in Workflow in 10gR2

    Dear All I am after some help with the scheduling of process flows (PF) in Workflow in OWB 10gR2. I am trying to set up some PF’s to handle the refresh of some staging tables from various source systems. I have created a separate Process Flow Module

  • Can you "Cross out" a photo in Indesign CS5?

    Hi all,  I'm working on a user manual and there is a photo in the manual that needs to be swapped/replaced with the correct photo. However, for now, I want to leave the wrong photo in and get to it later--but how do I marked it as WRONG? In other wor

  • QuickTime 16:9 or 4:3

    This is probably a codec choice matter. But a friend exported video shot in 16:9 and exported from Final Cut to QuickTime, the resulting .mov file was 4:3. Is there a choice for widescreen?

  • "Missing Operating System" when trying to boot from USB

    I have a macbook air (3,2), and I'm trying to install Arch onto the partition that currently has Ubuntu. I have tried a few different ways to get the Arch core iso onto the usb key drive, but no matter what I do, I am ending up with the message "Miss