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

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

Recommended Posts

  • Newbies
Posted

Hello, after searching the forums for this specific problem, I couldn't find any reference to it. My apologies if I missed a post.

In exporting/importing data from one FMP datafile to another FMP datafile using FMPXMLRESULT, critical return characters are being removed from a field.

Is this fixable through an export setting? Or is the only way to go is XSLT?

Thank you in advance for any comments or suggestions.

  • Newbies
Posted

The datafiles sit on separate computers. One is a server in a co-location using a static IP. The "updater" is on a workstation using a dynamic IP. Scripting an import algorithm for the remote would be possible if the workstation had a static IP. But, that's not an option for the workstation. The XML import/export algorithm works great... except for this one issue.

Thank you for your reply.

Posted

Oh, i see. Well then-- i've had difficulty with CR/LF in XML before and have never exactly worked it out. (In fact, i've even asked some people at FM Inc. who know about XML and they were sort of befuddled too.) So i can't answer your question directly, though someone else here may be able to.

But i used this as a workaround: Before exporting, replace all "par.gif" with some unique flag, say, "!@#$#@!" which you can be reasonably sure will never appear in your text normally. Than after importing to the target, change those back to "par.gif".

It's a kludge, yeah, but from what i remember, those carriage returns make XML go crazy (at least in a Filemaker context). So i decided it was best to just avoid them.

J

  • 4 weeks later...
  • Newbies
Posted

Sorry for the LONG delay in replying. Thank you much for your help.

Interestingly, I created an import/export script that does exactly what you suggested. I couldn't find any other solution. It does seem klunky though, and I hope that no more than 2-3000 records needs to be exported at a time. I guess I should set a limit.... nah, too lazy. Just let it break. :-)

It also may be a failure on my part not implementing a correct many-to-many relationship schema. This one relationship requires keys to be separated by returns in their respective fields.

Posted

Just let it break. :-)

Developer's rule #1, right? Don't fix it until it breaks! wink.gif

This one relationship requires keys to be separated by returns in their respective fields.

Ooooh, yeah... that's bad. I suppose you've already weighed the pros and cons of taking the time to change over to a proper join table structure, but let me add another vote to the "PRO" column here. This is one thing i would DEFINITELY fix before it breaks, because when it does, it may be exponentially harder to fix it than it would be if you did it now.

J

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