August 16, 201015 yr 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!!
August 17, 201015 yr 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
August 17, 201015 yr 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[]
August 17, 201015 yr 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.
August 18, 201015 yr Author 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!!!
August 19, 201015 yr 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.
August 23, 201015 yr Author 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, 201015 yr by Guest Removed Shouting.
Create an account or sign in to comment