Drag-drop data column sorting

Hey guys,
Does any one know how to achieve drag-drop data column
sorting? I tried, but could not find an efficient way to do this.
It would be an awesome spry feature if possible, but if someone
else knows how to do this already it would help.
Thanks,
Timothy D Farrar

Hey guys,
We aim to be as compatible as possible with the other
frameworks but sometimes problem may exists. We need to see the
crashing pages to be able to determine the causes for the JS error
message and where the incompatibilities are located and either fix
the problems or help you to change your pages to work.
In this situation I suspect the issue appears because the
spry region is generated after the drag and drop code from the
script.aculo.us is instantiated and we destroy the initial elements
to which this widget is binded. In this situation the solution is
to instantiate the drag and drop after the region generate its
content by using the region observers. You'll have to put the drag
and into a separated function and register the code so the region
will call it automatically onPostUpdate.
We include in our documentation more details about the
Region
observer notifications. Please search the dedicated chapter
inside this doc: "Region observer notifications"
Regards,
Cristian MARIN

Similar Messages

  • Get Drag Drop Data

    The HELP text for the GET DRAG DROP DATA function says this:
    "Only use this function when it is necessary to access the drag data, not just to examine the data type."
    Can anyone explain why this is?
    Is it costly, in terms of time, or memory, or something else?
    Is it destructive to the data ?
    Why?
    I have a situation where dragging ONE of something is OK, but dragging TWO or more is not, in certain circumstances.
    In other circumstances, dragging one or more is OK.
    So how do I detect (in the DRAG OVER event) whether the drag data has one or two items in it?
    If I change the DATA NAME to ITEM 1 or ITEM 2, then I don't know what name to look for when I do fetch the data.
    Do I create a different item called DRAG COUNT SINGLE or DRAG COUNT MULTIPLE and look for the existence of one or the other of those?
    I could use some outside-the-drag storage places, but that seems yucky - it's not self-contained.
    Ideas?
    Steve Bird
    Culverson Software - Elegant software that is a pleasure to use.
    Culverson.com
    Blog for (mostly LabVIEW) programmers: Tips And Tricks

    For the record, here's one way around the issue.
    At DRAG STARTING time, I compose the DRAG DATA NAME with a FORMAT STRING of "My Items %d", embedding the count in the name itself.
    At DRAG OVER or DROP time, instead of searching the AVAILABLE DATA NAMES for an exact match to a fixed name, I SCAN STRING on each available data name, using the same FORMAT STRING.  If I scan without error, then I have the number of items dragged and I can make appropriate decisions.
    Tech Support says that I might be reading the warning a bit too seriously anyway.
    Steve Bird
    Culverson Software - Elegant software that is a pleasure to use.
    Culverson.com
    Blog for (mostly LabVIEW) programmers: Tips And Tricks

  • ADF Unable to filter / sort date column in table

    Hi,
    I am using JDeveloper 11.1.1.7.
    I have a read only table inside a panel collection. One of the columns in the table is a date field. I have filterable and sortable properties set to true for all columns. Filter and sort property works for all columns expect the date column. The filter and sort options is not even shown for the date field (shown below).
    <af:column headerText="#{bindings.ASRTCreateRequestVO1.hints.CreationDate.label}"
                                             id="c7" sortable="true" width="100"
                                             filterable="true">
                                    <af:outputText value="#{row.CreationDate}"
                                                   id="ot7">
                                      <af:convertDateTime pattern="#{bindings.ASRTCreateRequestVO1.hints.CreationDate.format}"/>
                                    </af:outputText>
                                  </af:column>
    Please let me know if I am missing anything here.
    Thanks,
    Ashwin

    Hi Ashwin,
    As mentioned by Timo, for me also the filtering is working as usual.
    But while browsing through the ADF UI Guide I came across with below note
    If you want to use a component other than an inputText component for your filter (for example, an inputDate component), then instead of setting filterVisible to true, you can add the needed component to the filter facet.
    To do so:
    1. In the Structure window, right-click the column to be filtered and choose Insert inside af:column > JSF Core > Filter facet.
    2. From the Component Palette, drag and drop a component into the facet.
    3. Set the value of the component to the corresponding attribute within the FilterableQueryDescriptor class created in Step 1(not above step but you can find it in pg:390). Note that the value must take into account the variable used for the row, for example:
    #{af:inputDate label="Select Date" id="name" value="row.filterCriteria.date"}.
    This is in the section: 12.5.1 How to Add Filtering to a Table(pg:390).
    I hope it helps.
    Regards,
    Peddi.

  • I have downloaded and installed the latest version of numbers on my mac. Everytime I save and then try to reopen that document, I receive a message telling me that I need a new version of numbers. Also, when I try to sort the date column, it sorts out of

    I have downloaded and installed the latest version of numbers on my mac. Everytime I save and then try to reopen that document, I receive a message telling me that I need a new version of numbers. Also, when I try to sort the date column, it sorts out of order. The last version sorted fine.

    Welcome to Apple Support Communities
    When you install the new iWork version, the old iWork version is kept, so it looks like you are opening your old version.
    To fix this, open a Finder window, choose Applications in the sidebar and drag the new Numbers version to the Dock, so you can access to it quickly. Open all documents from this version. I don't recommend you to delete the old Numbers version in case you need it.
    Respecting to the second question, you will get better answers in the Numbers for OS X forum

  • DataGrid Column Sort Prevents Drag From Updating DataProvider

    Hi
    I have a datagrid with an XMLListCollection as the Data Provider.
    I have dragging set on so that when I drag a row to somewhere else in the list the XMLListCollection gets updated just fine and so does the DataGrid.
    However, if a column sort has previously been set this seems to stop the XMLListCollection being updated on the drag.
    I have tried setting the sort property on the XMLListColelction to null and then doing a refresh - this works to a point but it restores the default sort order which is not really what I want as the user may wish to continue from where the column sort got them to.
    I was wondering if anyone had any suggestions please ?
    Thanks a lot.
    Chris

    Hi
    Thanks for replying
    This is what the debugger says:
    TypeError: Error #1010: A term is undefined and has no properties.
        at mx.controls.listClasses::ListBase/makeRowsAndColumnsWithExtraRows()[C:\autobuild\3.2.0\fr ameworks\projects\framework\src\mx\controls\listClasses\ListBase.as:1358]
        at mx.controls.listClasses::ListBase/updateDisplayList()[C:\autobuild\3.2.0\frameworks\proje cts\framework\src\mx\controls\listClasses\ListBase.as:3658]
        at mx.controls.dataGridClasses::DataGridBase/updateDisplayList()[C:\autobuild\3.2.0\framewor ks\projects\framework\src\mx\controls\dataGridClasses\DataGridBase.as:581]
        at mx.controls::DataGrid/updateDisplayList()[C:\autobuild\3.2.0\frameworks\projects\framewor k\src\mx\controls\DataGrid.as:1437]
        at mx.controls.listClasses::ListBase/validateDisplayList()[C:\autobuild\3.2.0\frameworks\pro jects\framework\src\mx\controls\listClasses\ListBase.as:3280]
        at mx.managers::LayoutManager/validateDisplayList()[C:\autobuild\3.2.0\frameworks\projects\f ramework\src\mx\managers\LayoutManager.as:622]
        at mx.managers::LayoutManager/doPhasedInstantiation()[C:\autobuild\3.2.0\frameworks\projects \framework\src\mx\managers\LayoutManager.as:695]
        at Function/http://adobe.com/AS3/2006/builtin::apply()
        at mx.core::UIComponent/callLaterDispatcher2()[C:\autobuild\3.2.0\frameworks\projects\framew ork\src\mx\core\UIComponent.as:8628]
        at mx.core::UIComponent/callLaterDispatcher()[C:\autobuild\3.2.0\frameworks\projects\framewo rk\src\mx\core\UIComponent.as:8568]
    For instance, after the page with the flash module loads, and I click on a column, I get the error. This is quite random, sometimes I need a couple of tries to get the error...
    If you require more information about it I will try to provide.
    Thank you
    Vlad

  • DRAG & DROP IN SQL CALENDAR USING TIMESTAMP COLUMN

    Hi there,
    I'm having a difficulty with the drag & drop process in my sql calendar. The defalult code has been mentioned before as:
    declare
    l_date_value varchar2(32767) := apex_application.g_x01;
    l_primary_key_value varchar2(32767) := apex_application.g_x02;
    begin
    update EMP set HIREDATE = to_date(l_date_value,'YYYYMMDD HH24MISS')
    where ROWID = l_primary_key_value;
    end;
    My sql calendar query though, has not a simple date column, but a TIMESTAMP column used in the Date value attribute.The APPOINTMENTID is my primary key column of APPOINTMENTS table as you can see and of course the APP_TIMESTAMP column as my Date Column (which in my database schema is created by the "merging" of my APP_DATE & APP_TIME columns ):
    SELECT APPOINTMENTID,DECODE(APP_STATUS,'0','#005C09','1','#EF5800','2','#000099','3','purple')COLOR,
    (TO_CHAR(APP_TIMESTAMP,'HH24:MI')||' / '||(SELECT LAST_NAME||' '||FIRST_NAME
    FROM PATIENTS C
    WHERE C.PAT_ID = A.PAT_ID)||' / '||UPPER(APP_DESCR)||' / '||APP_TEL_NO) APP_ROW,
    APP_TIMESTAMP
    FROM APPOINTMENTS A, PATIENTS C
    WHERE C.PAT_ID(+) = A.PAT_ID
    So far, in my on demand process i have written the code shown below and the result is just the dragging functionality:
    declare
    l_date_value varchar2(32767) := apex_application.g_x01;
    l_primary_key_value varchar2(32767) := apex_application.g_x02;
    begin
    update APPOINTMENTS
    set APP_TIMESTAMP = to_date(l_date_value,'DD/MM/RRRR HH24MI')
    where APPOINTMENTID = l_primary_key_value;
    end;
    Any suggestion is welcome,
    Thanks

    Hi,
    I just found a solution. I implemented for each column an own event-handler. Therefore I can assign the excercise to the right column.
    Has anybody else a better solution?
    Best regards
    Max

  • Drag & drop from sorted table view to outline view in AppleScript Studio

    I want to make a drag and drop from a sorted table view to an outline view in applescript Studio.
    Problem is that the data are copied from the data source of the table view,
    wich is unsorted, rather than from the table view itself that is sorted.
    So I have the wrong data droped.
    The element wich is passed from the table view thru the outline view is the row number. Then the script find the data of the corresponding row of the data source of the table view(unsorted).
    I want the script, using the row number, to get the content of the displayed row of the table view (sorted).
    Any help welcome.

    I want to make a drag and drop from a sorted table view to an outline view in applescript Studio.
    Problem is that the data are copied from the data source of the table view,
    wich is unsorted, rather than from the table view itself that is sorted.
    So I have the wrong data droped.
    The element wich is passed from the table view thru the outline view is the row number. Then the script find the data of the corresponding row of the data source of the table view(unsorted).
    I want the script, using the row number, to get the content of the displayed row of the table view (sorted).
    Any help welcome.

  • Date Column not getting sorted in a table in web Dynpro Java

    Hi All,
    I am facing an issue while sorting the date column in a table in my web dynpro java application.
    When the date is displayed in the sql format in tha table, I am able to sort the date column successfully but when we convert the date field from sql format to util format in our table and then sort it does not work.
    Kindly let us know the steps to be followed in this case to sort the date column of a table in Simple Date format as we do not want date in the sql format to be displayed.
    Thanks & Regards,
    Anurag

    Hi,
    You might want to check whether both your browser's language settings are identical. The browser language could also determine the date format.
    As a workaround, you could add an extra attribute to your context, and set the calculated property to 'true'.
    In your table, add a new column and bind to this new attribute, and hide your original date column
    If you sort using the date column that's hidden now, you could use the calculated field to fixed-format your date the way you prefer (by using the SimpleDateFormatter class for instance)
    Cheers,
    Robin

  • Drag&drop columns no longer works for selected columns in EA3

    Hi
    drag&drop from navigator to build select statements in EA3 uses all columns of the tabl instead of the selected ones!
    Best regards
    Joe

    It's working for me in our current dev build, if it's broken in EA3, it's since been fixed.

  • Drag and drop data from Numeric Control or Numeric Array to excel file

    I have two inquirries about drag and drop:
    1. How to drag and drop data from a Numeric Array or Numeric control to excel file
    2. How to drag and drop data from a Numeric Array or Numeric control to an Numeric array Indicator?
    The item 2, I tried it with the event structure, but it didnt work.
    Please do reply.
    mytestautomation.com
    ...unleashed the power, explore and share ideas on power supply testing
    nissanskyline.org
    ...your alternative nissan skyline information site

    There are very good drag and drop examples that ship with LabVIEW.  Have you looked these over to see if they can be modified for your needs?
    Matthew Fitzsimons
    Certified LabVIEW Architect
    LabVIEW 6.1 ... 2013, LVOOP, GOOP, TestStand, DAQ, and Vison

  • Sorting  DATE column

    hi all,
    can anyone help me how to sort a date column in ascending order. The date format is '01-Jan-88'.
    TIA
    Vino.

    hi,
    When i gave the above code am the following result.
    01-May-81
    02-Apr-81
    08-Sep-81
    09-Jun-81
    17-Dec-80
    17-Nov-81
    19-Apr-87
    23-Jan-82
    23-May-87
    but i need the result in following manner.
    17-Dec-80
    02-Apr-81
    01-May-81
    09-Jun-81
    08-Sep-81
    17-Nov-81
    23-Jan-82
    19-Apr-87
    23-May-87
    Please help me in this..
    Regards,
    Vino.

  • Achieving chronological sort on a date column with month function

    Hello all ,
    I have a a date column(start_date) on which I applied 'MONTHNAME' function to extract the month name
    out of the date . i.e. 4/24/2013 will return 'Apr' .
    While trying to achieve a sort on this , its returning alphabetical sorting , i.e.
    aug , apr , dec , jul ,jun etc .
    So achieving a chronological order , I created a logical column 'sort_month' . In the expression section,
    I wrote , month(start_date) . so this return numeric values of months , i.e . 1,2,3, 4 etc.
    Now , in 'start_date' column properties i have selected this 'sort_month' column ,
    sort on column . So , this should add a chronological sorting order to start_date column ?
    well its not working !
    Am I missing anything here ?

    Logical column general properties and set 'sort order column' to months
    Edited by: Srini VEERAVALLI on Apr 23, 2013 1:55 PM

  • Multiple column  sorting on JTable data

    if any body can please send an example code how multiple column sorting can be done on table data.
    condition:- one column should sort in ascending order another column in descending order.
    am completly out of ideas it's urgent any help is greatly appritiated
    Thank's in advance
    sri

    I think the crosspost is because the OP was advised to post it in the Swing forum instead (it would've been nice to see the original post closed as well, though). Anyway...
    Have you got your table sorting using one column? If so, how have you achieved that (eg, are you using Java 6)?
    All you're after is a stable sorting algorithm so that any elements that are the same in the new sorting scheme stay in the same position relative to each other. Then you can just sort by "Column B" then "Column A" to achieve multiple column sorting. I believe that Collections.sort is stable and therefore any sorting approach based on that should be easily modifiable to do what you want.
    Hope this helps.

  • Drag&Drop Custom Data?

    Hello, my fellow JavaFXsians :)
    I'm trying to implement a Drag&Drop of an Object. But, as you could guess, I'm not really successful. I'm being hit with the +"java.lang.IllegalArgumentException: Only serializable objects or ByteBuffer can be used as data with data format [model.jfxwrappers.VezaDjetetaWrapper]"+ exception. Why is this wrong:
    DataFormat dataFormatVDW = new DataFormat("model.jfxwrappers.VezaDjetetaWrapper");  //A Class
    myListView.setOnDragDetected(new EventHandler<MouseEvent>() {
        @Override
        public void handle(MouseEvent dragEvent) {
            Dragboard db= myListView.startDragAndDrop(TransferMode.COPY);
            ClipboardContent content= new ClipboardContent();
            content.put(dataFormatVDW, db);
            db.setContent(content);
            dragEvent.consume();
    I've read that the model.jfxwrappers.VezaDjetetaWrapper has to be Serializable, so it is. What am I missing, please?

    Oh, I'm embarrassed. :) Yes, that was the error, but now I'm having some other difficulties.
    When I tried D&D after making the appropriate change suggested above, I've got some more exceptions. First it was:
    java.lang.IllegalArgumentException: Could not serialize the data
         at com.sun.javafx.tk.quantum.QuantumClipboard.putContent(Unknown Source)
         at javafx.scene.input.Clipboard.setContent(Unknown Source)
         at java.lang.Thread.run(Thread.java:722)
    Caused by: java.io.NotSerializableException: javafx.beans.property.SimpleObjectProperty
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1180)
         at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1528)
         at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1493)
         at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1416)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1174)
         at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:346)
         ... 40 morebut then I've commented out the SimpleObjectProperty (although I've made it's value Serializable as well) and got this exception:
    java.lang.IllegalArgumentException: Could not serialize the data
         at com.sun.javafx.tk.quantum.QuantumClipboard.putContent(Unknown Source)
         at javafx.scene.input.Clipboard.setContent(Unknown Source)
         at java.lang.Thread.run(Thread.java:722)
    Caused by: java.io.NotSerializableException: javafx.beans.property.SimpleStringProperty
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1180)
         at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1528)
         at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1493)
         at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1416)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1174)
         at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:346)
         ... 40 moreI'm using JavaFX 2.2b06 and presuming that these properties are indeed Serializable (although I couldn't find a confirmation in the API) don't know what could it be.
    The only change I've made in my code listed above is this:
    content.put(dataFormatVDW, vezeDjetetaList.getSelectionModel().getSelectedItem());

  • Output xml file from data in a drag/drop AIR app.

    I am interested in creating a WYSIWYG drag/drop AIR app. in
    which I can drag art and other components, then export the (x,y)
    positions of the components and other info into an xml file. I am
    interested in using .ai files instead of raster based art. Will
    Flex/AIR app. support this format? I am just starting to work with
    Flash, Flex, etc. Is this way over my head? Possible?
    Thanks,
    Nate

    I don't think you can manipulate .ai files in Flex /
    AIR.

Maybe you are looking for

  • Business Partners - Alternate Payee Details

    Dear Members, I have a Business Partner, a supplier that has requested that we pay their invoices to a u201Cfinance companyu201D instead of them. How can I setup their records so that the payment file for upload to our bank i.e. the electronic funds

  • How to change the images in a slideshow

    What is the best way to change the collection of images in a slideshow?  I realize you can delete images by deleting individual thumbnails, and then add new ones, but that seems rather crude.  If I want to swap out a collection of images in a slidesh

  • Date field in Invoice

    Friends For VAT purposes we need to input a date of performance (date when the services ended) in the Invoices. This date does not flow from a sales order but needs to be entered at the line item level in the invoice. We have the Billing Date (on the

  • Get current version of LCA

    Hi, I have a process which at the moment requires me to state the version of the LCA file (currently being hardcoded) this process is currently in. We regularly increment/change the LCA version number as when required and hence when we do so, we woul

  • ExpressCard X-Fi for Notebo

    Hi all! Is there a way to enable SPDIF output on the above-mentioned card? Because when I double click on the icon in lower right corner of my screen and open creative console launcher the only buttons I see are speakers & headphones eax 3D crystaliz