I have a text field in a FileMaker Pro database that contains carriage returns. After exporting the contents of the field to a csv file and importing it into Servoy, how can I loop through the records and replace the fmp carriage returns with carriage returns that Servoy will recognize.
An example of a loop method that can achieve this would be greatly appreciated.
Embedded return $0D (decimal 13) or $0A (decimal 10) (hard wrap, not soft wrap) is exported as Vertical Tab character $0B (decimal 11).
Records are separated by EndOfLine characters CRLF $0D$0A (decimal 13 10, concatenated) for Windows PC.
Attached is a zipped Export.csv file that contains one field with two records. In the first record the carriage returns appear before the words “coinsurance” and “limit”. In the second record the carriage return appears before the word “on”.
I am now trying to import a .mer file into Servoy that was exported from FileMaker Pro. Everything works fine except for the FileMaker carriage returns within fields.
The above loop from this earlier thread takes care of the FileMaker carriage returns within a field after an import, but I would like to take care of them before importing by doing a find and replace in the .mer file. I have tried numerous substitute characters, but they all break the import. What character should I be using as the “replace” character? Has anyone else succeeded in doing this with a .mer file?
This is for SybaseASA, but I’m sure there is an equivalent command in most dbs. This should happen MUCH faster than doing it in Servoy, and the single command happens to all records in the db.
Hey Rafi, I know you posted this a long time ago, I just found it and it helped a ton with a problem I’ve been having with a filemaker export to servoy.. Thank you very much. I used interactivesql on the server and after a nervewracking pause, and an enforced restart of servoy server - my notes fields now have proper returns wooooooooohooooooooooooo Thanks
Hi,
no problem and I’m glad it helped. Sometimes one just has to resort to doing things in the back-end, as wonderful as Servoy is.
I had a MASSIVE amount of FM data that needed tweaking, and iSQL was very useful.
If you have any other queries about FM to Servoy migrations, I’m (one of) the man (men).
This just saved me a lot of time also. I created one line like the above for each of 90 columns. For 5,600 records, all ninety columns were updated in 14.6 seconds, with one click of the mouse. Thank you!