Jump to content

checking a portal for an occurrence of a few strings..


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

Recommended Posts

I'm trying to check if a filename in a portal of attachments contains one of a few words, and then have it auto-enter "yes" into a text field if so... it's entering nothing into the text field even when the strings I'm searching for exist in the related value list.. what am I doing wrong ?

Let (



[values = ValueListItems(Get(FileName); "attachments")]; 



Case(



(



 (PatternCount( values; "CV") >0)



or 



(PatternCount (values ; "resume") >0)



or  (PatternCount(values ; "app") >0)



  );  "yes"; "") )

thanks :

Link to comment
Share on other sites

For one thing, you don't need the square brackets in your Let function when you only have one expression, but I'm not sure that would break the calc. Is the related table in the same file? If not, then Get(FileName) would fail. Is "attachments" the correct v/l name?

Since you have FileMaker 8 Advanced, use the Data Viewer to evaluate each piece of your calc and you should find the answer easily.

Link to comment
Share on other sites

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