Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 5846 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I'm having difficulty using the SCGetContainer function to grab images for use in a portal. The SuperContainer demo seems to rely on the fact that you are running SC Server locally, and has no problem grabbing an image. But when I try to use the function using using a URL in the file path parameter (to a remote SC Server), I get an ERROR as the result.

Here's an example:

SCGetContainer("https://fmdemo.360works.com/SuperContainer/Files/desktoptests/11/7" ; 64 ; 64)

Suggestions please!! Thanks!

Dave

Posted

your url doesn't appear to have the port number?

http://www.360works.com/plugins/SuperContainer/plugin-documentation.html

Posted

I have tried with and without port numbers, and it doesn't seem to make a difference. I've tried :80, :8020 and :8080.

I have also tried adding a forward slash at the end of the URL, but that too doesn't seem to make a difference.

Posted

You need to use the SCSetBaseUrl() function to set the prefix for all further requests. So instead of calling

SCGetContainer("https://fmdemo.360works.com/SuperContainer/Files/desktoptests/11/7" ; 64 ; 64)

You would call this once in your startup script:

SCSetBaseUrl( "http://fmdemo.360works.com/SuperContainer/Files/" )

and then you would make this call wherever appropriate:

SCGetContainer("desktoptests/11/7" ; 64 ; 64)

The idea behind the base URL is that since it is the same for all calls, you just call it once. We get some efficiency benefits in the plugin by being able to assume that all calls are made to the same server.

Posted

Jesse,

Thanks for the response. I continued to have the same issue no matter what I tried. I finally called your company for help. After working with Michael, we ended up fixing the issue by upgrading my plugin version from v.2.1.2 to 2.1.6.

Cheers!

Dave W

This topic is 5846 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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