Dani R Posted March 30, 2010 Posted March 30, 2010 i what to run a script that will take the layout name into a Variable and then put the filed name. " Set Variable [ $lay; Value:Get(LayoutName) ] If [ IsEmpty ( $lay & "::status1" ) ] Show Custom Dialog [ Title: IsEmpty; Buttons: “OK”, “Cancel” ] End If " where is my error?
Søren Dyhr Posted March 30, 2010 Posted March 30, 2010 Here: http://fmhelp.filemaker.com/fmphelp_10/en/html/func_ref3.33.7.html --sd
Dani R Posted March 30, 2010 Author Posted March 30, 2010 i have in all layout a filed called status1 and i have a script that gets the layout name . i want to run a script the will take them both and check if the files is empty. instead that i will have a script for etch layout
Søren Dyhr Posted March 30, 2010 Posted March 30, 2010 I'm fully aware, that it's what you're after - read on MacDuff! --sd
Dani R Posted March 30, 2010 Author Posted March 30, 2010 i am sorry i did not understand what you mean .
Søren Dyhr Posted March 30, 2010 Posted March 30, 2010 Right this statement will always be true: If [ IsEmpty ( $lay & "::status1" ) ] ....and can therefore be omitted completely from your script ...since you always are within one of the layouts even if it's hidden, the last bit doesn't improve the logic either, it's just a string. You would need to use GetField( or Evaluate( to make the boolean logic work. --sd
David Jondreau Posted March 30, 2010 Posted March 30, 2010 Of course, it's not the layout name, but the table occurence name that's important. If layouts are named the same as tables, then there's no problem.
Dani R Posted March 30, 2010 Author Posted March 30, 2010 I have a menu that i move from layout to layout . when the user moves from a layout i what to check if status1 is empty or not. the problem is that he could be moving from 10 layouts and do not what to white a "IF" from each layout.
Søren Dyhr Posted March 30, 2010 Posted March 30, 2010 Now I can't tell what exactly isn't making sense to you but here is a template... 3 tables each having their own layout, not related in any way (...yet?) --sd Dani.zip
Newbies edwin111 Posted April 1, 2010 Newbies Posted April 1, 2010 (edited) The Layout object represents a single FileMaker Pro layout. You use it to interact with records in FileMaker . All access to FileMaker data is done through a layout, and this layout determins which table you actually hit (since every layout is explicitly associated with a particular table — see FileMakers Layout->Layout Setup dialog box). You never specify table information directly in RFM. Edited April 2, 2010 by Guest Removed Advertising URL
Søren Dyhr Posted April 2, 2010 Posted April 2, 2010 All access to FileMaker data is done through a layout, and this layout determins which table you actually hit While this might be true for Windows are you enabled to perform the following: tell application "FileMaker Pro Advanced" create record in table 2 set cell 1 of the last record of table 2 to 3 field 1 of table 2 end tell ...eventhoug the layout created when initiated the build of the table has been deleted, according to your statement wouldn't the last line of the applescript make any sense, but it does! --sd
Recommended Posts
This topic is 5407 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