Hello, I subscribed to get some support with RegexPlugIn for Filemaker.
I successfully installed RegexPlugIn in Filmaker 7 (on Windows XP).
Evaluate ("RegP_Version" ) results in "0.2.1", so the plugin is basically working. What is not working is pretty much everything else:
I have made a testing database which I attach. It has three fields: target function result
The second record of this databse is like this: target: something function: RegP_Replace ( "o" ; target; "xxx") result: ?
But as result I expected sxxxmething.
What am I doing wrong?
Thanks for any help.
Sven.
sorry for not attaching the file before.
S.
2008/6/11, Sven Siegmund sven.siegmund@gmail.com:
Hello, I subscribed to get some support with RegexPlugIn for Filemaker.
I successfully installed RegexPlugIn in Filmaker 7 (on Windows XP).
Evaluate ("RegP_Version" ) results in "0.2.1", so the plugin is basically working. What is not working is pretty much everything else:
I have made a testing database which I attach. It has three fields: target function result
The second record of this databse is like this: target: something function: RegP_Replace ( "o" ; target; "xxx") result: ?
But as result I expected sxxxmething.
What am I doing wrong?
Thanks for any help.
Sven.
Sven Siegmund schrieb:
sorry for not attaching the file before.
S.
2008/6/11, Sven Siegmund sven.siegmund@gmail.com:
Hello, I subscribed to get some support with RegexPlugIn for Filemaker.
I successfully installed RegexPlugIn in Filmaker 7 (on Windows XP).
Evaluate ("RegP_Version" ) results in "0.2.1", so the plugin is basically working. What is not working is pretty much everything else:
I have made a testing database which I attach. It has three fields: target function result
The second record of this databse is like this: target: something function: RegP_Replace ( "o" ; target; "xxx") result: ?
But as result I expected sxxxmething.
What am I doing wrong?
Try
RegP_Replace ( "o" ; problem::target; "xxx")
Jens
On Wed, 11 Jun 2008 21:05:02 +0200, "Sven Siegmund" sven.siegmund@gmail.com wrote:
Tried. Still no result /-:
Could you first try with a normal calculation field to check if the function works as expected?
Edi.
Could you first try with a normal calculation field to check if the function works as expected?
Sure enough that works. I added a field to_be_evaluated, and a calcuation field which evaluates to_be_evaluted. It evaluates well. It's attached again.
S.
On Wed, 11 Jun 2008 21:13:09 +0200, "Sven Siegmund" sven.siegmund@gmail.com wrote:
Sure enough that works. I added a field to_be_evaluated, and a calcuation field which evaluates to_be_evaluted. It evaluates well. It's attached again.
That's not what I meant. I meant a calculation field which calculates
RegP_Replace ( "o" ; problem::target; "xxx")
directly and not with the indirection of using Evaluate.
directly and not with the indirection of using Evaluate.
Aaah, I see. Well, that is what I can't do. When creating the calculation field, having written RegP_Replace ( "o" ; target; "xxx") as calculation, I cannot click OK. FM complains: "There are too few parameters in this function"
I also have tried this as calculation: External ( RegP_Replace ( "o" ; target; "xxx") ; 0) FM again complains: "There are too few parameters in this function"
I also tried it with the comma syntax: External ( RegP_Replace ( "o", target, "xxx"), 0) same error
And I tried this: External ( "RegP_Replace", "o", target, "xxx") FM complains: there are too MANY parameters in this function
And this: External ( "RegP_Replace ( "o", target, "xxx")", 0) FM complains: the specified field cannot be found
Sven Siegmund schrieb:
directly and not with the indirection of using Evaluate.
Aaah, I see. Well, that is what I can't do. When creating the calculation field, having written RegP_Replace ( "o" ; target; "xxx") as calculation, I cannot click OK. FM complains: "There are too few parameters in this function"
I also have tried this as calculation: External ( RegP_Replace ( "o" ; target; "xxx") ; 0) FM again complains: "There are too few parameters in this function"
I also tried it with the comma syntax: External ( RegP_Replace ( "o", target, "xxx"), 0) same error
And I tried this: External ( "RegP_Replace", "o", target, "xxx") FM complains: there are too MANY parameters in this function
And this: External ( "RegP_Replace ( "o", target, "xxx")", 0) FM complains: the specified field cannot be found _______________________________________________ FM-Lisp mailing list FM-Lisp@common-lisp.net http://common-lisp.net/cgi-bin/mailman/listinfo/fm-lisp
Remove External(), leaving only
RegP_Replace ( "o" ; target; "xxx")
as Calculation.
Jens
Maybe I should add that in RegexPlugInDemo.fp7 which is designed to get familiar with the plugin, I have in most cases "?" as Output. I only get something in records 2, 9, 10, and 11.
S.
On Wed, 11 Jun 2008 21:29:46 +0200, "Sven Siegmund" sven.siegmund@gmail.com wrote:
Yes, that's what was my first try described @21:23 FM: There are too few parameters inthis function
Jens, could this be a problem with FileMaker 7 being too old?
Possibly. I have 7.0v1
S.
Edi Weitz schrieb:
On Wed, 11 Jun 2008 21:29:46 +0200, "Sven Siegmund" sven.siegmund@gmail.com wrote:
Yes, that's what was my first try described @21:23 FM: There are too few parameters inthis function
Jens, could this be a problem with FileMaker 7 being too old?
Maybe. Version 7v1 should at least be updated to version 7v3.
Jens
Sven Siegmund schrieb:
Maybe. Version 7v1 should at least be updated to version 7v3.
Where can I get an update? Cannot find anything like that at www.filemaker.com.
http://www.filemaker.com/support/downloads/index.html
-> choose a product -> FM 7
Jens
On Wed, 11 Jun 2008 21:52:24 +0200, Jens Teich info@jensteich.de wrote:
Jens, could this be a problem with FileMaker 7 being too old?
Maybe.
You should probably update the website and just write that the plug-in works with FM 8 and higher... :)
Edi Weitz schrieb:
On Wed, 11 Jun 2008 21:52:24 +0200, Jens Teich info@jensteich.de wrote:
Jens, could this be a problem with FileMaker 7 being too old?
Maybe.
You should probably update the website and just write that the plug-in works with FM 8 and higher... :)
done :)
Sven Siegmund schrieb:
Remove External(), leaving only
RegP_Replace ( "o" ; target; "xxx")
as Calculation.
Yes, that's what was my first try described @21:23 FM: There are too few parameters inthis function
S. _______________________________________________ FM-Lisp mailing list FM-Lisp@common-lisp.net http://common-lisp.net/cgi-bin/mailman/listinfo/fm-lisp
Hm. Strange.
Does the test database work for you? http://jensteich.de/regex-plugin/ExampleDB.zip
It might be a problem with the aged FM version you are using. Do you see any chance to make a test with FM 9, for example with the trial version?
Jens
Sven Siegmund schrieb:
Remove External(), leaving only
RegP_Replace ( "o" ; target; "xxx")
as Calculation.
Yes, that's what was my first try described @21:23 FM: There are too few parameters inthis function
Rereading your post: did you try this with comma as separator?
RegP_Replace ( "o", target, "xxx")
Jens
RegP_Replace ( "o", target, "xxx")
no, sorry. He does not like this syntax, too: There are too few parameters in this function.
Of the demo only records 2, 3, 9, 10, and 11 have some output. (the forst record has output ""), others have "?"
S.
WOW! I think I got the idea.
My dumb version of FM does want the optional flag argument aswell. Calculating RegP_Replace ( "o"; target; "xxx"; 0)
has the expected result!
S.
Sven Siegmund schrieb:
Could you first try with a normal calculation field to check if the function works as expected?
Sure enough that works. I added a field to_be_evaluated, and a calcuation field which evaluates to_be_evaluted. It evaluates well. It's attached again.
I just need to refresh the 'result' by adding a space to 'function' and store by clicking on the background. Then I see the correct result.
Jens
On Wed, 11 Jun 2008 20:33:56 +0200, "Sven Siegmund" sven.siegmund@gmail.com wrote:
Hello, I subscribed to get some support with RegexPlugIn for Filemaker.
I successfully installed RegexPlugIn in Filmaker 7 (on Windows XP).
Evaluate ("RegP_Version" ) results in "0.2.1", so the plugin is basically working. What is not working is pretty much everything else:
I have made a testing database which I attach. It has three fields: target function result
The second record of this databse is like this: target: something function: RegP_Replace ( "o" ; target; "xxx") result: ?
But as result I expected sxxxmething.
What am I doing wrong?
You're not doing anything wrong, you're just seeing a peculiarity of FileMaker. Edit the "function" field (e.g. add a space at the end and delete it again) and you should see the correct result - at least that works for me.
Jens can explain this better than me (I'm not a FileMaker expert), but I would guess there's an FAQ entry for this.
HTH, Edi.