Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Saturday, June 28, 2025 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Web Forums - SalesLogix Web Platform & Application Architect
Forum to discuss the use of the SalesLogix Web Platform, Client and Customer Portals, and the Application Architect (For version 7.2 and higher only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Web Platform & Application Architect | New ThreadView:  Search:  
 Author  Thread: Changing default sort of activity list view
NixDev
Posts: 98
 
Changing default sort of activity list viewYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 06 Sep 11 11:04 AM
fiogf49gjkf0d



Hi all,


 


I need to change the default sort of the activity list view (activitymanager.aspx), so that the activities are sorted by start date ascending. I haven't been able to figure out how to do that. Any ideas will be welcome.


 


Thanks.



[Reply][Quote]
Raul A. Chavez
Posts: 1300
Top 10 forum poster: 1300 posts
 
Re: Changing default sort of activity list viewYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 06 Sep 11 11:49 AM
fiogf49gjkf0d

2 Ways I can think of:


1)  I haven't tried this myself, but on the ActivitiesViewConfiguration.xml, each named query has an "ordering" node within the XML definition of the Query.


 


2) This is what I have done in the past: using javascript apply Sorting to the List Panel:


  You could get the Store info for the ListPanel, then set the sortInfo.direction and sortInfo.field


  (This would have to be done on the ActivityViewer.ascx, there is probably plenty of code there for reference, but you could also check the sage-controls-listpanel.js file for additional references, never the less, a good debugger always help)

[Reply][Quote]
NixDev
Posts: 98
 
Re: Changing default sort of activity list viewYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 06 Sep 11 1:07 PM
fiogf49gjkf0d

Hi Raul, thanks for your help!


1) That solution is what i'd ideally would like to implement, but i'm not sure of the correct syntax. I tried a couple of thing, but couldn't get it to work.


2) Thats similar to what i'm currently doing. When the page first loads, i'm getting a reference to the grid, from there i get the store, but i was doing it in a slightly different way, setting the default sort:


 



grd.getStore().setDefaultSort('startDate', 'asc');


grd.getStore().load();



That seemed to work, but when the user scrolls on the list, the sorting goes out of wack...it allows several pages of scrolling down and then bounces back up and displays several previous months. I'll try your suggestion regarding the sortinfo.direction.


 


Thanks.

[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2025 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 6/28/2025 1:54:16 PM