Sort is not working

hi i am calling one javascript method in mxml by using
Externalizable.call method() .
and draw graphs by using that data .1 time its working fine.
if i click any sort button the data is automatically changed .can
any body tell me why this happend

Hi I have just upgraded my apex systems from ver 3.2 to 4.1 and 10g to 11i (three servers worth!!)
I have noticed extensive problems with the classic reports one of which is column sorting.
Like you our reports are SQL based.
The problem we get is that some sorts work some don't take the following
select "ID",
"SLPN",
"MSS",
"MSD",
"MSSC",
"A_T",
"A_IDC",
"CRC",
"DUPD",
nvl(ip_lookups_pkg.get_meaning_asbestos('PROD_TYPE',IP_ASB_TABLE_4A.P_TYPE),IP_ASB_TABLE_4A.P_TYPE) Product,
nvl(ip_lookups_pkg.get_meaning_asbestos('CAP_CODE',IP_ASB_TABLE_4A.CAP_C),IP_ASB_TABLE_4A.CAP_C) CAPTURE,
nvl(ip_lookups_pkg.get_meaning_asbestos('ANALYSIS_SC',IP_ASB_TABLE_4A.MSSC),IP_ASB_TABLE_4A.MSSC) STATUS,
nvl(ip_lookups_pkg.get_meaning_asbestos('ANALYSIS_SC',IP_ASB_TABLE_4A.A_T),IP_ASB_TABLE_4A.A_T) ASBESTOS
from "#OWNER#"."IP_ASB_TABLE_4A"
where SLPN = :P131_SLPN
now I can sort on product but not on capture ???
What I know so far
It does not seem to matter if its numeric or character based columns.
It does not matter if it is a basic table column or if is generated using a package.
The only cure I have found is recreating the page within APEX4 then copying the page back in after testing
the wierd bit is the new page is identical to the old, well apart from it works!!
so I would try re writing the page.
The other issues I'll post seperatly as they are a little different
If any one has any ideas on a quick fix please post. I have 350+ of these to do!!

