imoree Posted December 24, 2011 Posted December 24, 2011 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
Ocean West Posted December 24, 2011 Posted December 24, 2011 getting contents from a web viewer or chart http://help.filemaker.com/app/answers/detail/a_id/6146/~/using-the-getlayoutobjectattribute-function
imoree Posted December 24, 2011 Author Posted December 24, 2011 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.
David Jondreau Posted December 28, 2011 Posted December 28, 2011 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. 1
imoree Posted December 28, 2011 Author Posted December 28, 2011 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.
Fitch Posted December 29, 2011 Posted December 29, 2011 I've used it for controlling tab panels and scraping pages in the web viewer, not much else.
Raybaudi Posted December 29, 2011 Posted December 29, 2011 I've used it also for controlling the number of rows of a text field. See http://fmforums.com/forum/index.php?app=core&module=attach§ion=attach&attach_id=17100
Fitch Posted December 29, 2011 Posted December 29, 2011 That is really interesting, Daniele! I didn't realize that the "height" was the height of the field contents.
imoree Posted December 30, 2011 Author Posted December 30, 2011 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.
Recommended Posts
This topic is 4770 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