Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

GetLayoutObjectAttribute

Featured Replies

Hello everyone;

I am curious as to use this function as i have seen mostly it is used to save states of tabcontrol panels. Is this the only use?

Help is quite vague.

thanks in advance,

-ian

getting contents from a web viewer or chart

http://help.filemaker.com/app/answers/detail/a_id/6146/~/using-the-getlayoutobjectattribute-function

  • Author

getting contents from a web viewer or chart

http://help.filemake...ribute-function

What about uses such as this;

GetLayoutObjectAttribute ( "portalObjectName"; "fieldObjectName"; 1 ) //"fieldObjectName" is the object name of my field & portalObjectName is name of portal object. 1 = repeating field

This saves the top portal row for me so the user doesnt lose track when leaving portal. their view is saved. I was thinking if there were other uses of the function such as this or it is just hit / miss messing with different attribute settings,etc within the GLOA function. It is a very long function name indeed.

I use it to pass parameters to scripts about a layout's state to be used by generalized scripts.

If I want to have a general sorting script, I can add a text box named object.Sort and have the text be LastName or InvoiceID depending on my layout (making it "disappear" with 500px conditional formatting). Then grab that value with a

Set Variable [ $sort ; GetLayoutObjectAttribute ( "object.Sort"; "contents" ) ]

If [ $sort = "InvoiceID ]

Sort[ InvoiceID ; No dialog ]

Else If [ $sort = "LastName" ]

Sort [ LastName ; No dialog ]

End If

This can also be used for other layout-based preferences like deleting or creating new records, page orientation for printing, etc.

  • Author

I use it to pass parameters to scripts about a layout's state to be used by generalized scripts.

If I want to have a general sorting script, I can add a text box named object.Sort and have the text be LastName or InvoiceID depending on my layout (making it "disappear" with 500px conditional formatting). Then grab that value with a

Set Variable [ $sort ; GetLayoutObjectAttribute ( "object.Sort"; "contents" ) ]

If [ $sort = "InvoiceID ]

Sort[ InvoiceID ; No dialog ]

Else If [ $sort = "LastName" ]

Sort [ LastName ; No dialog ]

End If

This can also be used for other layout-based preferences like deleting or creating new records, page orientation for printing, etc.

that is cool david.. Need to try that out. seems interesting just like using the <Merge_variables> tricks.

I've used it for controlling tab panels and scraping pages in the web viewer, not much else.

That is really interesting, Daniele! I didn't realize that the "height" was the height of the field contents.

  • Author

I've used it also for controlling the number of rows of a text field.

See http://fmforums.com/...attach_id=17100

That is too kewl.. Thanks for sharing.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.