December 15, 201114 yr This html runs just fine as a web object, but I can’t get Scriptmaster’s GetURLAsContainerpart2 to get the graphic…Am I doing something wrong? "http://chart.apis.google.com/chart?chxr=0,-43.333,98.333&chxs=0,676767,10,1,l,676767&chxt=y&chbh=a,0,0&chs=200x200&cht=bvg&chco=008000|008000|008000|008000|008000|008000|008000|008000|008000|008000|008000|008000|008000|AA0033|AA0033|AA0033|AA0033|AA0033|AA0033|008000&chxr=0,-100,159&chds=-100,159&chd=t:-74,-83,-83,-83,-86,-29,-27,-20,-17,-17,-17,-17,-61,159,138,138,138,130,99,-10&chma=|0,6&chtt= BCGC+Lab+Load+(%+diff+of+mean+load)&chts=000000,10" Just get the results “ERROR”. Ideas?
December 15, 201114 yr Can you reproduce the problem and then send us a bug report? It will help us troubleshoot the issue.
December 16, 201114 yr if a ScriptMaster function returns "just" "ERROR" it means that Java has thrown an exception. Put in your dataviewer "SMLastError", and see what it displays after you called the function. Please read: http://360works.com/plugins/SCRIPTMASTERPLUGIN/documentation.html and scroll down to Error Handling/Reporting for more information.
December 16, 201114 yr Is it the PERCENT sign in the last brackets that needs to be URL encoded Try this as the parameter http://chart.apis.google.com/chart?chxr=0,-43.333,98.333&chxs=0,676767,10,1,l,676767&chxt=y&chbh=a,0,0&chs=200x200&cht=bvg&chco=008000|008000|008000|008000|008000|008000|008000|008000|008000|008000|008000|008000|008000|AA0033|AA0033|AA0033|AA0033|AA0033|AA0033|008000&chxr=0,-100,159&chds=-100,159&chd=t:-74,-83,-83,-83,-86,-29,-27,-20,-17,-17,-17,-17,-61,159,138,138,138,130,99,-10&chma=|0,6&chtt=%20BCGC+Lab+Load+(%25+diff+of+mean+load)&chts=000000,10
December 16, 201114 yr The problem is in the space character in the next to last key/value pair directly after the = sign: chtt= BCGC+Lab+Load+(%+diff+of+mean+load) If you copy the URL as is into a browser it works because the space gets encoded to %20. If you then copy that URL from the browser into ScriptMaster (Get URL as Container, part 2) in the sample file it works fine. The corrected version of the same part of the URL should be: chtt=%20BCGC+Lab+Load+(%+diff+of+mean+load)
December 16, 201114 yr See above post Correct version is chtt=%20BCGC+Lab+Load+(%25+diff+of+mean+load)
December 17, 201114 yr Author Thanks everyone. It all worked great. I actually just removed the space. What was hard for me was usually the web viewer/broswer and/or google API complain when i do something stupid like that and I can find and fix it, but this time only ScriptMaster was bothered (rightly so). Oh, well. Thanks again. I do have another problem that I just discovered. I tried to run this from a scheduled script on the server and i just get a “?” in the container. Works fine with the client. Ideas? And, yes, I am feeling particularly stupid these days. I am really just getting into server side scripts (I have neglected them way too long) and I obviously am learning.
December 19, 201114 yr The "?" means the plugin is not installed (or in some rare cases it is a problem with the QuadChar). Make sure you have the plugin (not ScriptMaster file) installed in FileMaker Server/Database Server/Extensions directory
Create an account or sign in to comment