Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Excluding certain records from Value List?

Featured Replies

Environment MAC 10.6 with FMPA 12.0v2

I have a situation that works but needs to be refined because its not doing what the user requires.

It starts out at style development where a user creates measurement charts for various stages of garment development.

The layout(Enter New Chart Name) to create a new chart has 2 drop downs where the user selects a default measurement chart depending on size range and gender.

The CUSTOMER drop down should display customer specific charts and the ALL CHARTS needs to display all charts minus ones that are designated RETIRED in the default chart.

The default measurement chart table is actually a TO from another DB.

Both MeasurementChart and MeasurementChart_Defaults_List_Gender_Customer(TO) exist in the STYLES_MAIN DB.

The ALL Charts is tied to a value list which is set to include all values from the default list and this is where the problem is.

Obviously I can't make the value list only select non retired records.

My other thought was to create a small layout with a portal filtering out any retired records.

Is there any other way that I can display all records except retired ones for the user to select.

I have included screen shots of the overall relationship between STYLE_MAIN, MeasurementChart, MeasurementChart Default.....

The Value list setup and the Enter New Chart name layout.

post-99782-0-87384700-1349207446_thumb.p

post-99782-0-18455400-1349207455_thumb.p

post-99782-0-22630900-1349207464_thumb.p

Hope someone can decipher what I trying to fix here.

Thanks

Do you mean 'related' where you mentioned 'retired'?

Can't you just reverse the relationship. Ie, make = be !=

Would that the satisfy the opposite fields?

  • Author

Matty,

Sorry should have clarified a bit more.

There is a field in the Default table called MCDL_Usage.

Normally its set to Current when the chart is created but the user can set to Retired.

Now when a user creates a new measurement chart it puts "Retired" in a field called MC_Word_Retired in the MeasurementChart table right away.

In the relationship between MeasurementChart and the MeasurementChart_Defaults_list..... it "sorts" out where MC_WORD_RETIRED != MCDL_USAGE.

Seems that this relationship doesn't play a roll in the drop down value list which is set to include all values.

which is set to include all values.

you only want to display related values though don't you?

  • Author

No they want to see all the records in the default table except for the ones that are designated "Retired".

Right now the drop down value list is bringing in everything including "Retired".

Check out the Magic Value List example at FileMakerhacks.com. Using ExecuteSQL, you can easily make a dropdown list without a relationship and call exactly what you want. For example (insert your field names below):

MVL_Dropdown ( ExecuteSQL ( "SELECT ChartName FROM All Charts WHERE NOT Status = ?" ; "" ; "";"Retired") )

The example file does not give a great explanation, but with a bit of work, you can set it up for any file. Essentially, you use a combination of custom functions, SQL, a couple of scripts, script triggers, and a global field to generate drop down lists, checkboxes, and radio buttons, as well as conditional lists based upon input from other fields.

Take the time to learn this technique and you won't regret it.

  • 2 weeks later...
  • Author

Well you were correct about the explanation part.

I get the SQL part, it's when I get to the Filemaker part thats where I get lost.

What gets setup where etc.

Unfortunately time being what it is I'm not going to be able to work through this.

Thanks for the suggestion will have to take some time to work on it.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.