December 24, 201114 yr 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
December 24, 201114 yr getting contents from a web viewer or chart http://help.filemaker.com/app/answers/detail/a_id/6146/~/using-the-getlayoutobjectattribute-function
December 24, 201114 yr 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.
December 28, 201114 yr 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.
December 28, 201114 yr 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.
December 29, 201114 yr I've used it for controlling tab panels and scraping pages in the web viewer, not much else.
December 29, 201114 yr 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
December 29, 201114 yr That is really interesting, Daniele! I didn't realize that the "height" was the height of the field contents.
December 30, 201114 yr 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