GetLayoutObjectAttribute can return a many number of different values for many different layout objects. Can you provide a detailed example of what you are trying to do?
And the basic requirement is that you must use the Inspector to assign an object name to the layout object in question before you can use this function to extract the value of an attribute.
I know how it works, I'm needing to know why in this case it doesn't.
I cannot get it to return a value
I have the same function running in the webviewer calculation field and its working just fine!
function was typed as pasting is a nightmare on this site , supposed to be ;
just noticed something
if I place GetLayoutObjectAttribute ("webviewer";"height") in the calculation field it returns "0"
but if I change it to (GetLayoutObjectAttribute ("webviewer";"height") + 1) it returns "578"
what is going on here? seriously confused
Try using this in an unstored calculation
To post a script to the forum:
- You can upload a screen shot of your script by using the Upload an Image controls located just below Post a New Answer.
- You can print a script to a PDF, open the PDF and then select and copy the script as text from the opened PDF to your clipboard for pasting here. (with this approach, you can get multiple script steps on the same line, please edit the pasted text by inserting some returns to separate those steps.)
- If You have FileMaker Advanced, you can generate a database design report and copy the script as text from there.
- If you paste a text form of the script, you can use the Script Pretty box in the Known Bugs List database to paste a version that is single spaced and indented for a more professional and easier to read format.
there is no calc on your post
Correct. I meant make YOUR calculation an unstored calculation and see if it makes a difference.