Solved

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

Posted on 2012-12-21
7
490 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 500 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
Independent Software Vendors: 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

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

Pop up windows can be a useful feature of any Filemaker database.  Though best used sparingly, they can be employed in a multitude of different ways, for example;  as a splash screen at login, during scripted processes to control user input, as pick…
Problem: You have a hosted FileMaker database and users are tired of having to use Open Remote or Open Recent to access the database. They say, "can't you just give us something to double-click on rather than have to go through those dialogs?" An…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

695 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