Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Problems with GetURLAsContainerpart2

Featured Replies

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?

  • Author

Will do. Thanks

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.

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

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)

See above post

Correct version is

chtt=%20BCGC+Lab+Load+(%25+diff+of+mean+load)

  • Author

Thanks everyone. It all worked great. :laugh2: 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.

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

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.