Jump to content
Sign in to follow this  

import text via http (style sheet ?)

Recommended Posts

i want to import into filemaker from a text file which is a result of a http request.

(in filemaker 11!)

actually, what i get back from the http-request in a browser is a simple
OK 1204888105
now, if i do this via filemakers script step “Import Records” and XML Data
to be able to write a http request, i get the obvious error:
XML parsing error:

invalid document structure

Line Number: 1
Column Number: 1

so i was wondering, if there is a possibility to write a XSL style sheet, that can help me
grabbing this text into a record.

a style sheet, that presents this short text to filemaker as XML data ?

thanks for any thoughts !


Share this post

Link to post
Share on other sites

I am not completely sure what you are trying to do, but if the result is just the text you show here then it isn't in XML notation and I don't think a style sheet would help.  If it is an html page then insert from URL is what I would suggest but it looks like you are on FM11.  If this is a response to an API call of some sort I think your best bet would be the Baseelements free plugin. (http://www.goya.com.au/baseelements/plugin)

Then maybe you could use the BE_HTTP_POST ( url; parameters {; username ; password } ), to request the page and then the results come back and you can capture those to a field or variable.

Set Variable[ $result; BE_HTTP_POST (  url ; parameters {;  username ;  password } )]

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Similar Content

    • By winklestork
      I have searched the forum and internet and not found an answer to my delima.
      I have a solution with a scripted import of a csv file. I do not want import dialog (e.g. mapping), so I have it set to no.  I don't know the name of the file, only that it is a csv file. If I leave the filename out of the import dialogue, the default SHOW filetype in the open file dialog is for a filemaker database. The user needs education to change the SHOW to csv or all. That is undesirable. If I import a correct file once, the next time the script runs in that session, it prompts for a csv file, but if I quit the application and run it again, it goes back to SHOWing  filemaker databases. If I provide a bogus file, e.g. YourFile.csv -- I have to capture errors or I get no file dialog for them to find their file. If they cancel, they get a filemaker dialog I don't control that tells them the user aborted the import, continue or cancel. If they cancel, the script exits and I don't get control. That, too, is undesirable.
      What is the best practice for scripted imports so that whether the user complies or cancels, I maintain control of what happens next?
    • By dkey
      My FMP pro 15 doesn't allow to import ".avi" and ".mkv" files.
      The error is the files are not the specified file type
      How to do so?
    • By cat traveller
      Hi everyone,
      I am trying to run a server sided script that will import a found set. The server sided script opens a handler file that opens data file 1, does the find, imports into data file 2. 
      However, the search works in script debugger but imports all records. 
      The script opens layout A, searches goes to layout b, imports. Also the import of the selected fields seems not be remembered. I am stuck.....
      Thank you 
    • By Joost Miltenburg
      using FM18v3 I defined an import, update using key with option :add remaining. 
      Odd enough, when running the import for the first time, the key field remains empty. (Unexpected)
      As a result the second time I run the script I get new records, but now the keyfieldfield is filled. (Expected) The third time the import also runs as expected ( no new records ).
      I fixed this by defining this script in FM18 using an if. Eventually, I launched FM17 and re-did the script. Now it works like it should. 
      Anyone else can replicate this?
      Kind regards,
    • By ash1474
      I tried few calculation in Filemaker like substitute trim etc but did not get same result.
      Google sheets has nice function JOINTEXT any help to replicate/convert the function in Filemaker calculation.

  • Who Viewed the Topic

    2 members have viewed this topic:
    Aussie John  Stefano Parmeggiani 
  • Create New...

Important Information

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