March 6, 200124 yr i have a file with a selfjoin based on the record title. each record also has a serial number i use for putting items in order (these are reserialized via scripts). the serial number is used in the selfjoin to display info about the record preceeding it in the sequence, such as the previous date. this means that the first record in the sequence does not have a valid relationship, so i wanted to display a default value with the following calc field (text): If (IsValid(selfjoin), PreviousRecordInfo, GlobalTextField) while the first part works in all records, the alternate expression for the first record is never used (the field stays blank). any idea what's wrong with this?
March 6, 200124 yr Why not: If (IsValid(selfjoin), PreviousRecordInfo, "") You don't need a dummy field. -bd
March 7, 200124 yr Author some users may find it strange that the field is blank. it would be nice to enter something by default. but if it can't be done, it can't be done.
March 7, 200124 yr You calculation should work, except for one thing. The IsValid() function checks a field and not a relationship. If should have the form IsValid(SelfJoin::Field). You can actually make up you own test for this without IsValid(). Create a calculation field, Constant (number) = 1. The test would then become: If(SelfJoin::Constant, "Valid", "Invalid") Make sure you set the calculation to evaluate if the fields are empty. -bd
Create an account or sign in to comment