How to Rearrange components using Drag Drop functionality

Hi,
Is it possible to re-arrange the components inside the form using drag drop functionality in RCF?
There are 3/4 section headers in my screen, user can re-arrange them.
But as per the RCF document it says, "Drag Drop functionality allows users to drag the value of one component and drop it on to another". It dosent say any thing about component drag-drop.

Hi,
there is a componentDragSource element that you use for this. However, persisting the change of location is not handled automatically. I didn't try this, but I assume that using the component drag option gives you access to the UI component itself so you can nest it in another container
Frank
Ps.: the drag event always givey you access to the component. This componentDragSource however shows the component when dragging, which is a slightly better indicator if you plan to re-arrange items

Similar Messages

  • Drag & Drop Functionality Doesn't Work in External SWF?

    Hi all,
    I'm currently a TA for a Flash course at my school.  We're using AS 2.0 and working with external SWFs.
    I think this might be pretty simple to remedy.  Well, at least I'm hoping!
    A student is having trouble with drag & drop functionality when it  is used in an external SWF.  Basically, in our drag & drop section,  we have a sheet of paper ("paper" MC) and an object we drag into it  ("object" MC).  When the object is released in the paper area, we go to  frame 2 of "paper" MC, which consequently has an animation.
    This works fine and dandy in said drag & drop section, but once the  drag & drop section is loaded into our main SWF via a MC  placeholder, the drag & drop functionality stops working.
    Here is the URL to the drag & drop section by itself:
    http://www.phayzed.com/flashkit/drag_for_animation.swf
    and here is the URL to the main swf, which loads the drag & drop SWF into a movieclip and causes it to work incorrectly:
    http://www.phayzed.com/flashkit/main.swf
    Now here is the code on the draggable object ("object" MC):
    on (press) {
            startDrag (this, true);
    on (release) {
            stopDrag ();
            if (this._droptarget == "/paper") {
                    _parent.paper.gotoAndStop(2);
                    _parent.object._visible=false;
    If any more info is needed, I'm willing to upload both FLA files.   Although, something tells me that this is a simple issue to resolve.
    Thanks a lot for any help!!!
    Cheers
    T

    with as2 you must convert that antiquated as1 code:
    on (press) {
            startDrag (this, true);
    on (release) {
            stopDrag ();
            if (eval(this._droptarget) == _parent.paper) {
                    _parent.paper.gotoAndStop(2);
                    _parent.object._visible=false;

  • Tree drag-drop function

    hello all,
    there is one single tree component in my application.
    XML is dataprovider of that tree.
    e.g
    <node name="Cars" id="1" isparent="true">
    <node name="Audi" id="2" isparent="true">
    <node name="A4" id="3" isparent="false"/>
    <node name="A6" id="4" isparent="false"/>
    </node>
    <node name="Mercedes" id="5" isparent="true">
    <node name="M-Class" id="6" isparent="false"/>
    <node name="R-Class" id="7" isparent="false"/>
    </node>
    </node
    when i drag one node and drop to another node, how can i know the xml value of
    both source & destination node?
    e.g
    we are Dragging 'R-Class' node to 'Audi' node, on dragComplete OR dragDrop
    event, how to get R-Class node id 7 & Audi node id 2 in different variables.
    So we can check some validation of node and perform drag-drop operation.
    Any idea?
    Steve Roger.

    actually what i want to implement is like :
    When drapDrop event complete, i want XML value of both nodes (source & target) in variables.
    Then I will show dialog box having some options & instructions (e.g You wanna Move node OR Copy node to target).
    Depend on user selection, do the operation.
    hope u get application scenario.
    is this possible for tree control using drag drop? if so, then how?
    Please help.
    Thank you,
    Steve Roger.

  • How to rearrange components ?

    hi all,
    someone please tell me how to rearrange components ( of a JPanel, for example ).
    when I used JPanel.emove( JLabel ), the label was removed from the panel, but the other labels in this panel were not rearranged, this left an empty slot where the removed label had been laid. So I ask for a method that could rearrange components
    thanks

    Did you do a revalidate() on the panel after removing the component?

  • How to move items? Drag & Drop but i couldn't move to extreme right

    Hi All,
    We have one Select List and Button, i want to move both the items to right of the region...,I tried using Drag & Drop but i couldn't move to extreme right..
    What i need to do?
    Pls help me in this regard,
    Thanks,
    Anoo..

    Hi Anoo,
    The layout of items on your page depends on the region template used, and also the attributes of the item e.g. the Horizontal/Vertical Alignment of the Element and Label; the value of ColSpan, RowSpan, etc. By making some small tweaks to your existing region template or item attributes, you can achieve the desired layout. For example, lets say you're working with the "Form Region" HTML region. You can easily modify this template to display the standard cells of the table to the right instead of left, by changing the alignment in the <td> tags, using align="right". This will result in all items being positioned to the right of a region using this template.
    You may find it useful to refer to the following related threads on the Application Express forum, which discuss the same topic:
    Re: Layout form items
    Items positioning
    Re: Create a free form Report
    I hope this helps.
    Regards,
    Hilary

  • Best approach to work with drag & drop functionality

    I m new to java technology & want to implement drag & drop functionality with java web application.so, Please suggest me the best way or best framework or any api to implement drag & drop functionality with java web application.

    In that case, you're most likely looking for a JavaScript solution. In spite of the similar name, JavaScript has nothing to do with Java.
    You may want to Google for "javascript drag and drop".

  • How to enable and use drag capability on MacBook

    I have early 2009 MacBook white, with trackpad having one button. (hope you all remember)
    I want to enable and use dragging capability. How can I do it?
    Anyone can show me via pictures or video, how to enable and use drag.

    It says double tap for dragging, I have even enabled it, but it's not working.
    Can someone show how to use double tap for dragging?

  • Can't use drag&drop

    Hello, I'm using MacBook Pro (retina, 15", late 2013, 2,3 GHz Intel core i7) and after using for a while happened smh strange. I can't use drag&drop, so I can't select the object and drag it. What is wrong?

    Hello!
    I wonder, does the issue persist even after a simple restart of OS X?
    If so, please start Disk Utility (it's in your Applications>Utilities folder), click on your harddrive and select [repair disk permissions]

  • Programatic Generation and positioning of  components using Drag and Drop

    Hi,
    I am relatively new to ADF and UI Designing. Im trying to generate a flowchart using drag and drop feature in ADF. This involves creation of dragging images such as start,decision .. etc from one panel to another and dynamically creating a flowchart.
    Up to now i have managed to drag images from panel1 to panel2 and create them dynamically in the bean class. However im stuck at this point .. Im not able to position the draggable components on the desired position in the panelGroup. They either appear horizontally or vertically.
    Is there any way to achieve this. Also is it possible to assign a dropTarget to a a target component which is created dynamically ?
    Thanks in anticipation ....
    Lyle

    Hi Lyle,
    I am too only 4 months old to adf ,i use jdeveloper 10g.
    In 10g for the components to be placed at desired locations i think is somewhat possible. While you can arrange them by using spaces which causes
    f:verbatim tag to appear or you can use ADF Faces Core items like Object Spacer and Object Seperator where you can set their length and width to space objects on page...
    Regards
    Rohit

  • Drag & Drop functionality

    Hi Friend
    I'm using flash professional cs5.5. I have doubt in drag and drop functionality.
    1) Drop a object in mouse up
    2) Drag the object in mouse down
    Two Movie-clip (Button) on the stage. I have clicked the first Movie-clip, image will added to the button. and drag that image move to second button. It's working fine.
    I have doubt in add image and drag the image, How do split up the sequence???
    Thanks

    Your explanation is not clear (to me).  Can you show the relevant code you have and explain what you want it to do?

  • Add file contents using drag drop method

    I want to add file contents to a text view by drag drop method. How i can do that in cocoa using objective c? Can anybody help me. I am using following code in my appCotroller file to do the same but can't get the desired out put. Insted of getting file contents, i m getting the file URL (Path) in the text view.

    shaktirsg wrote:
    As you said i have to open that file in my performDragOperation function, I want to know where to write this function. bcoz i have written this function in my appCotroller class but that code does'n get executed. Can you help me on this.
    It is very hard to debug code I haven't seen. If you are getting the URL in your text view, you must be handling the drag operation correctly. Instead of putting the pasteboard data into the text view, get the file's contents and put that into the text view.
    Also can you give me a sample code on how to open files in coccoa, how to read the contents of that file?
    Look at NSString's "stringWithContentsOfFile:encoding:error:"

  • Urgent : Drag Drop Functionality

    Hi All,
    I have a datagrid with the drag drop enabled. My requirement is that when I drag the items I shouldn't see the dragged item ( the entire dragged row as such ) but by default Flex has the functionality which shows the entire dragged rows content on mouse move. Please help me out like how can i make thie entire row's visibility to false when i move the mouse with the selected item in the Datagrid

    When you perform drag and drop, you doesnt want to see the item which is getting dragged. Then don't specify the proxy (it can be image, data) which reflects while dragging.
    On mouse move handler of the dragging object you will specify DragSource
    For ex:
    private   function doDragOperation(evt:MouseEvent):void
    var img:Image = evt.currentTarget as Image; 
    var temp:Image = new Image();temp.source = no_icon
    temp.width = 1;
    temp.height = 1;
    var dsource:DragSource = new DragSource();dsource.addData(temp,
    'img'); 
    DragManager.doDrag(img, dsource, evt,temp);
    Message was edited by: VijiNaga

  • How i can do a drag drop between container (grid)?

    I am trying to work out a task with Drag and Drop(WPF ,C#)to include in a demo ,i will explain easy showing an example of code in XAML 
    <Grid x:Name="LayoutRoot">
    <Grid.RowDefinitions>
    <RowDefinition Height="*"/>
    <RowDefinition Height="*"/>
    <RowDefinition Height="*"/>
    </Grid.RowDefinitions>
    <Grid x:Name="container1" Grid.Row="0" >
    <Grid Name="grid1" Background="Aqua" Margin="15"></Grid>
    </Grid>
    <Grid x:Name="container2" Grid.Row="1" >
    <Grid Name="grid2" Background="blue" Margin="15"></Grid>
    </Grid>
    <Grid x:Name="container3" Grid.Row="2" >
    <Grid Name="grid3" Background="green" Margin="15"></Grid>
    </Grid>
    </Grid>
    My purpose is when the user drag the
    grid1 in the
    container2 automatically the grid2 will go to place in the
    container1 (basically I want to swap the grids) then this process will be used every time need to drag a grid in a container. with a code that i wrote down i can do a simple drag&drop  i can drag the "grid1"
    to the "container2" but cannot send back automatically the grid2 to container1.
    Kindly i ask if you have any advise or tips to make successful this task.
    Thank you so much for your attention
    Cheers!!!
    *********EDIT*********                                                                  
                                     Using this code as follow i can do the drag&drop but what really i need is the grid "container "is fix and never move just the
    "grid" should move between the "container "                                 
    <StackPanel Name="sp" AllowDrop="True" Background="SkyBlue" PreviewMouseLeftButtonDown="sp_PreviewMouseLeftButtonDown" PreviewMouseLeftButtonUp="sp_PreviewMouseLeftButtonUp" PreviewMouseMove="sp_PreviewMouseMove"
    DragEnter="sp_DragEnter" Drop="sp_Drop">
    <Grid Name="grid1" Background="Aqua" Height="120" Width="500"></Grid>
    <Grid Name="grid2" Background="Blue" Height="120" Width="500"></Grid>
    <Grid Name="grid3" Background="Red" Height="120" Width="500"></Grid>
    </StackPanel>
    private bool _isDown;
    private bool _isDragging;
    private Point _startPoint;
    private UIElement _realDragSource;
    private UIElement _dummyDragSource = new UIElement();
    public MainWindow()
    InitializeComponent();
    private void sp_PreviewMouseLeftButtonDown(object sender, MouseButtonEventArgs e)
    if (e.Source == this.sp)
    else
    _isDown = true;
    _startPoint = e.GetPosition(this.sp);
    private void sp_PreviewMouseLeftButtonUp(object sender, MouseButtonEventArgs e)
    _isDown = false;
    _isDragging = false;
    _realDragSource.ReleaseMouseCapture();
    private void sp_PreviewMouseMove(object sender, MouseEventArgs e)
    if (_isDown)
    if ((_isDragging == false) && ((Math.Abs(e.GetPosition(this.sp).X - _startPoint.X) > SystemParameters.MinimumHorizontalDragDistance) ||
    (Math.Abs(e.GetPosition(this.sp).Y - _startPoint.Y) > SystemParameters.MinimumVerticalDragDistance)))
    _isDragging = true;
    _realDragSource = e.Source as UIElement;
    _realDragSource.CaptureMouse();
    DragDrop.DoDragDrop(_dummyDragSource, new DataObject("UIElement", e.Source, true), DragDropEffects.Move);
    private void sp_DragEnter(object sender, DragEventArgs e)
    if (e.Data.GetDataPresent("UIElement"))
    e.Effects = DragDropEffects.Move;
    private void sp_Drop(object sender, DragEventArgs e)
    if (e.Data.GetDataPresent("UIElement"))
    UIElement droptarget = e.Source as UIElement;
    int droptargetIndex=-1, i =0;
    foreach (UIElement element in this.sp.Children)
    if (element.Equals(droptarget))
    droptargetIndex = i;
    break;
    i++;
    if (droptargetIndex != -1)
    this.sp.Children.Remove(_realDragSource);
    this.sp.Children.Insert(droptargetIndex, _realDragSource);
    _isDown = false;
    _isDragging = false;
    _realDragSource.ReleaseMouseCapture();
    Thanks :)

    Hello Jonny,
    Currently I do not have a sample and I have reviewed this post and find another way which seems more reasonable. Have you cosidered use a ListView instead of common grid. It seems we can do what you want with two common grid however we need to hardcoded
    all the things.
    If we use ListView, for example, you can see this thread:
    http://stackoverflow.com/questions/20573063/creating-icon-view-mode-for-listview-wpf
    and this thread:
    http://stackoverflow.com/questions/9443695/how-do-i-drag-drop-items-in-the-same-listview
    We can drag and drop items instead of grid, which will make this programming much easier than hard code to switch your control's location.
    Best regards,
    Barry
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.
    Dear Barry Wang thank you so much for your kind support ,just open me a way to do it ,you can see in this post https://social.msdn.microsoft.com/Forums/vstudio/en-US/55873851-e86c-4a20-9b00-de3419054ba8/get-stuck-to-dragdrop-in-this-case?forum=wpf .
    Wish you a Happy New Year .
    Sincerley

  • No drag & drop function? (iphone photos to mac desktop)

    Trying to just backup my photos that i take on my iPhone..... why can't I drag & drop them to my desktop (like i do from my camera memory cards)? Do I have to use iTunes - because it's very time consuming... more than that, it's hard to keep track of what you've backup up...

    That is not possible. You cannot drag photos from the computer back to the camera roll. You have no access to the camera roll in that direction, only from the camera roll to the computer. To put pictures back on the phone from the comptuer requires iTunes and the sync process. You can select the photos you want in iTunes once the iPhone is connected, then select the photo tab, select the photos and perform a sync.
    You cannot do it without iTunes.

  • How to get tables used by a Function Module

    Hi,
    How to know the tables used by a function module dynamically.
    Cuurently im using BAPI_MATERIAL_SAVEDATA in my report program.
    I tried FM GET_TABLES to know the tables, but could see only tables used in the report.
    Main issue in my case is when im running this update program, could observe different tables being displayed as updated in SM50(Process Overview).Want to clarify as why these tables which are not being used in my report are being displayed in SM50.
    So was doubtin weather this FM is using these displayed tables.
    Thanks in advance for u r replys.
    Regards,
    Dedeepya

    Hi Dedeepya,
    you could use a SQL Trace (tx. ST05) to list all tables affected and operations that realize. Just active the trace, execute FM, and Deactive trace. Then click in "Display trace" and check it.
    Best regards,
    Pablo

Maybe you are looking for

  • X-path expression in Receiver determination

    Hi, I am working on JDBC to SOAP interface using BPM in PI7.0. I am trying to use the XPath function in creating a condition in my receiver determination to route messages to two different business systems. My issue is that i could not find the JDBC

  • What is Organization structure in IS Utilities

    Dear Experts, I'm new to IS Utilities, Can any one explain bellow concepts: 1. What is Organization Structure in IS Utilities and How it helps? 2. How and Where can we configure that? 3. any Building Block for this concept? Kindly provide me the rela

  • How to move music from pc to mac book pro

    I just bought a macbook pro for school. I have a large number of music files on my pc. I copied all the file to my mac book and then fired up itunes and scanned for media. It seems that itunes is making a second copy and putting them somewhere and my

  • Compiling with nested packages

    Hello, I have a problem trying to compile packages. Let's assume the following: - The classpath variable is set to include ..jdkxxx\lib\dt.jar;..jdkxxx\lib\tools.jar - I have a directory called 'd:\com\mycompany\mainpackage' - Inside dir mainpackage,

  • Questions LRS-Network

    Hallo everybody, I am working with the network model and I have several questions especially relating to the lrs network. I have a utility datamodel with several tables. Each table has a geometry column but only for one table or the features in this