It may not be a bug, just a difference in context between how it operates on pro/go vs. server. Server really doesn't do "wysiwyg" stuff based on the interface very well. And since the result of that function is technically text, I would think it would insert something like "untitled.png" into the field instead of an actual picture.
"What's an another way to insert a filemaker chart into a container field without using GetLayoutObjectAttribute ???"
1) Insert from URL from an API or page that renders the chart.
2) Use a plugin to generate charts via the calculation engine with a container result.
3) Do it client side instead of server side.
Thank you for your post.
You might also see: Re: GetLayoutObjectAttribute("objectname";"content") not working from server
chart objects aren't contained within a layout they are generated when the window is displayed. Since server side no windows are ever displayed the attribute is always going to remain empty.
There was supposed to be documentation written up, but it doesn't look like it ever happened. I have placed a request for documentation and will let you know when it is available.
Work Around is to use the client of course. They talk about using "Robot" file:
Note that you can schedule a "robot" file to perform a task like this from a client session instead of from a server schedule.
You use a system level scheduler such as Windows Task manager to "run" the robot file. The robot file has an auto-entered password such that a script in it can perform a script in your hosted file without tripping a password log in dialog. You then use FileOptions to run a script like this each time that the file is opened:
Perform script [//select script in hosted file here]
I hope this helps!
Thank you so much....I think I broke the sledgehammer, by using so much brute force to try to make it work.