Hi,
    In my decorator I have the following code to get DealerId.
 
    public String getDealerId()
    {
       String str = "";
        User user = (User)getCurrentRowObject();
        int dealerId = user.getDealerId();
        if (dealerId > 0)
        {
         str = "<a href="">                   + dealerId
                   + "');\">"
                   + dealerId
                   + "</a>";
     }
     else
     {
      str = ""+dealerId;
     }
     return str;
    }
 
Now when I sort on dealerId I have 2 problems :
1) 0, as it is not a link is always treated differently.
2) And the rest are treated as Strings and sorted. As a result ascending order sort has the following order :
222
240
25
0
 
instead of
0
25
222
240
 
Any solution ?
 
thanx
Deepak

Reply via email to