krh Posted August 16, 2010 Posted August 16, 2010 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!!
Fitch Posted August 17, 2010 Posted August 17, 2010 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
liltbrockie Posted August 17, 2010 Posted August 17, 2010 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[]
Fitch Posted August 17, 2010 Posted August 17, 2010 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.
krh Posted August 18, 2010 Author Posted August 18, 2010 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!!!
Fitch Posted August 19, 2010 Posted August 19, 2010 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.
krh Posted August 23, 2010 Author Posted August 23, 2010 (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 August 24, 2010 by Guest Removed Shouting.
Lee Smith Posted August 24, 2010 Posted August 24, 2010 To attach a file, take a look at this link. Attach File
Recommended Posts
This topic is 5540 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 accountSign in
Already have an account? Sign in here.
Sign In Now