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

using a find and then switching layouts


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

Recommended Posts

Posted

Hello!

Is it possible to use a find to get a record and then show that record on a new layout?

I am sure this is a dumb question with a simple answer, but I can't get it!!

Thanks Everyone!!

Posted

You could set a layout script trigger to run OnRecordLoad, with a script something like:

Set Variable[ $found ; Get( FoundCount ) ]

If( $found = 0 )

  Go to layout( "try again" )

Else If( $found = 1 )

  Go to layout( "detail" )

Else

  Go to layout( "list" )

End If 




Or you may be thinking along the lines of: 




If( user = "manager" )

  Go to layout( "dashboard" )

Else

  Go to layout( "data entry" )

End If 


Posted

You could set a layout script trigger to run OnRecordLoad, with a script something like:

Set Variable[ $found ; Get( FoundCount ) ]

If( $found = 0 )

  Go to layout( "try again" )

Else If( $found = 1 )

  Go to layout( "detail" )

Else

  Go to layout( "list" )

End If 




Or you may be thinking along the lines of: 




If( user = "manager" )

  Go to layout( "dashboard" )

Else

  Go to layout( "data entry" )

End If 


You could do that... I think all the poor guys trying to do is this though no?

Perform Find[]

Go to Layout[]

Posted

Could be, but even so that requires a script to be run to do the Find. I proposed a script trigger so that after using the standard Find command it would go to a layout.

Posted

Thanks for your help...

What I really want is to compare two fields..

If (Field A = Field :)

goto layout "student"

Else

Goto layout "orgin"

end

I don't get how to compare the two fields and then goto layout of that certain record...

Maybe right in front of me and I cant get it to work!!!

Posted

The script would be pretty much as you've written. Now, if you want to perform an ordinary Find that then invokes the script, go to Layout mode, edit the layout, and click Script Triggers, choose OnRecordLoad and select the script, with the Browse checkbox selected.

If you need more help that's fine but please be a little more specific about what you've tried and what the result was.

Posted (edited)

Thank you for your help....

I'm having troubles!!

I need to have my front page be a sign in page. I was thinking that it could be a simple "find" that i could put in a name and have it find that persons record and switch to a layout named "student"

i don't want to have to set up individule privileges. I will have hundreds or thousands of people doing this... I also have no need for very secure design..

Can i do this? I don't know if i can attach my file or not, but would be willing to.

I am a beginner at filemaker and i am just having a hard time wrapping my brain around this and not even sure if i'm explaining this right!!

Edited by Guest
Removed Shouting.

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