Rushhour Posted January 23, 2006 Posted January 23, 2006 Hi I created 3 fields, DateExpire, DateCreate and DomainName in List view. I create an additional 2 fields called year[Year(ExpiryDate)] and month[MonthName(ExpiryDate)] to group all the domain expiring on the same month and year together. E.g. Date Expire Date Create Domain Name 2006 January 01/01/2006 01/01/2005 abc.com 2006 February 02/01/2006 01/01/2005 def.com 02/02/2006 02/02/2005 ghi.com And now i having a problem, if i sort by month it may give me 2005 jan then 2004 feb then 2006 march. And if sort by year first it also having this type of problem. How can i sort by year and month together?? Thanks a lot in advance. Kelvin
aaa Posted January 23, 2006 Posted January 23, 2006 Hi, Roshhour! You can sort by two criterias: Year,Month specifing it in sort options or: why you dont want sort by date?
Rushhour Posted January 24, 2006 Author Posted January 24, 2006 Hi I did tried using both fields 'year' and 'month' but still the same. Attached is the sample file, can someone help me look into it. Layout: Expired List Script: Go to preview layout Thanks a lot. Kelvin Domain_Name_Registry_Copy_testing.zip
aaa Posted January 25, 2006 Posted January 25, 2006 Hi, Roshhour! Your month field returns monthname and i think that this is the main reason of your problem. Create one other field month1=Month(ExpireDate) and sort by year and month1. I did it in your attachment. Domain_Name_Registry_Copy_testing.zip
Rushhour Posted January 25, 2006 Author Posted January 25, 2006 Hi aaa When i go to the expired list layout, all records are under january category. It is not categorise in their months.. Thanks a lot.. Kelvin
aaa Posted January 25, 2006 Posted January 25, 2006 I see at me such, and i think that your script works right.This is word document. Word.zip
Rushhour Posted January 26, 2006 Author Posted January 26, 2006 Oh sorry maybe i never explain it clearly. I wish to achieve date able to categorise by month. At the moment all dates are under january which is wrong, as september should not categorise under january. E.g. January 01/01/2006 01/02/2006 01/03/2006 Feburary 02/01/2005 02/01/2004 April 04/01/2005 Thanks a lot Kelvin
aaa Posted January 27, 2006 Posted January 27, 2006 Hi, Roshhour! I attached file. On the Expired list layout i puted button sort. Such? Look please. Domain_Name_Registry_Copy_testing.zip
Rushhour Posted February 6, 2006 Author Posted February 6, 2006 (edited) Hi aaa Thanks a lot for the help offered. I have managed to figure it out, attached is what i meant. Apologise maybe i still did not explain it clearly. Thanks a lot Kelvin Domain_Name_Registry_Copy_testing.zip Edited February 6, 2006 by Guest
Recommended Posts
This topic is 6929 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now