aldipalo Posted March 1, 2007 Posted March 1, 2007 OK, I've worked on this all afternoon and either I'm missing something or it can't be done. (My bet is I'm missing something. I want to have an Icon show on a record layout based on a date field in a related portal. That portal is on the same layout within a tab. Basically, Case( Interview_Date = Get ( CurrentDate);GetRepetition ( g_Interview Today Icon ; 1 ); GetRepetition ( g_Interview Today Icon; 2) ) I set up a calc field and a container field. If I put the Calc field on the portal it works fine. But, if I put it on the contact record it does not. Any suggestions will be greatly appreciated. Al
mr_vodka Posted March 1, 2007 Posted March 1, 2007 Hi Al, If you put it on the contact layout itself it will only be based off the first related record value. Can you explain your setup with more detail? Right now I am guessing that you have a contact table and related interview table. I am also assuming that the calc field is a part of the interview table? P.S. you can shorten up your case statment to be Case( Interview_Date = Get ( CurrentDate); g_Interview Today Icon; g_Interview Today Icon [2] ) )
aldipalo Posted March 1, 2007 Author Posted March 1, 2007 The interview table has really turned in to more of a tasks table. So it is a one to many relationship with contacts. The calc is based off of an interview date. If the interview date in the interviews table is today show Icon. The Interviews/tasks are in a portal on the contacts layout. What I want to accomplish is quickly show that I have a task or interview related to the contact for today. P.S. Thanks for the shortening tip. Al
comment Posted March 1, 2007 Posted March 1, 2007 Try a calculation in the Contacts table = g_Interview Today Icon [ 1 + IsEmpty ( FilterValues ( List ( Interviews::Interview_Date ) ; Get(CurrentDate) ) ) ]
aldipalo Posted March 2, 2007 Author Posted March 2, 2007 Comment: As usual, spot on! Thanks to both you and Mr. Vodka. Al
Recommended Posts
This topic is 6538 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