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.

Featured Replies

Hello Everyone...

I have a simple case function that as you can see makes certain fields change depending on the referenced field.

Case (

Policy_Active_Inactive = "InActive";"Holding";

Policy_Active_Inactive = "Active";"InHouse Review";

Policy_Active_Inactive = "Closed";"Closed")

What I need to do is make a cell on another tbale change... On the first line you can see when Policy_Active_Inactive turns to Inactive the Status Field (thats the field that its on) changes to Holding...

What I need is to change the status field on the main table to Holding...How?

Can someone help me Please?

Thank you...

Run the same Case statment on the related field in the main table.

SetField["relatedMainStatusField",

Case (

Policy_Active_Inactive = "InActive";"Holding";

Policy_Active_Inactive = "Active";"InHouse Review";

Policy_Active_Inactive = "Closed";"Closed")

]

Make sure you run this Case statement before you change the Policy_Active_Inactive field Case statement.

  • Author

ok great...

Does it then look like this?

Case (

Policy_Active_Inactive = "InActive";SetField["relatedMainStatusField","Holding";

Policy_Active_Inactive = "Active";"InHouse Review";

Policy_Active_Inactive = "Closed";"Closed")

? Not sure how really to plug that in?

In your main file you are relating to the child record...

Case (

related::Policy_Active_Inactive = "InActive";"Holding";

related::Policy_Active_Inactive = "Active";"InHouse Review";

related::Policy_Active_Inactive = "Closed";"Closed")

Note that this only works on a 1:1 relationship (main:child)

If you have a 1:many relationship you will need a more complex definition.

  • Author

ok great thanks...

Joseph

  • Author

ok...I see what you are talking about I do have a 1:many relationship...what do I need to do...or is it to complex to tell me?

Joseph?

  • Author

SetField ["Policies::Policy_Active_Inactive",

Case(

Ins_Status="Holding","Inactive",

Ins_Status="In House Review", "Active")]

I think this is what you said...If it is FM7 does not know SetField Function...

I put this on the main page where I have radio buttons...what I want to do is when I change one of the radio buttons I would like the Policies page Status field to change...

?

Joseph

Joseph, click on the Main Index link near the top of this page. Running down the right-hand side of the page you will see links to several FileMaker instruction manuals and other resources. These are good books and you need one or more of them. Sooner or later people here are going to stop replying to your questions.

Jerry

For a one to many relationship, a field definition is not a good way to solve the problem. I would script the change of the status and set the new status into a text field in the Main table.

  • Author

ok...I will pick up a book...Thank you for the sugestion Quintech...Also thank you fishma...I think I know how this works now...

Thank you

No prob...

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.