Bailey Kessing Posted December 15, 2011 Posted December 15, 2011 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?
wbasham Posted December 15, 2011 Posted December 15, 2011 Can you reproduce the problem and then send us a bug report? It will help us troubleshoot the issue.
andries Posted December 16, 2011 Posted December 16, 2011 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.
john renfrew Posted December 16, 2011 Posted December 16, 2011 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
wbasham Posted December 16, 2011 Posted December 16, 2011 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)
john renfrew Posted December 16, 2011 Posted December 16, 2011 See above post Correct version is chtt=%20BCGC+Lab+Load+(%25+diff+of+mean+load)
Bailey Kessing Posted December 17, 2011 Author Posted December 17, 2011 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.
wbasham Posted December 19, 2011 Posted December 19, 2011 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
Recommended Posts
This topic is 4791 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