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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

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