Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

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

Recommended Posts

Posted (edited)

I'm trying to use the Filter in a custom function to only allow alpha numeric characters along with the space character. It works fine for all of the alpha numeric characters but it is still filtering out the spaces (which I want to keep).

This is what I am using:

Filter ( fp_input ; "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwzyz0123456789., -" )

Is there something that I am missing?

Edited by Guest
Posted (edited)

I see no space in that string. Hmmm, I see:

w zyz0

Is that where the space is? Because space DOES work within Filter().

Edited by Guest
Posted

Hmm, the spot where you thought was a space was actually the letter X and x and the space was found after the -.

I did a direct copy right from the custom functions window. I tried it again after modifying the data in the original field and sure enough the space worked.

What I am doing is taking an existing system that I don't want to disturb and creating new fields that were calculation fields that called the custom function.

I think my problem is solved, thank you.

Posted (edited)

When I originally set up the custom function, I had missed including the space character in the filter. When I added it, it didn't seem to make a difference. However when I deleted the calculation field that was calling the custom function and recreated it, it worked fine.

Strange but I am now working.

Edited by Guest
Posted

When I added it, it didn't seem to make a difference.

I would suspect you had it set as an indexed calculation and, since the CF changed but no FIELDS within the calculation changed, your calculation didn't know the CF was changed and thus couldn't update.

Well ... at least that's my story and I'm stickin' to it. :grad:

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