ron G Posted August 22, 2013 Posted August 22, 2013 This is a tough one.  I have a Membership application.  I have a popup that works. (not the problem). Part of the data I collect on each Member is if they are "Active" or "Inactive" (Members::ActiveInactive) To that end there is a Members::ActiveInactive field that holds the appropriate "Active" or "Inactive" value.  My tables are :   I have a layout based on Meetings. on the left side of the layout there is a portal based on: MemberMeetingJoin . This holds the members to show at a particular meeting.  On that portal there is a field: KF_Member which is a popup that grabs:              MembersTOC::KP_MemberID and MembersTOC::Name_LastFirstMI This all works.  The problem is that my users are adding a lot of historical records that include a lot of deceased (hence "Inactive") members. These Inctive members show in the popup.    I want to show only the "Active" members.  I tried: Creating a new TOC of Members called MembersActiveInactive. Then I created a caluclated field: cActiveInactive that references MembersTOC::ActiveInactive and then establishing a relationship between MembersTOC::ActiveInactive and MembersActiveInactive::cActiveInactive.  With this done, I defined my popup to include relationships from MembersActiveInactive   but...  It works when I click an existing record. But, when I click a new/empty field it just shows "...other". No popup values at all.  What am I doing wrong? Â
eos Posted August 23, 2013 Posted August 23, 2013 This is a tough one.   Creating a new TOC of Members called MembersActiveInactive. Then I created a caluclated field: cActiveInactive that references MembersTOC::ActiveInactive and then establishing a relationship between MembersTOC::ActiveInactive and MembersActiveInactive::cActiveInactive.  With this done, I defined my popup to include relationships from MembersActiveInactive  This is rather convoluted; also, this way the value list only has values if you're in the context of Members. What you want is a context-free value list that you can use in your join table.  Simply define a global calculation field with the result 1 (every home should have one), then connect, say, Members to a new TO like âMembersActiveâ and use these two fields as predicate for the relationship: gOne (in Members) = ActiveInactive (in MembersActive), or gOne â  ActiveInactive, depending on which flag you set. Now a value list starting from Members and using fields from âMembersActiveâ gives you all the active members.  Here's a little illustrated primer:  1. To have a value list holding only favorite musicians  2., 3. Create a relationship from anywhere in the Graph (you only need a table with an appropriate left match field, preferably a multi-purpose global)    4. Define a value list  5. Use it in whatever context you want
ron G Posted August 23, 2013 Author Posted August 23, 2013 Thanks for the ideas. I got it to work by creating another TO of Members called ActiveInactiveMembers and created a calulated field whereby cActiveInactive=if(ActiveMembers::ActiveInactive="Active";ActiveInactive::Name_LastFirstMI). Then I set a relationship between MembersTOC::ActiveInactive and ActiveInactive::cActiveInctive. Next on my layout I constructed my popup to reference FK_MemberID and ActiveInactive::Name_LastFirstMI. Ba boom...
Recommended Posts
This topic is 4121 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