Jump to content
Sign in to follow this  
tom robinson

script triggered find on calculated key

Recommended Posts

I'm so delighted with the simplicity of implementing a mac like find field [find_field] via the "onObjectModify" trigger which invokes a find script [peo_search] ... but when trying to do a find on a calculated field [peo_multikey] calculated as [ fname & lname & company & stnum & stname & city]

the find doesn't reveal all calculated records that contain find string ?

data viewer shows string exists within calculation for each record but it seems to miss some but not all?

script > peo_search ;

Set Error Capture [ On ]

If [ (IsEmpty ( find_field)) ]

Show All Records

Go to Record/Request/Page

[ First ]

Sort Records [ Specified Sort Order:lname; ascending ]

[ Restore; No dialog ]

Exit Script [ ]

End If

Enter Find Mode [ ]

Set Field [peo_multikey; find_field]

Perform Find [ ]

Go to Field [find_field]

Share this post


Link to post
Share on other sites

Your concatenated field needs returns btw the values. find_field should be a global.

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×

Important Information

By using this site, you agree to our Terms of Use.