Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Others
cms.evaluation
cms.general
comm.businessdesk
comm.campaigns_csf
comm.catalog
comm.datawarehousing
comm.deploy.
comm.general
comm.sdk
comm.solutionsites
comm.userprofilemgt
commerce.analysis
crm
crm.deployment
crm.developer
hiserver.general
mobility.miserver
sharep.portal.config
sharep.portal.dev
sharep.portal.docmgmt.
sharep.portal.installation
sharep.portal.sdk
sharep.portal.search
sharep.team.caml
sharep.teamservices
sharep.windowsservices
sharep.winservices.dev
sharepoint.portalserver
siteserv.knowledgemgr
siteserver.analysis
siteserver.commerce
siteserver.css
siteserver.general
siteserver.publishing
siteserver.sdk
siteserver.search
site-server.site-mgmt
site-server.webpost
  
 
date: Fri, 28 Dec 2007 14:32:00 -0800,    group: microsoft.public.commerceserver.sdk        back       


Descending Sort does not work   
I am using Microsoft.CommerceServer.SearchOption class to sort a GridView 
either ASC or DESC.  The search is performed on a Profile class.

profile.ExecuteSearch() does not work correctly when SortDescending is set 
to true. It always returns in ascending order. 

searchOption.SortProperties ="PropName";
searchOption.SortDescending=true;
profile.ExecuteSearch(entity, filter, searchOptions);

I also tried searchOption.SortProperties="[PropName]DESC" which raises an 
exception because it cannot find the property.

I used SQL profiles and it shows that in both scenarios the order is done in 
ascending order.

Any help would be very much appreciated. Please note I am new to Commerce 
Server.
date: Fri, 28 Dec 2007 14:32:00 -0800   author:   hmk

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us