Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

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

Recommended Posts

Posted

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?

Posted

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

Posted

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

Posted

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.

Posted

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
Posted (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 by Guest
Removed Advertising URL
Posted

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

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 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.