David,
Thanks so much for responding as I've not yet got this figured out.
To answer your first question, no I am not using capitals in my
displaytag parameters.
Actually I am not using poNum to sort on but the reqNumLink that is in
my decorator. The reqNumLink is a string.
Here is my display:table tag in my jsp page:
<display:table sort="list" name="actionBean.results"
decorator="org.texashealth.scm.displaytag.decorator.SCMTableDecorator"
pagesize="50" requestURI="/reqs/Search.action" class="reqList"
defaultsort="2" defaultorder="ascending">
<display:column property="reqNumLink" title="Req #" sortable="true"
defaultorder="ascending" class="reqNum"/>
<display:column property="poNum" title="PO #" class="poNum"/>
<display:column property="delivrToDeptCode" title="Del"
class="del"/>
<display:column property="chrgToDeptCode" title="Chg" class="chg"/>
<display:column property="srceLocation" title="Src" class="src"/>
<display:column property="purchDeptCode" title="Pur" class="pur"/>
<display:column property="recStatus" title="St" class="st"/>
<display:column property="createdBy" title="Created By"
class="created"/>
<display:column property="assignedTo" title="Assign To"
class="assigned"/>
<display:column property="reqTypeValue" title="Typ" class="typ"/>
<display:column property="vendorCatNum" title="Vendor Cat #"
class="vnd"/>
<display:column property="itemNum" title="Item #" class="item"/>
</display:table>
Here is the code in my decorator for the reqNumLink column where which I
am trying to sort on:
public String getReqNumLink() {
final SearchResults reqValues = (SearchResults)
getCurrentRowObject();
final String reqNum = reqValues.getReqNum().trim();
final String entity = reqValues.getEntityCode().trim();
if (reqValues.isNonStock())
return "<a href = \"/reqs/NonStock.action?view=&reqNum="
+ reqNum + "&entityCode=" + entity + "\">" + reqNum + "</a>";
else if (reqValues.isNonStockCredit())
return "<a href =
\"/reqs/NonStock.action?viewCredit=&reqNum=" + reqNum + "&entityCode=" +
entity + "\">" + reqNum + "</a>";
return reqNum;
}
Your help is very much appreciated. Regards.
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
David Pilato
Sent: Monday, February 18, 2008 2:29 AM
To: [email protected]
Subject: Re: [displaytag-user] [displaytag -
OpenDiscussion]PleaseHELP-question on SORTING
Hi,
Just to make sure: you didn't write the displaytag parameters using
capitals, did you?
Is poNum a String or a Number?
Do you have something in your decorator concerning poNum?
> -----Original Message-----
I am so sorry to have posted such a long email before. I tried one
solution given by David earlier adding to the DISPLAYTABLE tag
DEFAULTORDER="1"
and DISPLAYSORT="ASCENDING". But this did not help my problem and the
sorting is still a problem. I also added DEFAULTORDER to my column tag
that is set to sortable="true" but still to no avail.
I know I must be missing a setting somewhere. ANY HELP or DIRECTION
would be greatly appreciated.
Regards.
------------------------------------------------------------------------
-
This SF.net email is sponsored by: Microsoft Defy all challenges.
Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user
The information contained in this message and any attachments is intended only
for the use of the individual or entity to which it is addressed, and may
contain information that is PRIVILEGED, CONFIDENTIAL, and exempt from
disclosure under applicable law. If you are not the intended recipient, you
are prohibited from copying, distributing, or using the information. Please
contact the sender immediately by return e-mail and delete the original message
from your system.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user