Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

Excluding certain records from Value List?


This topic is 4425 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

Posted

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.

Posted

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".

Posted

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...
Posted

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.

This topic is 4425 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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