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

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

Recommended Posts

Posted

I would like to create a script that will take all the records from Table_A and create a find request for each in Table_B.

The user will enter their request in Table_A as a temporary file so that they can evaluate the data prior to submitting the find request (like a shopping cart).

If someone could point me in the right direction as what script commands would be best I would appreciate the help.

R

Posted

I agree the goto related record is probably a path to my solution, but I need a little more detail. I can relate the two tables with a constant global field but what script steps do I use.

Table_A will be my master file(3000+ records) in which I will perform the find operation. Table_B will be a temporary file that the user will add part numbers that he/she would like to search for. When in Table_A the user will run this script that looks at each record in Table_B and finds each occurrence in Table_A. When the search is complete and reports generatee another script will run to delete all records in Table_B leaving it ready for the next search.

I presume I will need to setup a loop,use the SetField, and a counter to determine when all records in Table_B have been processed through the create new find request.

Basically it is like a shopping cart on the web. Fill the cart with your desired items, provide options for adding quantity and deleting line items and then proceed to checkout.

Suggestions with sample script steps would really help me resolve this.

Thank for listening.

R

Posted (edited)

Here's a little file that implements your idea of a temporary table for choices. It uses the Go To Related Record [ relationship, Matching all records in found set ] option.

It uses a constant self-relationship in the Choices table, with "Allow creation of related records" to create new choices, in a portal (which is the same for all records).

There's some extra stuff in the file, a Globals table, in order to produce a global trash can ONLY on rows with data.

Self_Choices.fp7.zip

Edited by Guest

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