Jump to content
Server Maintenance This Week. ×

importing xml/xls from https url


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

Recommended Posts

Hi Everyone,

I'm relatively new to Filemaker (12 Advanced) and wondering if any of you can shed some light on this. I have an external data source (option of either xml or xls) that is retrievable through an https URL. From what I've read, earlier versions of Filemaker do not support import with https, is this still the case with 12? If so, is there any workarounds with this? Thanks!

Link to comment
Share on other sites

  • 2 weeks later...
  • 5 weeks later...

Does anybody have any experience/thoughts on this? Thanks!

Workaround I'm using:

1. Download the 360Works Scriptmaster plugin

2. Create a global variable and include it in an opening script to register it. Here's how mine looks:

'Set Variable'

Name : $$GetURLasText

Value :

RegisterGroovy( "GetURLasText( url )" ; "URL url = new URL(url);¶

InputStream input = url.openStream();¶

try {¶

    StringBuffer sb = new StringBuffer( input.available() );¶

    Reader r = new InputStreamReader( input, "utf-8" );¶

    char[] buff = new char[2048];¶

    int charsRead;¶

    while( (charsRead=r.read( buff )) != -1 ) {¶

        sb.append( buff, 0, charsRead );¶

    }¶

    return sb.toString();¶

} finally {¶

    input.close();¶

}" )

You will now have a function GetURLasText( url ) and can be found in the external functions.

3. Create a calculation field with the calculation of GetURLasText( yourhttpsurlhere ) from the external functions

4. Export that fields contents and save as an .xml file

5. Import the file using your style sheet

Link to comment
Share on other sites

TBaker, your best best is any of the plugins or web publishing that can get this for you and then use standard import. There are too many variables that might prevent this from happening with just the Import script step. Sorry.

Beverly

Link to comment
Share on other sites

This topic is 4249 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.