AdvancedDatagrid but simple sorting?

Hi,
I sue the AdvancedDatagrid because of the nice grouping
function for columns. I would like to enable sorting but don't like
the new way of sorting multiple columns.
1. Is there a way to enable sorting by just 1 column like in
the normal datagrid?
2. How can i get rid of the small "1" next to the sort icon
arrow?
Cheers

"niksk" <[email protected]> wrote in message
news:gn0vo0$5qc$[email protected]..
>I am also using the advancedDataGrid, for sorting issue i
did the sortable
>=
> true for the columns i want to be sortable and sortable
= false for
> others. But
> that small 1 is a issue for me also.....
I think there's an expert mode or something that you can use
that controls
this...

Similar Messages

  • Simple sorting program for folders/files

    Hello comunity,
    I would like to make a simple sorting program which will scan through some folder looking for files with different extensions. Then copy files of the same format (example *.pdf) and (create) place them into folder with the name of the extension. After that the program (script) should look for another extension and do the similar operation to them untill all files will be moved. I am new to applescript and automator.app, so could you please put me on the right direction which programmin (script) language should I use. Sample code and good tips would be usefull too. Thank you for your time.

    This is not a hard thing to do. If you want to write it yourself, and have some background in programming, I recommend to read a book on AppleScript and start writing the code in AppleScript Editor.
    The AppleScript Language Guide is a free reference book by Apple which you can download it. There are a lot of sample codes on the net too.
    You should use the Finder dictionary to do this work. Finder is a scriptable application in Mac, which has a dictionary. This dictionary describes about the objects inside the finder that do all the duties of the Finder and you can call them directly in AppleScript to automate things. Open AppleScript editor, go to Window > Library and double click on Finder. This will open the dictionary. Note that all the objects in scriptable applications have a hierarchical relationship, starting from the root "application" object. You can read the dictionary to get familiar with the objects in the Finder app and know how to use them.
    Here is some code:
    tell application "Finder"
      tell the front window
      log (count of items of it)  -- prints the count of items in the window
      make new folder in it with properties {name:"mani"} -- makes a new folder named: mani
      make new file in it with properties {name:"test", extension:"txt"} -- makes a new text file
      repeat with x in every file in the items of it
          log the name of x
      end repeat
      end tell
    end tell
    If you can program in Objective-C and not have enough time to learn AppleScript, you can use Scripting Bridge technology to automate scriptable applications using Objective-C. This is so much better because enables you to debug your code or execute it line by line, which is not possible when working with AppleScript Editor.
    Hope this helps

  • I sort my booksmarks (A-Z) but that sort doesn't last very long. It seems like the sorting process I go through doesn't get "saved." Thoughts? Thanks, Scott

    I sort my booksmarks (A-Z) but that sort doesn't last very long. It seems like the sorting process I go through doesn't get "saved." Thoughts? Thanks, Scott

    How are you sorting the bookmarks?
    The Views menu in the Bookmarks Manager (Bookmarks > Show All Bookmarks) is for displaying the bookmarks in different sorting orders (hence the name Views) and doesn't sort bookmarks permanently.<br />
    In Firefox the option to sort bookmarks is only available for folders and not for individual bookmarks.<br />
    Right-click a folder to open the context menu and choose "Sort By Name" in the left pane of the Bookmarks Manager or in the side bar to sort the bookmarks alphabetically or drag bookmarks to the wanted position.<br />
    If dragging doesn't work then use Cut and Paste instead.
    See:
    * http://kb.mozillazine.org/Sorting_and_rearranging_bookmarks_-_Firefox
    * SortPlaces: https://addons.mozilla.org/firefox/addon/sortplaces/

  • Initial forward in RichFaces app gets 404, but simple JSF app works fine

    (I asked about this on the RichFaces forum, but perhaps this isn't a RichFaces issue.)
    've just started to look deeply into JSF. I'm deploying some test apps to WebLogic 9.2.2. I have two simple apps I'm testing. One is a plain JSF app, and the other is the "echo" RichFaces app.
    When I go to the URL for the plain JSF app, the "index.jsp" successfully forwards to the main page, and it shows up.
    When I go to the URL for the RichFaces "echo" app, I immediately get a 404.
    I added some debug, so I know that it executes my "index.jsp". I also set a breakpoint in org.ajax4jsf.webapp.BaseFilter.doFilter(), and I see it hit that. I also added a debugging lifecycle listener.
    So, with this debug enabled, I get this:
    [DEBUG] BaseFilter - Filter start request processing at 12/31/07 12:05 PM for uri: /AjaxEcho/faces/echo.jsp
    [DEBUG] BaseFilter - Filter request output to XML
    BeforePhase: RESTORE_VIEW 1
    AfterPhase: RESTORE_VIEW 1
    BeforePhase: RENDER_RESPONSE 6
    AfterPhase: RENDER_RESPONSE 6
    [DEBUG] BaseFilter - Finished request processing total time 31ms for uri: /AjaxEcho/faces/echo.jsp
    As that didn't tell me anything, I enabled debug for "com.sun.faces" and "org.ajax4jsf", which produced the output following this. I still don't see any obvious clues here.
    [DEBUG] BaseFilter - Filter start request processing at 12/31/07 1:57 PM for uri: /AjaxEcho/faces/echo.jsp
    [DEBUG] BaseFilter - Filter request output to XML
    [DEBUG] BaseXMLFilter - XML filter service start processing request
    [DEBUG] LifecycleImpl - execute(com.sun.faces.context.FacesContextImpl@1539b09)
    [DEBUG] AjaxPhaseListener - Process before phase RESTORE_VIEW 1
    [DEBUG] InitPhaseListener - Perform additional framework initialization on first request
    BeforePhase: RESTORE_VIEW 1
    [DEBUG] RestoreViewPhase - Entering RestoreViewPhase
    [DEBUG] ViewHandlerImpl - URL pattern of the FacesServlet executing the current request /faces
    [DEBUG] AjaxStateManager - Can't restore view state : no saved view states in se ssion
    [DEBUG] AjaxViewHandler - Detect session expiration in AJAX request - view don't restored for a viewId /echo.jsp
    [DEBUG] RestoreViewPhase - New request: creating a view for /echo.jsp
    [DEBUG] ViewHandlerImpl - Created new view for /echo.jsp
    [DEBUG] ViewHandlerImpl - Locale for this view as determined by calculateLocale en
    [DEBUG] ViewHandlerImpl - RenderKitId for this view as determined by calculateRenderKitId HTML_BASIC
    [DEBUG] RestoreViewPhase - Exiting RestoreViewPhase
    AfterPhase: RESTORE_VIEW 1
    [DEBUG] InitPhaseListener - Remove init phase listener from factories
    [DEBUG] LifecycleImpl - removePhaseListener(ANY 0,org.ajax4jsf.event.InitPhaseListener@b61de0
    [DEBUG] AjaxPhaseListener - Process after phase RESTORE_VIEW 1
    [DEBUG] LifecycleImpl - Skipping rest of execute() because of a reload
    [DEBUG] LifecycleImpl - render(com.sun.faces.context.FacesContextImpl@1539b09)
    [DEBUG] AjaxPhaseListener - Process before phase RENDER_RESPONSE 6
    [DEBUG] AjaxPhaseListener - PhaseListener enter Before RenderView Phase with ViewId /echo.jsp and RenderKitId HTML_BASIC
    BeforePhase: RENDER_RESPONSE 6
    [DEBUG] RenderResponsePhase - Entering RenderResponsePhase
    [DEBUG] RenderResponsePhase - About to render view /echo.jsp
    [DEBUG] ViewHandlerImpl - About to render view /echo.jsp
    [DEBUG] ViewHandlerImpl - URL pattern of the FacesServlet executing the current request /faces
    [DEBUG] ViewHandlerImpl - Found no URL patterns mapping to FacesServlet
    [DEBUG] AjaxContext - Process component tree for collect used scripts and styles
    [DEBUG] InternetResourceBuilder - Return instance of internet resource builder org.ajax4jsf.resource.ResourceBuilderImpl@1011211
    [DEBUG] RenderResponsePhase - Exiting RenderResponsePhase
    AfterPhase: RENDER_RESPONSE 6
    [DEBUG] AjaxPhaseListener - Process after phase RENDER_RESPONSE 6
    [DEBUG] BaseXMLFilter - create HTML/XML parser for content type: null
    [DEBUG] BaseXMLFilter - Parser not have support for the such content type, send response as-is
    [DEBUG] BaseFilter - Finished request processing total time 17721ms for uri: /AjaxEcho/faces/echo.jsp

    I got this working, but it sure seems odd to me. In the working JSF app, I didn't notice that the forward from "index.jsp" references "/faces/main.jsp", even though "main.jsp" is in the root of the app. I changed my RichFaces app to do the same, so it references the "fake" root directory of "/faces". Now it works fine, it's just odd looking. I didn't notice this being called out in the JSF book (Complete Reference).

  • Simple sort question - Numbers '09

    Have a table with a few colums. One is a column of dates and the other of categories.
    Wish to sort the entire table in priority order, first by category, then by date.
    Easy to do in Excel. Am sure Numbers has a way to do this, but can't find it.

    1.
    Verena B.
    44
    Gewicht Verloren
    2.
    Yvonne S.
    41.8
    3.
    Reini K.
    38
    4.
    Martin P.
    35.8
    5.
    Alexandra P.
    35.3
    6.
    Annette E.
    28.5
    7.
    Christine W.
    28
    9.
    Esther H.
    27.5
    8.
    Sascha P.
    26.2
    10.
    Sascha K.
    25.5
    11.
    Rita S.
    23.8
    12.
    Michaela R.
    23.2
    13.
    Alexandra K.
    23
    Top 100
    14.
    Gabriela S.
    22.6
    15.
    Maria C.
    21.1
    16.
    David F.
    21
    17.
    Ellen R.
    20.7
    18.
    Fabienne F.
    20.7
    19.
    Viktor A.
    20.2
    20.
    Rolf W.
    20
    21.
    Ingrid T.
    19.3
    22.
    Diana R.
    19.2
    23.
    Sabine S.
    19.2
    24.
    Elda S.
    18.6
    25.
    Rolf H.
    18.6
    26.
    Chantal V.
    18.5
    27.
    Renè B.
    18.5
    28.
    Ralph W.
    18
    29.
    Barbara B.
    17.7
    30.
    Chris R.
    17.6
    31.
    Inge W.
    17.5
    32.
    Liliane G.
    17.5
    33.
    Reto V.
    17.4
    34.
    Susann M.
    17
    35.
    Ciro A.
    16.7
    36.
    Sabrina B.
    16.6
    37.
    Brent M.
    16.5
    38.
    Jolanda E.
    16.4
    39.
    Alessandro M.
    16.2
    40.
    Ruth M.
    16.2
    41.
    Andrea M.
    16
    42.
    Franz B.
    16
    43.
    Monika S.
    15.9
    44.
    Dominique A.
    15.8
    45.
    Hansjürg G.
    15.7

  • Grouping but dynamic sorting

    I am grouping my records based on one field, say TestID, but I want the report can be sorted according to a prompt parameter, say TestID,TestName or TestLocation, assuming both at the same grouping level.
    The output is like this
    TestID1 | TestName1 | TestLocation1
                                        UserID | UserName
                                        UserID | UserName
    TestID2 | TestName2 | TestLocation2
                                       UserID | UserName
                                       UserID | UserName
    I am using XI R1. Thanks for any advice.
    Edited by: Peter Wang on Sep 24, 2008 12:28 AM

    Hi Peter,
    I'm not sure I understand the question completely,  however from what I'm interpretting you could create a parameter field and a formula in Crystal Reports.  For example,
    - create a string parameter named "SortParameter".
    - create a formula named "SortFormula".
    In the formula you would enter similar text:
    whilereadingrecords;
    if {?SortParameter} = 'TestID' then {testID.field}
    else
    if {?SortParameter} = 'TestName' then {testName.field}
    else
    if {?SortParameter} = 'TestLocation' then {testLocation.field}
    - next you would Insert|Group and select your {@SortFormula}  field to group on.
    Regards,
    Wallie

  • Simple Sort Question

    I know we can sort things using query expressions. But I'd like to put the equivalent of an "ORDER BY" clause in our ORM.XML file for certain entities, to keep the sorting separate from the code. But I don't see a way to do that? Is there?
    Thanks!

    Yep--same conclusion we've come to here. Not sure why they thought it was important for 1-to-N and n-to-m, but not more generally. I guess it's the inherenet Many aspect of those things.
    Thanks!
    There is no default order by, but you can set an
    @OrderBy on a OneToMany or ManyToMany.
    If you use named queries, you can define the order by
    on them in JPQL.

  • Simple sorting by track number

    Hi. I have a little annoyance with the way things are sorted.
    If I'm viewing an album, the magical first column (with no name) shows a 1 to n playlist number. It does not seem to be possible to sort by this number, and the tracks are force sorted according to one of the other 'named' columns.
    I have have to enable the 'track #' column and sort by it, rendering the first column useless. How can I
    a) sort by the un-named column's number
    or
    b) add the 'track #' column, sort by it, and disable the un-named column.
    This image hopefully shows what I mean:
    http://www.badgerparade.pwp.blueyonder.co.uk/badcolumn.gif
    Thanks for any help.
      Windows XP Pro  

    Go to the location of the track on your PC, not iTunes, right click on the track and go to PROPERTIES, then DETAILS, and then unde MEDIA click # (track number) and make sure you set the track numbers in order. Its too bad you have to do it individually for all tracks but there has got to be a way to set track numbers for all tracks with one click. Okay, so as long as all the track numbers are in order 1,2,3... or however you want them to be because thats how iTunes sorts them. YOU MUST do this before you create a playlist in iTunes and if you already did, you may have to delete all tracks and follow the instrustions and then load em up in iTunes again. Hope this helps.

  • Find row in Dataview using ID but Name sorted in alphabetical order

    Hi,
    I have a dataview with 2 columns, ID and Name, where it is sorted by"Name".
    I want to find a row using the ID, namely curID. But the following doesn't seem to work, as I believe my dataview was sorted using the Name column. How can I sort the dataview with "Name", but be still be able to "Find" using its ID?
    dv.Sort = "ID ASC"
    rowIndex = dv.Find(curID)
    Please advice. Your help would be greatly appreciated.

    Use a plain old for loop then. You could define your own method:
    private static DataRowView FindRow(DataView dv, int id)
    foreach (DataRowView rowView in dv)
    if (Convert.ToInt32(rowView["ID"]) == id)
    return rowView;
    return null;
    And call it like this:
    DataRowView dataRowView = FindRow(dv, curID);
    if(dataRowView != null)
    //found...
    Please remember to mark all helpful posts as answer and/or helpful.

  • Weird but simple JSTL problem

    so a servelet forward the request to jsp, passing a request attribute which is String[ ] as following..
    request.setAttribute("headers",headers);RequestDispatcher view = request.getRequestDispatcher("options.jsp");
    view.forward(request,response);
    in the options.jsp, I tried to use JSTL to iterate each element in the array and display it..
    <c:forEach var="header" items="${headers}" varStatus="loopCounter">
    <td><span class="style2"> ${header} <BR>${loopCounter.count}</span></td>
    </c:forEach>
    ..simple and straghtforwrd..But it doesn't display each element in the String[ ], insteads, it shows something like
    "org.apache.commons.el.ImplicitObjects7@6279d"
    ..... for each of the element (exactly the same).. but the loopCounter.count shows correctly, with correct number of elements expected..
    WHY??!

    ${header} is an implicit variable in EL.
    It provides a map to be the equivalent of request.getHeader(), much like ${param} is the equivalent of request.getParameter().
    solution: rename your variable to be something else.
    <c:forEach var="hdr" items="${headers}" varStatus="loopCounter">
      <td><span class="style2"> ${hdr} <BR>${loopCounter.count}</span></td>
    </c:forEach>

  • Client server stuff - but simple -Duke $10 offered

    Hi folks
    I want to count # of times a method in server is called by the client.
    In the server code I put a count and in each method implementation I increment count.
    I am getting following errors for the count ..
    CalculatorImpl.java:44: cannot resolve symbol
    symbol : variable count
    location: class CalculatorImpl
    count++;
    ^
    PLEASE HELP ME>>>>>
    ---------------here's the code -----------
    import java.net.MalformedURLException;
    import java.rmi.Naming;
    import java.rmi.Remote;
    import java.rmi.RemoteException;
    import java.rmi.server.UnicastRemoteObject;
    public class CalculatorImpl
    extends UnicastRemoteObject
    implements Calculator
    public static void main (String[] args)
         int count;
    try {
    new CalculatorImpl ().go ();
    } catch (Exception e) {
    System.err.println (e);
    private void go ()
    throws MalformedURLException, RemoteException
    Naming.rebind ("rmi://127.0.0.1/CalculatorImpl", this);
    public CalculatorImpl ()
    throws RemoteException
    public int add (int x, int y)
    throws RemoteException
         count++;
    return x + y;
    public int sub (int x, int y)
    throws RemoteException
         count++;
    return x - y;
    public int mul (int x, int y)
    throws RemoteException
         count++;
    return x * y;
    public int div (int x, int y)
    throws RemoteException
         count++;
    return x / y;
    public int report ()
    throws RemoteException
    return count;
    public void reset ()
    throws RemoteException
    count = 0;

    Kuno
    Can you let me know what is your opinion on following...
    I have a simple client Server code running (Loop back IP is used in Name.bind) in 2 windows, third window rmiregistry is running to lookup for the remote object.
    Say another second client come in while the first client is in the middle of the code...
    1) What will happen ?
    2) Will both clients get their own objects seperately ?
    3) How do they track the use of a method in the remote object ?
    Thanks a bunch...

  • Simple Sorting Question

    Hi everyone, I'm new to this groupe as I am Java. I'm trying to write an applet that inputs five floating-point numbers and determines and prints the number of negitive numbers input, number of positive numbers input, and the number of zeros input.
    I'm not sure how to 'determine' this, in an array probably? As you'll see from my code I'm lost and confused. Here is my code so far, thanks so much for any help!
    import java.util.*;
    import java.awt.Graphics;
    import javax.swing.*;
    public class PosMin extends JApplet {
         int[] numbers = new int[5];
         int[] sortedNumbers;
         double pos1, pos2, pos3, pos4, pos5, neg1, neg2, neg3, neg4, neg5;
         String first, second, third, fourth, fifth;
    public void init (){
         first = JOptionPane.showInputDialog ("Enter First Number:");
         second= JOptionPane.showInputDialog ("Enter second Number:");
         third = JOptionPane.showInputDialog ("Enter third Number:");
         fourth = JOptionPane.showInputDialog ("Enter Fourth Number:");
         fifth = JOptionPane.showInputDialog ("Enter Fifth Number:");
         numbers[0] = Double.parseDouble (first);
         numbers[1] = Double.parseDouble  (second);
         numbers[2] = Double.parseDouble (third);
         numbers[3] = Double.parseDouble (fourth);
         numbers[4] = Double.parseDouble (fifth);
    public void paint(Graphics g){
    }

    Hi guys,
    I think I'm a little over my head here. I'm trying to do what you're suggesting John, but I'm still unclar on some of the concept behind this code. This is my modified code (which is riddled with errors) that I've been working on all night/day. I'm learning tons from my books about java arrays and the language in general, but still annoyed this doesn't work. I appreicate all help, but I get the feeling I need more :P. Thanks a lot for any help.
    Here is my failing code. I ripped out a lot of what I had and i've rewritten it so many times I feel off track, which I'm certain is more than a feeling. Anyone's suggestion is welcome, I can't wait to get this to work.
    import java.util.*;
    import java.awt.Graphics;
    import javax.swing.*;
    java.util.Vector;
    public class PosMin extends JApplet {
         Vector myNums = new Vector(); //creates an empty vector
         int[] numbers = new int[5];
         int[] sortedNumbers;
         double pos1, pos2, pos3, pos4, pos5, neg1, neg2, neg3, neg4, neg5;
         String first, second, third, fourth, fifth;
    public void init (){
    int numGreat = 0, numEqual = 0, numLess = 0;
    for (int x = 0; x < myNums.size(); x++){
      if ((int) myNums.elementAt(x) > 0)  {
        numGreat++;
      } else if ((int) myNums.elementAt(x) == 0)  {
        numEqual++;
      } else  {
        numLess++;
    public void paint(Graphics g){
    }

  • Replacement iPhone restored but App sort order lost...

    What happened to the manual sort of my 98 apps after I restored to a replacement iPhone?
    Doesn’t the backup store app sort order?

    Okay, quick post as I have to leave. You find the backup data set in /home/library/application support/mobilesync I think and that the backup data which the sync process creates. You restore that directory to the desktop, and then remove the current equivalent from your machine to the trash and put the restored on in its place. make sure the auto sync is disabled, connect the iPhone and then do a Restore from backup.
    Hope that makes sense - got to dash !

  • Simple sort on a Set

    Hi,
    I have a Set collection that contains a collection of objects that are the same type. The object is a bean and all I want to be able to do is create an ordered collection sorted by mybean.firstName (lets say). Could anyone give me some pointers? is a Set collection even capable of this? Thanks

    is a Set collection even capable of this? A Set is an interface. Some implementations include HashSet and TreeSet. A HashSet does not provide ordered storage. A TreeSet does, with ordering provided by either Comparable entries or a Comparator.
    The object is a bean and all I want to be able to do is create an ordered collection sorted by mybean.firstName You can
    1) Use a TreeSet and either a) implement Comparable on your beans or b) implement a Comparator and use that in the TreeSet
    2) Use an unordered HashSet to store the beans and when ordering is desired, put all the entries into a List (probably ArrayList) or array and sort them using either a) the beans natural ordering if they implement Comparable or b) a Comparator you provide.
    Unless you have huge numbers of beans and/or the comparison operation is spendy, I'd opt for 2b as it is more flexible, i.e. what if you also want to compare by mybean.lastName.
    Don't worry about performance overhead copying objects from a set to a list (again, unless they are large)

  • When I down load a CD Itunes seems to split the CD into two or more albums. I get the songs but they sort into multiple albums of the same name.

    I just down loaded Stones "Forty Licks" into iTunes in my computer.
    In Itunes I see 4 albums 2 for disc 1 and 2 for disc 2.
    The songs are spread between the albims so I can't play the entire album at once.
    Ideas on how to better download or on how to resort I tunes to get the songs all on one album.

    Yes ensure that the Album Artist entry is the same for all tracks eg Various Artists or Artist & Friends. Whatever you want just has to be the same

Maybe you are looking for