Jump to content

link to layout through checkbox


Dutchy
 Share

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

Recommended Posts

Hi, don't know if what I want to do is possible with FM. I am rather new to Filemaker.

Within my database I have a project status field that is set as radio buttons. Phases 1-6

When I select Phase 1 in the status field I would like FM to go to or show the Phase 1 layout or tab. Is there any way of doing this?

Dutchy

Link to comment
Share on other sites

Create a button that with empty fill and empty line that will sit over each radio selection in the field. Each one of the 6 buttons will reference the same script, however, attach a script parameter to each button of each number.

So in your script now, to go to different layouts:

If [ Get ( ScriptParameter ) = 1]

Go to Layout ["First layout"]

Else If [ Get ( ScriptParameter ) = 2]

Go to Layout ["Second layout"]

Else If [ Get ( ScriptParameter ) = 3]

Go to Layout ["Third layout"]

Else If [ Get ( ScriptParameter ) = 4]

Go to Layout ["Fourth layout"]

Else If [ Get ( ScriptParameter ) = 5]

Go to Layout ["Fifth layout"]

Else

Go to Layout ["Sixth layout"]

End If

Of if its tabs that you want to go to,

1. Name each tab as a object via the Object Viewer. Each object name can be the same as teh script parameter to make things easy for you.

The script would simply be:

Go to Object [ Get ( ScriptParameter ) ]

Link to comment
Share on other sites

Thanks, this seems to be working. However I would also like the radio buttons to be checked off when I go to a tab. The radio buttons let me know what status the project is in and the data on the tab gives me more detailed information about this stage of a project. How can I make sure the radio buttons are checked off and at the same time will be able to go to the set tab.

Dutchy

Link to comment
Share on other sites

I thought that would be enough for you to go on but I apologize for my assumption.

Assuming that the value list for phase is just 1-6, just Set the Phase Field to the Script Parameter value as well.

Set Field [ Phase; Get ( ScriptParameter ) ]

Link to comment
Share on other sites

I dont understand the issue.

The script would simply be:

Set Field [ Phase; Get ( ScriptParameter ) ]

Go to Object [ Get ( ScriptParameter ) ]

Link to comment
Share on other sites

This topic is 5708 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
 Share

×
×
  • Create New...

Important Information

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