Jump to content
Sign in to follow this  
rmhaberkern

compound find for reports

Recommended Posts

I'm trying to allow users to search records, using two parameters, to produce customized reports. The two search parameters are presented in their own layout through checkboxes (using two predefined value lists). Once the user has chosen one or many options within each parameter, I'm then trying to write the script that matches up the checked options to produce the correct find requests. Example:

Search 1 (options=1,2,3,4); user checks 2 & 4

Search 2 (options=A,B,C); user checks A & B

I've successfully scripted finds for each parameter (using a loop, inserting calculated result into the field to be searched), but have not managed to figure out how to combine the selections from each parameter to produce the accurate find requests (2&A, 4&A, 2&B, 4&:. Any hints?? Thanks!!

Share this post


Link to post
Share on other sites

Try making a calulation field which checks each option to see if it has been selected, if it has, then set it to the calc field, use ands to separate ifs so that all data is stored, not written over top of each other. then make a layout which has all the relevant fields on it. Then in your script, perform a find which sets the data in the calc to the real fields that holds the values, and you should come up with the correct find.

Share this post


Link to post
Share on other sites

There was a post about performing OR finds recently added to the forum. First read the manual on multiple find requests to see how they work, then create a script that generates the requests in Find mode and popualtes the fields with the correct values.

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.