Jump to content

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

Recommended Posts

You can do it one of two ways, but first you will need to write a script. The script can be along the lines of, If a certain condition is met in your value list do whatever (go to layout or go to specific field etc.) This can be triggered by a button or a script trigger plugin.

Link to comment
Share on other sites

Well I did apply it to a button and it executes a script if it equals a certain value, however I just have so many different values, my script would be ridiculously long, in a perfect world I would like to allow a variable inside the go to field script soo I would be able to go to that field when a certain value is chosen.

As of right now looks like that plug in may be the only option :

Link to comment
Share on other sites

You could script it something like this:

Loop

. Go to next field

. Exit Loop If(Get ( ActiveFieldName ) = value)

End Loop

Link to comment
Share on other sites

The following is the code I have used it works, but it may not be the correct way to script Ive only stated using filemaker for about one week. The problem is I have to use this nested if statement about 40 times for all my variables and its too long.

If there is no way around it, does anyone know if this would take filemaker a long time to go through this script? and would it slow down my database?

Set Field[Lanes::Count; Lanes::Count=0]

If[Lanes::StartTimeConverted=32]

Go to Field [Lanes::R8:00; $$RegularLanes]

If[Lanes::Duration≥2]

Loop

Exit Loop if [Lanes::Count=Lanes::TimeMinutes]

Go to Next Field

Inserted Calculated Result[select;$$RegularLanes]

Set Field[Lanes::Count;Lanes::Count+1]

End Loop

End if

end if

Link to comment
Share on other sites

This topic is 6555 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.