AlanP Posted August 2, 2005 Posted August 2, 2005 Last ( Test History::Test Received ) In our portal (test history) there is a field for the Test Recieved (date). How can I use the above calculation to always show the last test received date EVEN if it is blank (not entry)? Right now it will just default to the last date found in the portal records.
aaa Posted August 2, 2005 Posted August 2, 2005 (edited) Sort portal by Test_Received_Date descending. Your_Calculation=TestHistory::Test_Recevied_Date Edited August 2, 2005 by Guest
PeterHW Posted August 2, 2005 Posted August 2, 2005 That was my initial thought as well, until I tested it and found that a record with an empty date field still got sorted as the last, no matter if the sort order is ascending or descending. So I created another field DateTest, calculation If(IsEmpty(date);0;GetAsNumber(date)) Then sort your relationship on this new field and it should work. See attachment. HTH, Peter Date.zip
AlanP Posted August 2, 2005 Author Posted August 2, 2005 Hey Peter thanks! I was a little confused about that at first but it worked! I also put it as GetAsDate If(IsEmpty(Test History::Test Received);"";GetAsDate(Test History::Test Received)) And then I sorted the relationship by test issue date descending
Recommended Posts
This topic is 7151 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