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

searchstring 'table::field' won't work, why?


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

Recommended Posts

Posted

I do have a script which should perform a search.

I used the command 'Constrain Found Set [Restore]' the criteria is 'Field_1="Hello"'

Cool this works :P, every record which value in Field_1 is Hello is shown.

Now I thought to put the searchvalue "Hello" into a global field in another Table which is referenced to my searchtable.

Then I used again the command "Constrain Found Set [Restore]" the criteria this time is 'Field_1=Table_reference::Field_search_value' .

But this time the script, or better the search, stopped and told me that the value 'Field_search_value' couldn't be found.

OK - ounds logical.

What do I have to write that the criteria takes the CONTENT of the referenced field? Is there a way or is this like the same with variables, which FM isn't able to use in searchstrings?

sorry again for my bad english =) correct it if you would, this helps me for the next time :

  • Newbies
Posted

This may not be the most eligant solution to your problem, but I was having the same issue and this is what I managed to get working.

Enter Find Mode []

Set Field[Field1;g_Field1]

Perform Find []

It's crude, but it worked me.

Posted

Ya, you can't use source fields (or variables) in the Restored options for a Find. You have to set the Find criteria explicitly with a Set Field[].

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