?
Solved

Limiting a pop-up menu to only show records marked "active"

Posted on 2012-12-21
7
Medium Priority
?
494 Views
Last Modified: 2012-12-22
I have a clients table that contains the ID, name, and a active field (0 for inactive, 1 for active).

I want to have a layout where a user selects the active client and then moves on to another layout passing the ID as a variable.

The problem - I can't figure out how to limit the field to only display active clients.
0
Comment
Question by:OTAdmin
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 2
7 Comments
 
LVL 12

Expert Comment

by:North2Alaska
ID: 38715832
Are you displaying the list via a portal?  If you are I can suggest two option. 1) either modify the relationship to include the active field or create a new relationship with the same. 2) use portal filtering when defining the portal on the layout.
0
 

Author Comment

by:OTAdmin
ID: 38715908
No, not via portal.  It's a pop-up menu to select a client and a day below that and then submit to the next layout, passing those variables.  I just can't figure out how to limit the popup menu to only show records marked as active (1).
0
 
LVL 12

Accepted Solution

by:
North2Alaska earned 2000 total points
ID: 38715944
So, you are using a value list to populate the popup.  So, I think a relationship is probably your best bet.  Here is a little sample of how you might make this work.  The elements to look at are:
1) Global g_active set to 1 (active) to filter the list
2) The Value list uses the "Include only related records" option.
3) The Value List only displays the name but returns the ID.  (the g_selected field is only used to capture the selection.  You may want or need to do this another way.
4) The Active field is where you would change the status from 1 to 0 to indicate activity.

See if this makes sense...
Popup-Filter.fp7
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:OTAdmin
ID: 38716391
Wow, thanks for the sample database.  I see what you did, however I don't understand.  I don't see the process that causes the value list to be limited.  I can mimic this, but I just don't understand.

It also seems like a lot of work when they could just add filtering formula criteria to the value list generation.  But, that is a wish for another day.  :-)
0
 

Author Comment

by:OTAdmin
ID: 38716396
Never mind.  I see it in the relationship.  Now I get it, although it seems like so much work when it could just be a filtered value list.  I guess I don't really understand that whole table occurrence thing.  I knew i had to do it, but I haven't found a good explanation of them.
0
 

Author Comment

by:OTAdmin
ID: 38716414
Hmm.  Possible bug.  I notice that if I flip around a few times in the value list, it changes one of the client names to a 1.  I'm trying to narrow down and recreate the process repeatedly.

What is the purpose of the "g_selected" field in your example?
0
 

Author Comment

by:OTAdmin
ID: 38716415
Never mind again.  Ugh.  I now see my you have that field.  It prevents the name field from being renamed.

Will this still work in a multi-user environment where multiple users are selecting and entering data simultaneously?
0

Featured Post

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Conversion Steps for merging and consolidating separate Filemaker files The following is a step-by-step guide for the process of consolidating two or more FileMaker files (version 7 and later) into a single file with multiple tables. Sometimes th…
Having just upgraded from Filemaker 11 to Filemaker 12 over the weekend, we thought we would add some tips for others making the same move.  In general, our installation went without incident. Please note that this is not a replacement for Chapter 5…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question