Similar Messages

  • In SharePoint sorting is not working in the list.

    Sorting is not working when i click on the list column, where the column filed is an people or Group datatype.
    Please help me out in this.
    Ramesh S

    Hi,
    You can refer this post-
    https://social.technet.microsoft.com/Forums/office/en-US/b748bb03-4881-4aa5-9c87-bd4558b9201c/unable-to-sort-task-lists-by-assigned-to-column?forum=sharepointadminprevious
    Thanks,
    Danny
    Please remember to Mark as Answer if it works or vote of it is helpful

  • Table sort is not working for columns.

    Hi,
    I am using TableSort.java class. Followed https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sapportals.km.docs/library/user-interface-technology/wd%20java/wdjava%20archive/developing%20with%20tables%20in%20web%20dynpro.pdf
    to create the action and assigned that to onSort event for the table. When I run, I see the ascending-descending icons besides the columns, but nothing happens when I click them. Here is the context.
    Context
    l
    l
    l ---User_Table
             > Email
             > Name
            |
             > Office
    Here Name is a custom string (last name, first name). Also office is a custom string (office1, office2, ...etc).
    Edited by: srinivas M on Feb 8, 2009 6:03 AM
    Edited by: srinivas M on Feb 8, 2009 6:03 AM

    Hi Srinivas,
      If you want to do an initial sort. You have to add the following method to the TableSorter class.
    public void initialSort(String columnId, IWDNode dataSource) {
              // find the things we need
              String direction = WDTableColumnSortDirection.UP;
              IWDTableColumn column = (IWDTableColumn) table.getView().getElement(columnId);
              NodeElementByAttributeComparator elementComparator = (NodeElementByAttributeComparator) comparatorForColumn.get(column);
              if (elementComparator == null){
                   //not a sortable column
                   column.setSortState(WDTableColumnSortDirection.NOT_SORTABLE);
                   return;
              // sorting
              elementComparator.setSortDirection(WDTableColumnSortDirection.valueOf(direction));
              dataSource.sortElements(elementComparator);
    In your wdDoModifyView() after initializing the tablesorter class you have to call the above method.
    if (firstTime) {
                IWDTable table = (IWDTable) view.getElement("Table");
                wdContext.currentContextElement().setTableSorter(
                   new TableSorter(table, wdThis.wdGetSortAction(), null));
                      wdContext.currentContextElement().getTableSorter().initialSort("Your Column ID", wdContext.nodeUser_Search_Results());
    Can you double check in your code if the table is bound to the node "User_Search_Results" and not "User_Table". If the table is bound to the "User_Table" then the sort will not work since in the code you are sorting the node "User_Search_Results".
    If you want to implement sort on only one column you can use the alternate constructor for the TableSorter class.
    TableSorter(IWDTable table, IWDAction sortAction, Map comparators, String[] sortableColumns)
    You have to give a String array of columns that need to be sort enabled.
    Regards,
    Sanyev

  • Sorting does not work  with ROW_NUMBER () OVER (ORDER BY

    CREATE OR REPLACE PROCEDURE SP_SALES (
    p_sales_id IN VARCHAR2,
    p_rownnum_from IN NUMBER,
    p_rownnum_to IN NUMBER,
    p_sort_by IN VARCHAR2,
    p_query OUT SYS_REFCURSOR,
    AS
    v_query VARCHAR2 (32000);
    v_sort_list VARCHAR2(32000) ;
    BEGIN
    IF p_spv_sort_by IS NULL THEN
    v_sort_list := 'given_name ASC ' ;
    ELSE
    v_sort_list :=p_spv_sort_by;
    END IF ;
    DBMS_OUTPUT.PUT_LINE ('v_sort_list '||v_sort_list);
    OPEN p_query FOR
    SELECT sales_id,
    item_id,
    order_num,
    employee_name
    ,given_name
    dept_id,
    manager_name,
    ROW_NUM
    FROM
    (SELECT x.*,
    ROW_NUMBER () OVER (ORDER BY v_sort_list ) ROW_NUM
    FROM (sales_id,
    item_id,
    order_num,
    employee_name
    ,given_name
    dept_id,
    manager_name,
    FROM order rvw,
    sales pol,
    emp ca,
    WHERE pol.id = rvw.pr_order_id
    AND ca.empid =pol.employee_id
    AND status = 'SUP') x )
    WHERE ROW_NUM BETWEEN p_rownnum_from AND p_rownnum_to;
    -- ORDER by v_sort_list ;
    DBMS_OUTPUT.PUT_LINE ('v_sort_list '||v_sort_list);
    EXCEPTION
    WHEN OTHERS THEN
    DBMS_OUTPUT.PUT_LINE ('EX ');
    END;
    END;
    SHOW ERRORS
    Sorting does not work. Am I doing something wrong here?
    executing procedure using below
    declare
    x SYS_REFCURSOR;
    y number;
    BEGIN
    SP_SALES('70159_502',1,5, 'GIVEN_NAME'||' ASC' ,:x);
    --dbms_output.put_line (:x);
    END;

    Hello
    Depending on how many different columns you can sort on and the data types of them, it may be feasible for you to include the conditional logic in the existing statement without the need for dynamic sql...
    DTYLER_APP@pssdev2> var p_spv_sort_by varchar2(100)
    DTYLER_APP@pssdev2>
    DTYLER_APP@pssdev2> exec :p_spv_sort_by:='some other column'
    PL/SQL procedure successfully completed.
    P_SPV_SORT_BY
    some other column
    DTYLER_APP@pssdev2>
    DTYLER_APP@pssdev2> WITH source AS
      2  (   SELECT 'a' given_name, 'z' other_column from dual UNION ALL
      3      SELECT 'b' given_name, 'y' other_column from dual UNION ALL
      4      SELECT 'c' given_name, 'x' other_column from dual
      5  )
      6  SELECT
      7      given_name,
      8      other_column,
      9      ROW_NUMBER ()
    10     OVER (
    11        ORDER BY
    12           CASE
    13              WHEN :p_spv_sort_by IS NULL THEN given_name
    14              WHEN :p_spv_sort_by = 'some other column' THEN other_column
    15           END)
    16        ROW_NUM
    17  FROM
    18      source
    19  /
    G O    ROW_NUM
    c x          1
    b y          2
    a z          3
    3 rows selected.
    DTYLER_APP@pssdev2> exec :p_spv_sort_by:=NULL;
    PL/SQL procedure successfully completed.
    P_SPV_SORT_BY
    DTYLER_APP@pssdev2> WITH source AS
      2  (   SELECT 'a' given_name, 'z' other_column from dual UNION ALL
      3      SELECT 'b' given_name, 'y' other_column from dual UNION ALL
      4      SELECT 'c' given_name, 'x' other_column from dual
      5  )
      6  SELECT
      7      given_name,
      8      other_column,
      9      ROW_NUMBER ()
    10     OVER (
    11        ORDER BY
    12           CASE
    13              WHEN :p_spv_sort_by IS NULL THEN given_name
    14              WHEN :p_spv_sort_by = 'some other column' THEN other_column
    15           END)
    16        ROW_NUM
    17  FROM
    18      source
    19  /
    G O    ROW_NUM
    a z          1
    b y          2
    c x          3
    3 rows selected.
    DTYLER_APP@pssdev2>But that would depend on the columns you're sorting on being of the same data type or at least having the ability to convert them to the same data type without loosing the sort order.
    DTYLER_APP@pssdev2> WITH source AS
      2  (   SELECT 'a' given_name, sysdate - 2 other_column from dual UNION ALL
      3      SELECT 'b' given_name, sysdate - 1 other_column from dual UNION ALL
      4      SELECT 'c' given_name, sysdate  other_column from dual
      5  )
      6  SELECT
      7      given_name,
      8      other_column,
      9      ROW_NUMBER ()
    10     OVER (
    11        ORDER BY
    12           CASE
    13              WHEN :p_spv_sort_by IS NULL THEN given_name
    14              WHEN :p_spv_sort_by = 'some other column' THEN other_column
    15           END)
    16        ROW_NUM
    17  FROM
    18      source
    19  /
                WHEN :p_spv_sort_by = 'some other column' THEN other_column
    ERROR at line 14:
    ORA-00932: inconsistent datatypes: expected CHAR got DATE
    DTYLER_APP@pssdev2> WITH source AS
      2  (   SELECT 'a' given_name, sysdate - 2 other_column from dual UNION ALL
      3      SELECT 'b' given_name, sysdate - 1 other_column from dual UNION ALL
      4      SELECT 'c' given_name, sysdate  other_column from dual
      5  )
      6  SELECT
      7      given_name,
      8      other_column,
      9      ROW_NUMBER ()
    10     OVER (
    11        ORDER BY
    12           CASE
    13              WHEN :p_spv_sort_by IS NULL THEN given_name
    14              WHEN :p_spv_sort_by = 'some other column' THEN TO_CHAR(other_column,'YYYYMMDDHH24MISS')
    15           END)
    16        ROW_NUM
    17  FROM
    18      source
    19  /
    G OTHER_COLUMN            ROW_NUM
    a 12-SEP-2011 15:04:19          1
    b 13-SEP-2011 15:04:19          2
    c 14-SEP-2011 15:04:19          3
    3 rows selected.HTH
    David

  • Date Sorting is not working as expected

    Hey,
    I am using Report builder 3.0 to create one daily report where I need daily metrics and I am putting it under columns. I want it in day wise order but somehow it shows data in below format. My dates are in M/D/YYYY format. Notice how 1/10 is displayed
    before 1/2.
    Solutions tried -
    1. I tried Putting Date as first thing in the Sorting section on matrix.
    2. Created Expression in Sort  =Day(Fields!Date.Value)
    3. Created custom code to prepond 0 to day and month so dates becomes in MM/DD/YYYY format but it is not working.
    Query -
     SELECT NON EMPTY { [Measures].[Work Item Count] } ON COLUMNS, NON EMPTY { ([Work Item].[System_State].[System_State].ALLMEMBERS * [Date].[Date].[Date].ALLMEMBERS ) } DIMENSION PROPERTIES MEMBER_CAPTION, MEMBER_UNIQUE_NAME ON ROWS FROM ( SELECT ( STRTOMEMBER(@FromDateDate,
    CONSTRAINED) : STRTOMEMBER(@ToDateDate, CONSTRAINED) ) ON COLUMNS FROM ( SELECT ( STRTOSET(@WorkItemClaimsSandboxTargetVersion, CONSTRAINED) ) ON COLUMNS FROM ( SELECT ( { [Work Item].[System_WorkItemType].&[Defect] } ) ON COLUMNS FROM ( SELECT ( { [Team
    Project].[Team Project Hierarchy].&[{########-####-####-####-############}] } ) ON COLUMNS FROM [Work Item])))) WHERE ( [Team Project].[Team Project Hierarchy].&[{########-####-####-####-############}], [Work Item].[System_WorkItemType].&[Defect],
    IIF( STRTOSET(@WorkItemClaimsSandboxTargetVersion, CONSTRAINED).Count = 1, STRTOSET(@WorkItemClaimsSandboxTargetVersion, CONSTRAINED), [Work Item].[ClaimsSandbox_TargetVersion].currentmember ) ) CELL PROPERTIES VALUE, BACK_COLOR, FORE_COLOR, FORMATTED_VALUE,
    FORMAT_STRING, FONT_NAME, FONT_SIZE, FONT_FLAGS
    Replaced alphanumeric char with #### above.
    Nothing worked. Please help me out here. I am stuck for a month or so. Would appreciate your prompt response.
    Thanks in advance,
    Shrikant

    Hi Shrikant,
    Per my understanding that you have some problem when sorting on the column group on the matrix, which don't work, right?
    I have tested on my local environment and can't produce the issue, you issue can be caused by the wrong method you have used to setting the sorting, you may set the sorting by select the "Tablix Properties", if so, it will not work.
    Please reference to the details information below about how to do the sorting setting:
    Right click the "Column Group" and select the "Group Properties".
    Select the Sorting on the left pane and do the setting like below:
    This setting works fine on my side.
    If you still have any problem, please feel free to ask.
    Regards
    Vicky Liu
    If you have any feedback on our support, please click
    here.
    Vicky Liu
    TechNet Community Support

  • Z Sort key not working

    Hi
    Sory Key Z02  field name AWKEY u2013 Reference  its assigned in GL Master data.
    Purpose :
    When billing document released for accounting then Billing Document number populated   in Assignment field of Accounting document, subsequently we can check this billing document in FBL3.
    It is working fine in 4.5b but not working in Ecc6 after Tech upgrade.
    imdad

    Please ask your SD consultant to do the same.
    Sort key doesn't work for this.
    Also please check VOFA & VTFA, here you have option that which value you want to capture in reference and assignment field.
    Rgds
    Murali. N

  • Sorting array not working when run as a job

    I have a Powershell script that reads data from a log file, extracts a username and adds it to an array. I then sort the array to remove duplicates and export the data to a CSV file. The script works fine when run locally on the server but I need to call
    the script remotely for a number of servers and when I do this it does not output anything to the CSV. The script is run as a job.
    $ArrList = [System.Collections.ArrayList]@()
    # open file and read data
    $arrlist.Add("$final")
    $arrlist | sort -unique | out-file c:\scripts\iis_users.csv
    If I change the script to use add-content it can add entries to the same CSV file. But ideally I need to sort the output as there are many duplicates.

    Not sure why but that would only export the last user. I didn't have time to investigate so instead I decided to only add users to the array after first checking they didn't exist already:
    if ($arrlist -notcontains $final)
    $arrlist.Add("$final")
    add-content c:\scripts\iis_users.csv "$final"
    I thought this would create a performance hit but it seems almost as fast.

  • Specified Sort Order not working correctly in InfoView

    Hello All,
    We are running Crystal 2008 version 12.2.0.290 with Infoview 12.1.0 and are having a problem with specified sort orders working correctly.  In Crystal we are using the 'Chart Expert' to set the specified order of the percent bar chart.  It works just fine in Crystal 2008 and shows the stacked bar in the order we would expect.  We then save the report to InfoView and run the report on a schedule and it comes back in a completely different order. Not the order we specified in designing the report.  Any ideas on what is going on?
    Thanks in advance.

    We are experiencing a similar issue with the sort order in Infoview. We are using Crystal XI.5.8.26 and Infoview.
    The specified sort order works correctly in Crystal but in Infoview it comes back with a different order. Are there any suggestions on resolving this disparity?
    Thank you.

  • "Sort Albums" not working in Iphoto 11

    I see a lot of discussions about not being able to sort albums manually. I have not problem with that. When I control click on the name of the album, and hit "sort albums" noting happens. This used to work. I do not want to manually sort, since I have a ton of albums. HELP

    I'm able to sort albums both way, inside folders and those out of folders. The feature exists.  As a test launch iPhoto with the Option key held down and create a new, test library.  Import some photos, create a number of albums and albums in a folder and test to see if the same problem persists. Does it?  I'm running iPhoto 9.4.3 on 10.8.4.
    OT

  • Sorting is not working in infragistics when empty value in the column

    Hi ,
    i am using <ig:gridView> in my application. i have many columns in the grid view(ig means third party infragistics component). But in my case sorting(sortBy attribute in ig:column) is not properly working when the empty values in the column(DATA_ROW.source). This is a severity bug in my application. I have two days to deploy our project. I already hosted my bug report to the infragistics website. Please reply ASAP.
    <ig:column style="border:1px" sortBy="source">
    <f:facet name="header">
    <h:outputText style="color:#245B89;text-decoration:underline" value="Source System " title="Click to sort" />
    </f:facet>
    <h:outputText value="#{DATA_ROW.source}" />
    </ig:column>

    Hi,
    You can refer this post-
    https://social.technet.microsoft.com/Forums/office/en-US/b748bb03-4881-4aa5-9c87-bd4558b9201c/unable-to-sort-task-lists-by-assigned-to-column?forum=sharepointadminprevious
    Thanks,
    Danny
    Please remember to Mark as Answer if it works or vote of it is helpful

  • Javascript sort() function not working correctly

    I have an image gallery that automatically loads via a PHP readdir function which populates an array, and then I have a Javascript sort() function which sorts the images in order numerically. In Chrome and Safari, the images display as numbered in the directory. However, in Firefox and Internet Explorer, they display out of order (firefox) and not at all (ie). Here is the code for the php file: <?
    Header("content-type: application/x-javascript");
    function returnimages($dirname=".") {
    $pattern="(\.jpg$)|(\.png$)|(\.jpeg$)|(\.gif$)";
    $files = array();
    $curimage=0;
    if($handle = opendir($dirname)) {
    while(false !== ($file = readdir($handle))){
    $file = basename($file,".jpg");
    echo 'myImg['.$curimage.']="'.$file .'";';
    $curimage++;
    closedir($handle);
    return($files);
    echo 'var myImg=new Array();';
    returnimages()
    ?>
    and here is the code for the javascript sort:
    function sortNumber(a,b)
    return a - b;
    myImg.sort(sortNumber);
    // Tell browser the type of file
    myImgEnd = ".jpg";
    var i = 0;
    // Create function to load image
    function loadImg(){
    document.imgSrc.src = myImg[i] + myImgEnd;
    Any ideas as to why Firefox is behaving this way?

    After you check the box to sort on the column, are you making sure to select a sort order for the same column?
    Earl

  • Sort function not working

    I have a SQL report with different fields. At the report attribute when I checked sort, it gives me error "ORA-00911: invalid character". Any idea?
    My report is working fine without selecting sort function.
    Thanks,
    Mushtak

    After you check the box to sort on the column, are you making sure to select a sort order for the same column?
    Earl

  • Sort Fields Not Working Properly?

    If I do Get Info on a track, and change the Sort Artist to anything, then I Right Click on the track in the library > Apply Sort Field > Same Artist it changes the Sort Artist of all tracks by that artist to what I entered.
    However, I want to delete all the Sort Artist data. I do exactly the same thing, and change the Sort Artist data to nothing on a track. However when I try to apply the sort field to all tracks by the artist it leaves them alone! It doesn't change all the Sort Artists to nothing! It only does this when I enter no data. Any string at all and it works correctly.
    How can I change all the Sort Artists to nothing i.e. delete the Sort Artist data?

    Hi there.
    How about, instead of leaving the Sort Artist field blank, entering a name that is identical to the actual Artist field instead and then use the Apply Sort Field > Same Artist option.
    You can then go to the iTunes View menu > View Options command and uncheck Sort Artist so that it will no longer appear in your iTunes Library display.
    Does that bring you anything in the way of satisfaction?

  • Sort Order Not working in LR 3

    I cannot get sort order to function correctly in Library Mode. When I make it "User Order" it still put them in some seemingly random order and won't let me drag and drop images into a new order. I drag them to a location and it places them in a completely different random location.
    Is this a bug, is this normal, what am I missing? Seems like incredibly basic functionality.
    FYI, this particular set is all virtual copies not original images. it is a set of "treated" virtual copies and has 526 images in it.
    Driving me crazy and need solution. Help!
    Thanks!

    Yeah, it is a collection within a collection set. I just upgraded from 3.0 to 3.3 and it seems to have fixed it. Was weird that a bug like that could make it to version 3.2 before being fixed but as long as it's fixed now.
    Wouldn't happen in collections with much less images, was only happening in the one with 500+ and they were all virtual copies. Not sure if that had anything to do with it but figured I'd add the info here in case anyone else has problems.

  • Why is my JTable row sort is not working?

    Hey all,
    I wrote the following code for a JTable and I'm trying to use a table sorter to sort the first column content alphabetically, for now. Later, I'd like to use the third column and sort the table's rows based on ascending dates.
    For some reason, my comparator is not being called at all and I'm not sure what I'm doing wrong. I'm using JDK 6, which allows me to use a TableRowSorter. It is the first time I'm using this, so I may not know how to use it correctly. Does anybody have any idea what I'm doing wrong?
    Please advice.
    import java.awt.BorderLayout;
    import java.awt.Dimension;
    import java.util.Comparator;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JTable;
    import javax.swing.table.DefaultTableModel;
    import javax.swing.table.TableRowSorter;
    public class MyTable {
         JTable table;
         public MyTable() {
              JFrame frame = new JFrame("My Table");
              JPanel panel = new JPanel(new BorderLayout());
              table = createTable();
              panel.add(table.getTableHeader(), BorderLayout.NORTH);
              panel.add(table);
              frame.getContentPane().add(panel);
              frame.setSize(new Dimension(400,150));
              frame.setVisible(true);
         private JTable createTable()
              Object [][] data = {{"Nazli", "Shahi", "Wed, Mar 31, 1982"},{"Nima", "Sohrabi", "Thu, Jul 15, 1982"},
                                    {"Farsheed", "Tari", "Mon, Jun 13, 1967"}, {"Anousheh", "Modaressi", "Tue, Sep 18, 1964"}};
              String [] columnNames = {"First Name","Last Name","DOB"};
              DefaultTableModel model = new DefaultTableModel(data, columnNames);
              table = new JTable(model);
              TableRowSorter sorter = new TableRowSorter(model);
            sorter.setComparator(0, new MyComparator());
             table.setRowSorter(sorter);
              return table;
         private class MyComparator implements Comparator {
              public int compare(Object s1, Object s2) {
                   String first = s1.toString();
                   String second = s2.toString();               
                   System.err.println("returning "+(first.substring(0, 1)).compareTo(second.substring(0, 1)));
                   return (first.substring(0, 1)).compareTo(second.substring(0, 1));
         public static void main(String[] args) {
              MyTable test = new MyTable();
    }

    Alrite, so now I have Date objects in the model instead of String objects. Now, my question is, how can I actually sort the Date column with the latest dates showing on top and earlier dates showing on the bottom?
    The table provides a default Comparator to sort dates. You just need to tell the table what type of data is stored in each column. This is done by overriding the getColumnClass() method of JTable or TableModel.
    Camickr, you once said that the table provides a default Comparator to sort dates. and I just need to tell the table what type of data is stored in each column. This is done by overriding the getColumnClass() method of JTable or TableModel.
    With the current code that I have in getColumnClass I am not able to compare anything yet. Is there anything else I need to do? I'm a bit clueless, so I'd appreciate your help.
    import java.awt.BorderLayout;
    import java.awt.Dimension;
    import java.util.Date;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JTable;
    import javax.swing.table.DefaultTableModel;
    public class MyTable {
        JTable table;
        DefaultTableModel model;
        public MyTable() {
            JFrame frame = new JFrame("My Table");
            JPanel panel = new JPanel(new BorderLayout());
            table = createTable();
            panel.add(table.getTableHeader(), BorderLayout.NORTH);
            panel.add(table);
            frame.getContentPane().add(panel);
            frame.setSize(new Dimension(400,150));
            frame.setVisible(true);
        private JTable createTable() {
            Object [][] data = {{"Nazli", "Sh", new Date(192837429L)},{"Nima", "So", new Date(1293847L)},
                                {"Farsheed", "T", new Date(9872347892L)}, {"Anousheh", "M", new Date(234321234L)}};
            String [] columnNames = {"First Name","Last Name","DOB"};
            model = new MyTableModel(data, columnNames);
            table = new JTable(model);
            return table;
        public static void main(String[] args) {
            MyTable test = new MyTable();
        private class MyTableModel extends DefaultTableModel {
             public MyTableModel(Object [][] data, String [] columnNames) {
                  super(data, columnNames);
             public Class getColumnClass(int column) {
                  System.err.println(column);
                  if(column==2)
                       return getValueAt(column, 2).getClass();
                  else
                       return Object.class;
    }

Maybe you are looking for

  • Calling an action on Click of Radio Button

    Hi, We have a form in which we need to display two radio buttons and two dropdown lists. Depending on the selection of Radio Button the drop down list should change. To get the different data in the dropdown based on the selection of radio button, wh

  • Problem when saving as an .eps

    Hey guys I created a vector and I wanna save it as an EPS file. My fonts were turned to outlines ofcourse. So here what I did. File>save as>eps and the option "embed fonts for..." was checked(don't know if matters) My problem is that when I open the

  • Copy control fields need to be maintained from F8 to KE in consignment Issue

    Dear Gurus, Kindly let me know which routines do i need to maintain in VTAF to create copy control between F8 and CI for consignment issue. Regards Arunava

  • I have an Iphone 5, Can I replace the battery? or I need to replace device complete

    I have an Iphone 5. Battery charge it's not remaining charge for more than 3 hours. I would like to know if there is any way to replace it (buy a new battery) or maybe I need to replace all the Iphone device. thank you Mario Rodriguez.

  • Ipod help plz really need it

    hey i was just doin the update on my ipod and i took it out be4 it was done i guess because i thought i froze and now i cant use it at all. all it says is " the ipod "ipod" can not be restored. and unknown error has occured (1603)" i have tried press